-
Notifications
You must be signed in to change notification settings - Fork 2
test: add L1 consolidation test #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
62d137f
test: add L1 consolidation test
greged93 6a61aae
feat: add sync-at-startup CLI arg
greged93 972a974
fix: lints
greged93 72ff542
Merge branch 'main' into tests/consolidation
greged93 7519128
test: switch toolchain to stable
greged93 29a96d0
Merge branch 'main' into tests/consolidation
greged93 73978d5
Merge branch 'main' into tests/consolidation
greged93 1885879
fix: remove serde feature
greged93 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,39 @@ jobs: | |
tool: [email protected] | ||
- name: Run integration tests | ||
run: cargo nextest run --all-features --workspace --locked --no-tests=pass -E 'kind(test)' | ||
|
||
sync: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
env: | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rui314/setup-mold@v1 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- uses: foundry-rs/foundry-toolchain@v1 | ||
- name: Start rollup node | ||
env: | ||
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }} | ||
run: | | ||
cargo run --bin rollup-node --release -- \ | ||
node --chain scroll-sepolia --datadir=./l2reth --disable-discovery \ | ||
--http --http.addr=0.0.0.0 --http.port=8545 --http.api eth \ | ||
--trusted-peers enode://29cee709c400533ae038a875b9ca975c8abef9eade956dcf3585e940acd5c0ae916968f514bd37d1278775aad1b7db30f7032a70202a87fd7365bd8de3c9f5fc@44.242.39.33:30303 \ | ||
--log.stdout.format log-fmt -vvv \ | ||
--l1.url "https://eth-sepolia.g.alchemy.com/v2/$ALCHEMY_KEY" --l1.cups 500 \ | ||
--beacon.url https://eth-beacon-chain.drpc.org/rest/ --beacon.cups 100 --engine.en-sync-trigger 10000000000 \ | ||
--engine.sync-at-startup=false --engine.always-process-payload-attributes-on-canonical-head & | ||
- name: Get hash for block 50000 | ||
run: | | ||
echo "Waiting for block 50000..." | ||
while ! cast block 50000 --rpc-url http://localhost:8545 2>/dev/null | grep -q hash; do | ||
sleep 10 | ||
done | ||
echo "Block 50000 found!" | ||
|
||
EXPECTED_HASH="0x8333d8cd1274d49dcf9b130971d1b485a01f2a2604e73ea7caf9d721fbdf5859" | ||
cast block 50000 --rpc-url http://localhost:8545 | grep -q "$EXPECTED_HASH" |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.