forked from succinctlabs/sp1
-
Notifications
You must be signed in to change notification settings - Fork 1
176 lines (156 loc) · 5.56 KB
/
executor-suite.yml
File metadata and controls
176 lines (156 loc) · 5.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
name: Testing Suite (Executor)
on:
workflow_dispatch:
inputs:
simple_workloads:
description: "list of simple executor workloads to run"
required: true
checkpoint_workloads:
description: "list of checkpoint executor workloads to run"
required: true
trace_workloads:
description: "list of trace executor workloads to run"
required: true
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-
cancel-in-progress: false
jobs:
test-simple-executor:
if: ${{ fromJSON(github.event.inputs.simple_workloads)[0] != null }}
strategy:
fail-fast: false
matrix:
workload: ${{ fromJSON(github.event.inputs.simple_workloads) }}
name: ${{ matrix.workload }} (simple executor)
runs-on:
[
"runs-on",
"runner=64cpu-linux-x64",
"spot=false",
"run-id=${{ github.run_id }}",
]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_S3 }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3 }}
aws-region: us-west-2
- name: Copy files from S3
run: |
mkdir -p workdir
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/program.bin workdir/program.bin
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/stdin.bin workdir/stdin.bin
- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --force --path .
cargo clean
- name: Run sp1-perf
uses: actions-rs/cargo@v1
with:
command: run
args: --release -p sp1-perf --bin sp1-perf-executor -- --program workdir/program.bin --stdin workdir/stdin.bin --executor-mode simple
env:
RUST_LOG: info
VERIFY_VK: false
RUSTFLAGS: -Copt-level=3 -Ctarget-cpu=native
RUST_BACKTRACE: 1
test-checkpoint-executor:
if: ${{ fromJSON(github.event.inputs.checkpoint_workloads)[0] != null }}
strategy:
fail-fast: false
matrix:
workload: ${{ fromJSON(github.event.inputs.checkpoint_workloads) }}
name: ${{ matrix.workload }} (checkpoint executor)
runs-on:
[
"runs-on",
"runner=64cpu-linux-x64",
"spot=false",
"run-id=${{ github.run_id }}",
]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_S3 }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3 }}
aws-region: us-west-2
- name: Copy files from S3
run: |
mkdir -p workdir
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/program.bin workdir/program.bin
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/stdin.bin workdir/stdin.bin
- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --force --path .
cargo clean
- name: Run sp1-perf
uses: actions-rs/cargo@v1
with:
command: run
args: --release -p sp1-perf --bin sp1-perf-executor -- --program workdir/program.bin --stdin workdir/stdin.bin --executor-mode checkpoint
env:
RUST_LOG: info
VERIFY_VK: false
RUSTFLAGS: -Copt-level=3 -Ctarget-cpu=native
RUST_BACKTRACE: 1
test-trace-executor:
if: ${{ fromJSON(github.event.inputs.trace_workloads)[0] != null }}
strategy:
fail-fast: false
matrix:
workload: ${{ fromJSON(github.event.inputs.trace_workloads) }}
name: ${{ matrix.workload }} (trace executor)
runs-on:
[
"runs-on",
"runner=64cpu-linux-x64",
"spot=false",
"run-id=${{ github.run_id }}",
]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup CI
uses: ./.github/actions/setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_S3 }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_S3 }}
aws-region: us-west-2
- name: Copy files from S3
run: |
mkdir -p workdir
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/program.bin workdir/program.bin
aws s3 cp s3://sp1-testing-suite/${{ matrix.workload }}/stdin.bin workdir/stdin.bin
- name: Install SP1 toolchain from repo
run: |
cargo run -p sp1-cli -- prove install-toolchain
cd crates/cli
cargo install --locked --force --path .
cargo clean
- name: Run sp1-perf
uses: actions-rs/cargo@v1
with:
command: run
args: --release -p sp1-perf --bin sp1-perf-executor -- --program workdir/program.bin --stdin workdir/stdin.bin --executor-mode trace
env:
RUST_LOG: info
VERIFY_VK: false
RUSTFLAGS: -Copt-level=3 -Ctarget-cpu=native
RUST_BACKTRACE: 1