Skip to content

fix(l2): uncomment final state check and validate gas in sp1 and exec… #64

fix(l2): uncomment final state check and validate gas in sp1 and exec…

fix(l2): uncomment final state check and validate gas in sp1 and exec… #64

Workflow file for this run

name: L2 (SP1 Backend)
on:
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CI_ETHREX_WORKDIR: /usr/local/bin
PROVER: sp1
jobs:
test:
name: Integration Test
runs-on: gpu
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@stable
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: RISC-V SP1 toolchain install
run: |
. "$HOME/.cargo/env"
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up --version 4.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Bake docker images
uses: docker/bake-action@v6
with:
workdir: "crates/l2"
files: "crates/l2/docker-compose-l2.yaml"
load: true
set: |
*.cache-to=type=gha,mode=max
*.cache-from=type=gha
- name: Build prover
run: |
cd crates/l2
make build-prover
- name: Build test
run: |
cargo test l2 --no-run --release
- name: Run test
run: |
cd crates/l2
cp configs/prover_client_config_example.toml configs/prover_client_config.toml
cp configs/sequencer_config_example.toml configs/sequencer_config.toml
sed -i 's/sp1_deploy_verifier = false/sp1_deploy_verifier = true/' configs/sequencer_config.toml
sed -i 's/block_time_ms = 5000/block_time_ms = 12000/' configs/sequencer_config.toml
sed -i 's/listen_ip = "127.0.0.1"/listen_ip = "0.0.0.0"/' configs/sequencer_config.toml
sed -i 's/dev_mode = true/dev_mode = false/' configs/sequencer_config.toml
make integration-test-gpu
- name: Ensure admin permissions in _work
if: always()
run: sudo chown admin:admin -R /home/admin/actions-runner/_work/
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ETHREX_L2_SLACK_WEBHOOK }}