Skip to content

Commit 6b4ec9d

Browse files
author
masoud@anyscale.com
committed
add chunk_proof_test to CI, add on-demand slow-tests workflow
1 parent 521ed3c commit 6b4ec9d

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
5656
echo "Running chunk execution tests..."
5757
cargo test --test chunk_execution_test -- --nocapture
58+
59+
echo "Running chunk proof generation test (release mode for speed)..."
60+
cargo test --test chunk_proof_test --release -- --nocapture
5861
5962
- name: Run clippy (warnings only)
6063
working-directory: zkml

.github/workflows/slow-tests.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Slow Tests
2+
3+
# Triggers:
4+
# 1. Manual trigger via GitHub UI ("Run workflow" button)
5+
# 2. When 'run-slow-tests' label is added to a PR
6+
# 3. Nightly at 2am UTC (optional, commented out)
7+
8+
on:
9+
workflow_dispatch: # Manual trigger
10+
pull_request:
11+
types: [labeled]
12+
13+
# schedule:
14+
# - cron: '0 2 * * *' # Uncomment for nightly runs
15+
16+
env:
17+
CARGO_TERM_COLOR: always
18+
RUST_BACKTRACE: 1
19+
20+
jobs:
21+
slow-tests:
22+
name: Slow Tests (KZG Proofs)
23+
runs-on: ubuntu-latest
24+
# Only run if manually triggered OR if the 'run-slow-tests' label was added
25+
if: |
26+
github.event_name == 'workflow_dispatch' ||
27+
(github.event_name == 'pull_request' && github.event.label.name == 'run-slow-tests')
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Install Rust toolchain
34+
uses: dtolnay/rust-toolchain@nightly
35+
with:
36+
components: rustfmt, clippy
37+
38+
- name: Cache cargo registry
39+
uses: actions/cache@v4
40+
with:
41+
path: |
42+
~/.cargo/registry
43+
~/.cargo/git
44+
zkml/target
45+
key: ${{ runner.os }}-cargo-slow-${{ hashFiles('zkml/Cargo.lock') }}
46+
restore-keys: |
47+
${{ runner.os }}-cargo-slow-
48+
${{ runner.os }}-cargo-
49+
50+
- name: Build zkml library (release)
51+
working-directory: zkml
52+
run: cargo build --lib --release
53+
54+
- name: Run chunk proof generation test
55+
working-directory: zkml
56+
run: |
57+
echo "Running KZG proof generation test (this takes ~1-2 minutes)..."
58+
cargo test --test chunk_proof_test --release -- --nocapture
59+
60+
- name: Summary
61+
run: |
62+
echo "## Slow Tests Complete ✅" >> $GITHUB_STEP_SUMMARY
63+
echo "- KZG chunk proof generation: PASSED" >> $GITHUB_STEP_SUMMARY
64+
65+
# Note: AWS/GPU tests are excluded from CI entirely.
66+
# Run them manually: cd tests/aws && python gpu_test.py
67+

0 commit comments

Comments
 (0)