Integration test devnet-8 #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Integration test devnet-8 | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| registry-matrix: | |
| name: Resolve active guest matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.matrix.outputs.matrix }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build matrix from artifact registry | |
| id: matrix | |
| run: | | |
| MATRIX=$(jq -ce '{ include: [.stateless_validators[] as $validator | $validator.artifacts[] | { stateless_validator: $validator.name, zkvm: .zkvm, zkvm_version: .zkvm_version }] } | select(.include | length > 0)' artifact-registry.json) | |
| echo "matrix=${MATRIX}" >> "$GITHUB_OUTPUT" | |
| echo "Matrix: ${MATRIX}" | |
| test-zkvm-execution-devnet: | |
| name: ${{ matrix.stateless_validator }} on ${{ matrix.zkvm }} | |
| needs: registry-matrix | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.registry-matrix.outputs.matrix) }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Free up disk space | |
| if: matrix.zkvm == 'zisk' | |
| run: bash .github/scripts/free-up-disk-space.sh | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Setup sccache | |
| uses: mozilla/sccache-action@v0.0.9 | |
| with: | |
| disable_annotations: true | |
| - name: Configure sccache | |
| run: | | |
| echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" | |
| echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Run latest devnet-8 blocks | |
| env: | |
| ERE_IMAGE_REGISTRY: ghcr.io/eth-act/ere | |
| RUST_LOG: info,ere_server=error | |
| run: | | |
| cargo run --release --package stateless-validator-test --bin zkvm_execution_devnet -- \ | |
| --zkvm ${{ matrix.zkvm }} \ | |
| --stateless-validator ${{ matrix.stateless_validator }} \ | |
| --blocks 100 \ | |
| --output failures.txt | |
| if [[ -f failures.txt ]]; then | |
| { | |
| echo "### ${{ matrix.stateless_validator }} on ${{ matrix.zkvm }}" | |
| echo '```' | |
| cat failures.txt | |
| echo '```' | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| else | |
| echo "${{ matrix.stateless_validator }} on ${{ matrix.zkvm }} was skipped as SDK-incompatible." >> "$GITHUB_STEP_SUMMARY" | |
| fi | |
| - name: Show sccache statistics | |
| run: ${SCCACHE_PATH} --show-stats |