feat(levm): also check cache when querying if account exists (#2489) #49
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: 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 }} |