Skip to content

Commit efc4565

Browse files
authored
Merge branch 'paradigmxyz:main' into main
2 parents a160995 + c441199 commit efc4565

File tree

67 files changed

+986
-545
lines changed

Some content is hidden

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

67 files changed

+986
-545
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
participants:
2+
- el_type: geth
3+
cl_type: lighthouse
4+
- el_type: reth
5+
el_extra_params:
6+
- --engine.experimental
7+
el_image: "ghcr.io/paradigmxyz/reth:kurtosis-ci"
8+
cl_type: teku
9+
additional_services:
10+
- assertoor
11+
assertoor_params:
12+
run_block_proposal_check: true
13+
run_transaction_test: true
14+
run_blob_transaction_test: true
15+
run_opcodes_transaction_test: true

.github/workflows/assertoor.yml

Lines changed: 0 additions & 230 deletions
This file was deleted.

.github/workflows/hive.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,6 @@ jobs:
259259
runs-on:
260260
group: Reth
261261
steps:
262-
- name: Discord Webhook Action
263-
uses: tsickert/[email protected]
264-
with:
265-
webhook-url: ${{ secrets.RETH_ALERTS_WEBHOOK }}
266-
content: "Failed run: https://github.com/paradigmxyz/reth/actions/runs/${{ github.run_id }}"
267262
- name: Slack Webhook Action
268263
uses: rtCamp/action-slack-notify@v2
269264
env:

.github/workflows/kurtosis.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Runs `assertoor` tests on a `kurtosis` testnet.
2+
3+
name: kurtosis
4+
5+
on:
6+
workflow_dispatch:
7+
schedule:
8+
# every day
9+
- cron: "0 1 * * *"
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
prepare-reth:
20+
if: github.repository == 'paradigmxyz/reth'
21+
timeout-minutes: 45
22+
runs-on:
23+
group: Reth
24+
steps:
25+
- uses: actions/checkout@v4
26+
- run: mkdir artifacts
27+
- uses: dtolnay/rust-toolchain@stable
28+
- uses: Swatinem/rust-cache@v2
29+
with:
30+
cache-on-failure: true
31+
- name: Build reth
32+
run: |
33+
cargo build --features asm-keccak --profile hivetests --bin reth --locked
34+
mkdir dist && cp ./target/hivetests/reth ./dist/reth
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
- name: Build and export reth image
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: .github/assets/hive/Dockerfile
42+
tags: ghcr.io/paradigmxyz/reth:kurtosis-ci
43+
outputs: type=docker,dest=./artifacts/reth_image.tar
44+
cache-from: type=gha
45+
cache-to: type=gha,mode=max
46+
47+
- name: Upload reth image
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: artifacts
51+
path: ./artifacts
52+
53+
test:
54+
timeout-minutes: 60
55+
strategy:
56+
fail-fast: false
57+
name: run kurtosis
58+
runs-on:
59+
group: Reth
60+
needs:
61+
- prepare-reth
62+
steps:
63+
- uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0
66+
67+
- name: Download reth image
68+
uses: actions/download-artifact@v4
69+
with:
70+
name: artifacts
71+
path: /tmp
72+
73+
- name: Load Docker image
74+
run: |
75+
docker load -i /tmp/reth_image.tar &
76+
wait
77+
docker image ls -a
78+
79+
- name: Run kurtosis
80+
uses: ethpandaops/kurtosis-assertoor-github-action@v1
81+
with:
82+
ethereum_package_args: '.github/assets/kurtosis_network_params.yaml'
83+
84+
notify-on-error:
85+
needs: test
86+
if: failure()
87+
runs-on:
88+
group: Reth
89+
steps:
90+
- name: Slack Webhook Action
91+
uses: rtCamp/action-slack-notify@v2
92+
env:
93+
SLACK_COLOR: ${{ job.status }}
94+
SLACK_MESSAGE: "Failed run: https://github.com/paradigmxyz/reth/actions/runs/${{ github.run_id }}"
95+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/lint.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@ env:
1111

1212
jobs:
1313
clippy-binaries:
14-
name: clippy / ${{ matrix.network }}
14+
name: clippy binaries / ${{ matrix.type }}
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 30
1717
strategy:
1818
matrix:
1919
include:
20-
- binary: reth
21-
network: ethereum
22-
- binary: op-reth
23-
network: optimism
20+
- type: ethereum
21+
args: --bin reth --workspace
22+
features: "ethereum asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
23+
- type: optimism
24+
args: --bin op-reth --workspace
25+
features: "optimism asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
26+
- type: book
27+
args: --manifest-path book/sources/Cargo.toml --workspace --bins
28+
features: ""
2429
steps:
2530
- uses: actions/checkout@v4
2631
- uses: dtolnay/rust-toolchain@clippy
@@ -30,12 +35,12 @@ jobs:
3035
- uses: Swatinem/rust-cache@v2
3136
with:
3237
cache-on-failure: true
38+
- if: "${{ matrix.type == 'book' }}"
39+
uses: arduino/setup-protoc@v3
40+
with:
41+
repo-token: ${{ secrets.GITHUB_TOKEN }}
3342
- name: Run clippy on binaries
34-
run: cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
35-
env:
36-
RUSTFLAGS: -D warnings
37-
- name: Run clippy on book binary sources
38-
run: cargo clippy --manifest-path book/sources/Cargo.toml --workspace --bins
43+
run: cargo clippy ${{ matrix.args }} --features "${{ matrix.features }}"
3944
env:
4045
RUSTFLAGS: -D warnings
4146

0 commit comments

Comments
 (0)