Skip to content

Commit fca8dba

Browse files
committed
Run disk-spill tests in CI
1 parent 52d431d commit fca8dba

1 file changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/pr_main.yaml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,18 @@ jobs:
105105
test:
106106
name: Test
107107
if: always()
108-
needs: [test-executor, test-prover]
108+
needs: [test-executor, test-prover, test-disk-spill]
109109
runs-on: ubuntu-latest
110110
steps:
111111
- name: Check results
112112
run: |
113113
executor="${{ needs.test-executor.result }}"
114114
prover="${{ needs.test-prover.result }}"
115+
disk_spill="${{ needs.test-disk-spill.result }}"
115116
116117
echo "test-executor: $executor"
117118
echo "test-prover: $prover"
119+
echo "test-disk-spill: $disk_spill"
118120
119121
# Allow "success" or "skipped" (skipped on merge queue pushes)
120122
if [[ "$executor" != "success" && "$executor" != "skipped" ]]; then
@@ -123,6 +125,50 @@ jobs:
123125
if [[ "$prover" != "success" && "$prover" != "skipped" ]]; then
124126
exit 1
125127
fi
128+
if [[ "$disk_spill" != "success" && "$disk_spill" != "skipped" ]]; then
129+
exit 1
130+
fi
131+
132+
test-disk-spill:
133+
name: Disk-spill tests
134+
runs-on: ubuntu-latest
135+
if: github.event_name != 'push' || github.actor != 'github-merge-queue[bot]'
136+
steps:
137+
- name: Checkout sources
138+
uses: actions/checkout@v4
139+
140+
- name: Setup Rust Environment
141+
uses: ./.github/actions/setup-rust
142+
143+
- name: Cache cargo build artifacts
144+
uses: Swatinem/rust-cache@v2
145+
with:
146+
shared-key: "lambda-vm-disk-spill"
147+
cache-all-crates: "true"
148+
149+
- name: Cache compiled ASM ELF artifacts
150+
id: cache-asm-elfs
151+
uses: actions/cache@v4
152+
with:
153+
path: executor/program_artifacts/asm
154+
key: asm-elf-artifacts-${{ hashFiles('executor/programs/asm/**') }}
155+
156+
- name: Install clang and lld
157+
if: steps.cache-asm-elfs.outputs.cache-hit != 'true'
158+
run: sudo apt-get update && sudo apt-get install -y clang lld
159+
160+
- name: Compile ASM programs to ELF
161+
if: steps.cache-asm-elfs.outputs.cache-hit != 'true'
162+
run: |
163+
make compile-programs-asm
164+
165+
- name: Run stark disk-spill tests
166+
run: |
167+
cargo test --release -p stark --features disk-spill disk_spill
168+
169+
- name: Run prover disk-spill tests
170+
run: |
171+
cargo test --release -p lambda-vm-prover --features disk-spill disk_spill -- --test-threads=1
126172
127173
build-prover-tests:
128174
name: Build prover tests

0 commit comments

Comments
 (0)