diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 0000000000..7b484ec96b --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,7 @@ +self-hosted-runner: + labels: + - depot-ubuntu-latest + - depot-ubuntu-latest-2 + - depot-ubuntu-latest-4 + - depot-ubuntu-latest-8 + - depot-ubuntu-latest-16 diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 3a59a844cc..a3b6fe02fc 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -15,7 +15,7 @@ env: name: bench jobs: codspeed: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - uses: actions/checkout@v6 with: diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 37c3f6b5eb..3fbf89560a 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -12,7 +12,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 timeout-minutes: 90 steps: - name: Checkout diff --git a/.github/workflows/compact.yml b/.github/workflows/compact.yml index b4fbadce2c..ef3f251b0a 100644 --- a/.github/workflows/compact.yml +++ b/.github/workflows/compact.yml @@ -17,7 +17,7 @@ env: name: compact-codec jobs: compact-codec: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 strategy: matrix: bin: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 2cfed4a229..d5ee430774 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -19,7 +19,7 @@ concurrency: jobs: test: name: e2e-testsuite - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 env: RUST_BACKTRACE: 1 timeout-minutes: 90 diff --git a/.github/workflows/hive.yml b/.github/workflows/hive.yml index d729a8b381..22ccc82397 100644 --- a/.github/workflows/hive.yml +++ b/.github/workflows/hive.yml @@ -24,7 +24,7 @@ jobs: prepare-hive: if: github.repository == 'paradigmxyz/reth' timeout-minutes: 45 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - uses: actions/checkout@v6 - name: Checkout hive tests @@ -178,7 +178,7 @@ jobs: - prepare-reth - prepare-hive name: run ${{ matrix.scenario.sim }}${{ matrix.scenario.limit && format(' - {0}', matrix.scenario.limit) }} - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest permissions: issues: write steps: @@ -245,7 +245,7 @@ jobs: notify-on-error: needs: test if: failure() - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - name: Slack Webhook Action uses: rtCamp/action-slack-notify@v2 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3720fd573e..b89c6b453e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -23,7 +23,7 @@ jobs: test: name: test / ${{ matrix.network }} if: github.event_name != 'schedule' - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 env: RUST_BACKTRACE: 1 strategy: diff --git a/.github/workflows/kurtosis-op.yml b/.github/workflows/kurtosis-op.yml index 1ac8d687a1..5172d2976c 100644 --- a/.github/workflows/kurtosis-op.yml +++ b/.github/workflows/kurtosis-op.yml @@ -32,7 +32,7 @@ jobs: strategy: fail-fast: false name: run kurtosis - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest needs: - prepare-reth steps: @@ -85,7 +85,7 @@ jobs: notify-on-error: needs: test if: failure() - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - name: Slack Webhook Action uses: rtCamp/action-slack-notify@v2 diff --git a/.github/workflows/kurtosis.yml b/.github/workflows/kurtosis.yml index 6eb85bdc20..28a7328dc9 100644 --- a/.github/workflows/kurtosis.yml +++ b/.github/workflows/kurtosis.yml @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false name: run kurtosis - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest needs: - prepare-reth steps: @@ -58,7 +58,7 @@ jobs: notify-on-error: needs: test if: failure() - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - name: Slack Webhook Action uses: rtCamp/action-slack-notify@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c37b8a480f..8fffa05411 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ env: jobs: clippy-binaries: name: clippy binaries / ${{ matrix.type }} - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 30 strategy: matrix: @@ -40,7 +40,7 @@ jobs: clippy: name: clippy - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -56,7 +56,7 @@ jobs: RUSTFLAGS: -D warnings wasm: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -75,7 +75,7 @@ jobs: .github/assets/check_wasm.sh riscv: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v6 @@ -93,7 +93,7 @@ jobs: crate-checks: name: crate-checks (${{ matrix.partition }}/${{ matrix.total_partitions }}) - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 strategy: matrix: partition: [1, 2] @@ -111,7 +111,7 @@ jobs: msrv: name: MSRV - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 30 strategy: matrix: @@ -133,7 +133,7 @@ jobs: docs: name: docs - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -150,7 +150,7 @@ jobs: fmt: name: fmt - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -163,7 +163,7 @@ jobs: udeps: name: udeps - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -177,7 +177,7 @@ jobs: book: name: book - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -232,10 +232,14 @@ jobs: - name: Ensure no arbitrary or proptest dependency on default build run: cargo tree --package reth -e=features,no-dev | grep -Eq "arbitrary|proptest" && exit 1 || exit 0 - # Checks that selected rates can compile with power set of features + # Checks that selected crates can compile with power set of features features: - name: features - runs-on: ubuntu-latest + name: features (${{ matrix.partition }}/${{ matrix.total_partitions }}) + runs-on: depot-ubuntu-latest-16 + strategy: + matrix: + partition: [1, 2] + total_partitions: [2] timeout-minutes: 30 steps: - uses: actions/checkout@v6 @@ -246,13 +250,19 @@ jobs: cache-on-failure: true - name: cargo install cargo-hack uses: taiki-e/install-action@cargo-hack - - run: make check-features + - run: | + cargo hack check \ + --package reth-codecs \ + --package reth-primitives-traits \ + --package reth-primitives \ + --feature-powerset \ + --partition ${{ matrix.partition }}/${{ matrix.total_partitions }} env: RUSTFLAGS: -D warnings # Check crates correctly propagate features feature-propagation: - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/prepare-reth.yml b/.github/workflows/prepare-reth.yml index 136919cd90..8888990466 100644 --- a/.github/workflows/prepare-reth.yml +++ b/.github/workflows/prepare-reth.yml @@ -26,7 +26,7 @@ jobs: prepare-reth: if: github.repository == 'paradigmxyz/reth' timeout-minutes: 45 - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest steps: - uses: actions/checkout@v6 - run: mkdir artifacts diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 76d7391a1d..43804cfd36 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -22,7 +22,7 @@ jobs: name: stage-run-test # Only run stage commands test in merge groups if: github.event_name == 'merge_group' - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: RUST_LOG: info,sync=error RUST_BACKTRACE: 1 diff --git a/.github/workflows/sync-era.yml b/.github/workflows/sync-era.yml index 471a42371b..97d93c25b7 100644 --- a/.github/workflows/sync-era.yml +++ b/.github/workflows/sync-era.yml @@ -17,7 +17,7 @@ concurrency: jobs: sync: name: sync (${{ matrix.chain.bin }}) - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: RUST_LOG: info,sync=error RUST_BACKTRACE: 1 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 2891d6a537..89367ec6f2 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -17,7 +17,7 @@ concurrency: jobs: sync: name: sync (${{ matrix.chain.bin }}) - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest env: RUST_LOG: info,sync=error RUST_BACKTRACE: 1 diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index cd07b3413b..260500f4ed 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -19,7 +19,7 @@ concurrency: jobs: test: name: test / ${{ matrix.type }} (${{ matrix.partition }}/${{ matrix.total_partitions }}) - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 env: RUST_BACKTRACE: 1 strategy: @@ -64,7 +64,7 @@ jobs: state: name: Ethereum state tests - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-4 env: RUST_LOG: info,sync=error RUST_BACKTRACE: 1 @@ -98,7 +98,7 @@ jobs: doc: name: doc tests - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest-16 env: RUST_BACKTRACE: 1 timeout-minutes: 30 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 787a7e0bcc..a5119eb9f6 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -11,7 +11,7 @@ on: jobs: check-reth: - runs-on: ubuntu-24.04 + runs-on: depot-ubuntu-latest-16 timeout-minutes: 60 steps: @@ -30,7 +30,7 @@ jobs: run: cargo check --target x86_64-pc-windows-gnu check-op-reth: - runs-on: ubuntu-24.04 + runs-on: depot-ubuntu-latest-16 timeout-minutes: 60 steps: diff --git a/Makefile b/Makefile index 46897c2f8c..10eedb698f 100644 --- a/Makefile +++ b/Makefile @@ -523,8 +523,3 @@ pr: make test check-features: - cargo hack check \ - --package reth-codecs \ - --package reth-primitives-traits \ - --package reth-primitives \ - --feature-powerset