Skip to content

Commit

Permalink
fix: adjust ci workflows (#6)
Browse files Browse the repository at this point in the history
* fix: adjust ci workflows

* ci: pin clippy to working version (paradigmxyz#11237)

* ci: pin clippy to working version (paradigmxyz#11401)

* fix integration tests

---------

Co-authored-by: Federico Gimenez <[email protected]>
Co-authored-by: nk_ysg <[email protected]>
  • Loading branch information
3 people authored Oct 2, 2024
1 parent be7ad4c commit f56bf7a
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 35 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
merge_group:
push:
branches: [main]
branches: [main, scroll]

env:
CARGO_TERM_COLOR: always
Expand All @@ -18,8 +18,7 @@ concurrency:
name: bench
jobs:
iai:
runs-on:
group: Reth
runs-on: ubuntu-latest
# Only run benchmarks in merge groups and on main
if: github.event_name != 'pull_request'
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: book

on:
push:
branches: [main]
branches: [main, scroll]
pull_request:
branches: [main]
branches: [main, scroll]
merge_group:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ name: deny

on:
push:
branches: [main]
branches: [main, scroll]
paths: [Cargo.lock]
pull_request:
branches: [main]
branches: [main, scroll]
paths: [Cargo.lock]
merge_group:

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/eth-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
push:
branches: [ main ]
branches: [ main, scroll ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -20,8 +20,7 @@ jobs:
name: sync / 100k blocks
# Only run sync tests in merge groups
if: github.event_name == 'merge_group'
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
prepare-reth:
if: github.repository == 'paradigmxyz/reth'
timeout-minutes: 45
runs-on:
group: Reth
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir artifacts
Expand Down Expand Up @@ -53,8 +52,7 @@ jobs:
prepare-hive:
if: github.repository == 'paradigmxyz/reth'
timeout-minutes: 45
runs-on:
group: Reth
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout hive tests
Expand Down Expand Up @@ -182,8 +180,7 @@ jobs:
- prepare-reth
- prepare-hive
name: run ${{ matrix.engine }} - ${{ matrix.scenario.sim }}${{ matrix.scenario.limit && format(' - {0}', matrix.scenario.limit) }}
runs-on:
group: Reth
runs-on: ubuntu-latest
permissions:
issues: write
steps:
Expand Down Expand Up @@ -256,8 +253,7 @@ jobs:
notify-on-error:
needs: test
if: failure()
runs-on:
group: Reth
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/[email protected]
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
push:
branches: [main]
branches: [main, scroll]

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,15 +19,16 @@ concurrency:
jobs:
test:
name: test / ${{ matrix.network }}
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
strategy:
matrix:
network: ["ethereum", "optimism"]
timeout-minutes: 60
steps:
- name: Free up disk space
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install Geth
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
merge_group:
push:
branches: [main]
branches: [main, scroll]

env:
CARGO_TERM_COLOR: always
Expand All @@ -24,6 +24,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@clippy
with:
toolchain: nightly-2024-09-25
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand All @@ -39,6 +42,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-09-25
components: clippy
- uses: Swatinem/rust-cache@v2
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/op-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
push:
branches: [ main ]
branches: [ main, scroll ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -20,8 +20,7 @@ jobs:
name: op sync / 10k blocks
# Only run sync tests in merge groups
if: github.event_name == 'merge_group'
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
push:
branches: [ main ]
branches: [ main, scroll ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -22,8 +22,7 @@ jobs:
name: stage-run-test
# Only run stage commands test in merge groups
if: github.event_name == 'merge_group'
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
merge_group:
push:
branches: [main]
branches: [main, scroll]

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,8 +19,7 @@ concurrency:
jobs:
test:
name: test / ${{ matrix.network }} (${{ matrix.partition }}/2)
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
strategy:
Expand All @@ -29,6 +28,8 @@ jobs:
network: ["ethereum", "optimism"]
timeout-minutes: 30
steps:
- name: Free up disk space
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
Expand All @@ -45,13 +46,14 @@ jobs:
state:
name: Ethereum state tests
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
RUST_BACKTRACE: 1
timeout-minutes: 30
steps:
- name: Free up disk space
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- name: Checkout ethereum/tests
uses: actions/checkout@v4
Expand All @@ -70,8 +72,7 @@ jobs:

doc:
name: doc tests (${{ matrix.network }})
runs-on:
group: Reth
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
Expand Down

0 comments on commit f56bf7a

Please sign in to comment.