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 branch 'main' into chore-merge-upstream-21d911abb
- Loading branch information
Showing
437 changed files
with
13,889 additions
and
5,535 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
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,47 @@ | ||
# Ensures that `Compact` codec changes are backwards compatible. | ||
# | ||
# 1) checkout `main` | ||
# 2) randomly generate and serialize to disk many different type vectors with `Compact` (eg. Header, Transaction, etc) | ||
# 3) checkout `pr` | ||
# 4) deserialize previously generated test vectors | ||
|
||
on: | ||
|
||
pull_request: | ||
merge_group: | ||
push: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
name: compact-codec | ||
jobs: | ||
compact-codec: | ||
runs-on: | ||
group: Reth | ||
strategy: | ||
matrix: | ||
bin: | ||
- cargo run --bin reth --features "dev" | ||
- cargo run --bin op-reth --features "optimism dev" --manifest-path crates/optimism/bin/Cargo.toml | ||
steps: | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Checkout base | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.base_ref || 'main' }} | ||
# On `main` branch, generates test vectors and serializes them to disk using `Compact`. | ||
- name: Generate compact vectors | ||
run: | | ||
${{ matrix.bin }} -- test-vectors compact --write | ||
- name: Checkout PR | ||
uses: actions/checkout@v4 | ||
with: | ||
clean: false | ||
# On incoming merge try to read and decode previously generated vectors with `Compact` | ||
- name: Read vectors | ||
run: ${{ matrix.bin }} -- test-vectors compact --read |
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
Oops, something went wrong.