Skip to content

Commit ec31811

Browse files
authored
Merge f7ef881 into ebb341b
2 parents ebb341b + f7ef881 commit ec31811

56 files changed

Lines changed: 1654 additions & 1350 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main_prover.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,31 @@ jobs:
5454
# if: ${{ always() && github.event_name == 'merge_group' }}
5555
run: |
5656
cd crates/l2
57-
PROVER=sp1 G=true make build-prover
57+
make build-prover-sp1 GPU=true
58+
59+
- name: Show vks
60+
# if: ${{ always() && github.event_name == 'merge_group' }}
61+
run: |
62+
ls -lah crates/l2/prover/src/guest_program/src/sp1/out/
5863
5964
- name: Build test
6065
# if: ${{ always() && github.event_name == 'merge_group' }}
6166
run: |
6267
cargo test l2 --features l2 --no-run --release
6368
64-
- name: Start L1 & Deploy contracts
69+
- name: Start L1
70+
run: |
71+
cd crates/l2
72+
docker compose up --detach ethrex_l1
73+
74+
- name: Deploy contracts
6575
# if: ${{ always() && github.event_name == 'merge_group' }}
6676
run: |
6777
touch cmd/.env
6878
cd crates/l2
6979
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
7080
ETHREX_DEPLOYER_DEPLOY_RICH=true \
71-
ETHREX_DEPLOYER_SP1_DEPLOY_VERIFIER=true \
81+
ETHREX_L2_SP1=true \
7282
docker compose up --build contract_deployer
7383
7484
DEPLOYER_EXIT_CODE=$(docker inspect -f '{{.State.ExitCode}}' contract_deployer)
@@ -104,7 +114,7 @@ jobs:
104114
# if: ${{ always() && github.event_name == 'merge_group' }}
105115
run: |
106116
cd crates/l2
107-
RUST_LOG=info,ethrex_prover_lib=debug PROVER=sp1 G=true make init-prover &
117+
make init-prover-sp1 GPU=true &
108118
docker logs --follow ethrex_l2 & DOCKER_LOGS_PID=$!
109119
PROPOSER_COINBASE_ADDRESS=0x0007a881CD95B1484fca47615B64803dad620C8d cargo test l2 --release -- --nocapture --test-threads=1
110120
killall ethrex -s SIGINT

.github/workflows/pr-main_l2.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,10 @@ jobs:
166166
version: v0.8.29
167167
token: ${{ secrets.GITHUB_TOKEN || '' }}
168168

169-
# also creates empty verification keys (as workflow runs with exec backend)
170169
- name: Build prover
171170
run: |
172171
cd crates/l2
173-
make build-prover
172+
make build-prover-exec
174173
mkdir -p prover/src/guest_program/src/sp1/out && touch prover/src/guest_program/src/sp1/out/riscv32im-succinct-zkvm-vk
175174
176175
- name: Build test
@@ -242,9 +241,6 @@ jobs:
242241
fi
243242
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
244243
ETHREX_DEPLOYER_DEPLOY_RICH=true \
245-
ETHREX_DEPLOYER_PICO_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
246-
ETHREX_DEPLOYER_SP1_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
247-
ETHREX_DEPLOYER_RISC0_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
248244
ETHREX_L2_VALIDIUM=${{ matrix.validium }} \
249245
ETHREX_NATIVE_TOKEN_L1_ADDRESS=$ETHREX_NATIVE_TOKEN_L1_ADDRESS \
250246
docker compose up contract_deployer
@@ -304,7 +300,7 @@ jobs:
304300
fi
305301
sudo chmod -R a+rw crates/l2
306302
cd crates/l2
307-
RUST_LOG=info,ethrex_prover_lib=debug make init-prover &
303+
RUST_LOG=info,ethrex_prover_lib=debug make init-prover-exec &
308304
docker logs --follow ethrex_l2 &
309305
docker logs --follow ethrex_l1 &
310306
PROPOSER_COINBASE_ADDRESS=0x0007a881CD95B1484fca47615B64803dad620C8d cargo test l2 --release -- --nocapture --test-threads=1
@@ -380,7 +376,7 @@ jobs:
380376
cd crates/l2
381377
make init-l1-docker;
382378
ETHREX_DEPLOYER_DEPLOY_RICH=true \
383-
ETHREX_DEPLOYER_TDX_DEPLOY_VERIFIER=true \
379+
ETHREX_L2_TDX=true \
384380
ETHREX_TDX_DEV_MODE=true \
385381
make deploy-l1
386382
@@ -463,9 +459,6 @@ jobs:
463459
cd crates/l2
464460
DOCKER_ETHREX_WORKDIR=/usr/local/bin \
465461
ETHREX_DEPLOYER_DEPLOY_RICH=true \
466-
ETHREX_DEPLOYER_PICO_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
467-
ETHREX_DEPLOYER_SP1_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
468-
ETHREX_DEPLOYER_RISC0_CONTRACT_ADDRESS=0x00000000000000000000000000000000000000aa \
469462
COMPILE_CONTRACTS=true \
470463
docker compose up contract_deployer
471464
@@ -503,7 +496,7 @@ jobs:
503496
- name: Start ethrex
504497
run: |
505498
cd crates/l2
506-
make init-l2-dev &
499+
ETHREX_NO_MONITOR=true make init-l2-dev 2>&1 | tee /tmp/ethrex.log &
507500
508501
- name: Wait for ethrex l2
509502
run: |
@@ -520,11 +513,18 @@ jobs:
520513
521514
- name: Init prover
522515
run: |
523-
target/release/ethrex l2 prover --proof-coordinators http://localhost:3900 &
516+
target/release/ethrex l2 prover --proof-coordinators http://localhost:3900 2>&1 | tee /tmp/prover.log &
517+
518+
- name: show envs
519+
run: |
520+
cat crates/l2/.env
524521
525522
- name: Run test
526523
run: |
527524
cd crates/l2
525+
tail -n 100 -f /tmp/ethrex.log &
526+
tail -n 100 -f /tmp/prover.log &
527+
export $(shell cat .env | xargs); \
528528
INTEGRATION_TEST_SKIP_BASE_FEE_VAULT_CHECK=true \
529529
PROPOSER_COINBASE_ADDRESS=0x0007a881CD95B1484fca47615B64803dad620C8d \
530530
cargo test l2 --release -- --nocapture --test-threads=1

0 commit comments

Comments
 (0)