forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from scroll-tech/chore-merge-upstream-7119bb1fe
chore: merge upstream 7119bb1
- Loading branch information
Showing
352 changed files
with
7,359 additions
and
4,663 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: | ||
format: 1 | ||
# Minimum zepter version that is expected to work. This is just for printing a nice error | ||
# message when someone tries to use an older version. | ||
binary: 0.13.2 | ||
|
||
# The examples in the following comments assume crate `A` to have a dependency on crate `B`. | ||
workflows: | ||
check: | ||
- [ | ||
"lint", | ||
# Check that `A` activates the features of `B`. | ||
"propagate-feature", | ||
# These are the features to check: | ||
"--features=std,optimism,dev,asm-keccak,jemalloc,jemalloc-prof,tracy-allocator,serde-bincode-compat,serde,test-utils,arbitrary,bench", | ||
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually. | ||
"--left-side-feature-missing=ignore", | ||
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on. | ||
"--left-side-outside-workspace=ignore", | ||
# Auxillary flags: | ||
"--offline", | ||
"--locked", | ||
"--show-path", | ||
"--quiet", | ||
] | ||
default: | ||
# Running `zepter` with no subcommand will check & fix. | ||
- [$check.0, "--fix"] | ||
|
||
# Will be displayed when any workflow fails: | ||
help: | ||
text: | | ||
Reth uses the Zepter CLI to detect abnormalities in Cargo features, e.g. missing propagation. | ||
It looks like one more more checks failed; please check the console output. | ||
You can try to automatically address them by installing zepter (`cargo install zepter --locked`) and simply running `zepter` in the workspace root. | ||
links: | ||
- "https://github.com/paradigmxyz/reth/pull/11888" | ||
- "https://github.com/ggwpez/zepter" |
Validating CODEOWNERS rules …
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Runs sync tests. | ||
|
||
name: sync test | ||
|
||
on: | ||
merge_group: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
sync: | ||
name: sync (${{ matrix.chain.bin }}) | ||
runs-on: ubuntu-latest | ||
env: | ||
RUST_LOG: info,sync=error | ||
RUST_BACKTRACE: 1 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
chain: | ||
- build: install | ||
bin: reth | ||
chain: mainnet | ||
tip: "0x91c90676cab257a59cd956d7cb0bceb9b1a71d79755c23c7277a0697ccfaf8c4" | ||
block: 100000 | ||
unwind-target: "0x52e0509d33a988ef807058e2980099ee3070187f7333aae12b64d4d675f34c5a" | ||
- build: install-op | ||
bin: op-reth | ||
chain: base | ||
tip: "0xbb9b85352c7ebca6ba8efc63bd66cecd038c92ec8ebd02e153a3e0b197e672b7" | ||
block: 10000 | ||
unwind-target: "0x118a6e922a8c6cab221fc5adfe5056d2b72d58c6580e9c5629de55299e2cf8de" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Build ${{ matrix.chain.bin }} | ||
run: make ${{ matrix.chain.build }} | ||
- name: Run sync | ||
run: | | ||
${{ matrix.chain.bin }} node \ | ||
--chain ${{ matrix.chain.chain }} \ | ||
--debug.tip ${{ matrix.chain.tip }} \ | ||
--debug.max-block ${{ matrix.chain.block }} \ | ||
--debug.terminate | ||
- name: Verify the target block hash | ||
run: | | ||
${{ matrix.chain.bin }} db --chain ${{ matrix.chain.chain }} get static-file headers ${{ matrix.chain.block }} \ | ||
| grep ${{ matrix.chain.tip }} | ||
- name: Run stage unwind for 100 blocks | ||
run: | | ||
${{ matrix.chain.bin }} stage --chain ${{ matrix.chain.chain }} unwind num-blocks 100 | ||
- name: Run stage unwind to block hash | ||
run: | | ||
${{ matrix.chain.bin }} stage --chain ${{ matrix.chain.chain }} unwind to-block ${{ matrix.chain.unwind-target }} |
Oops, something went wrong.