forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into johnw/nix-flake
- Loading branch information
Showing
906 changed files
with
35,688 additions
and
18,969 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,41 @@ | ||
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" |
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 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,15 @@ | ||
ethereum_package: | ||
participants: | ||
- el_type: reth | ||
cl_type: lighthouse | ||
optimism_package: | ||
chains: | ||
- participants: | ||
- el_type: op-geth | ||
cl_type: op-node | ||
- el_type: op-reth | ||
el_image: "ghcr.io/paradigmxyz/op-reth:kurtosis-ci" | ||
cl_type: op-node | ||
batcher_params: | ||
extra_params: | ||
- "--throttle-interval=0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Publishes the Docker image, only to be used with `workflow_dispatch`. The | ||
# images from this workflow will be tagged with the git sha of the branch used | ||
# and will NOT tag it as `latest`. | ||
|
||
name: docker-git | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
env: | ||
REPO_NAME: ${{ github.repository_owner }}/reth | ||
IMAGE_NAME: ${{ github.repository_owner }}/reth | ||
OP_IMAGE_NAME: ${{ github.repository_owner }}/op-reth | ||
CARGO_TERM_COLOR: always | ||
DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/reth | ||
OP_DOCKER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/op-reth | ||
DOCKER_USERNAME: ${{ github.actor }} | ||
GIT_SHA: ${{ github.sha }} | ||
|
||
jobs: | ||
build: | ||
name: build and push | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- uses: taiki-e/install-action@cross | ||
- name: Log in to Docker | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${DOCKER_USERNAME} --password-stdin | ||
- name: Set up Docker builder | ||
run: | | ||
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64 | ||
docker buildx create --use --name cross-builder | ||
- name: Build and push the git-sha-tagged reth image | ||
run: make PROFILE=maxperf GIT_SHA=$GIT_SHA docker-build-push-git-sha | ||
- name: Build and push the git-sha-tagged op-reth image | ||
run: make IMAGE_NAME=$OP_IMAGE_NAME DOCKER_IMAGE_NAME=$OP_DOCKER_IMAGE_NAME GIT_SHA=$GIT_SHA PROFILE=maxperf op-docker-build-push-git-sha |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
name: docker | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
tags: | ||
- v* | ||
|
Oops, something went wrong.