chore(l1): reduce unnecessary docker builds and remove duplicate workflow executions in main #2590
Workflow file for this run
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
# Runs the specified hive testing suites | ||
name: Hive | ||
on: | ||
merge_group: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: ["*"] | ||
paths-ignore: | ||
- "crates/l2/**" | ||
- 'README.md' | ||
- 'LICENSE' | ||
- "**/README.md" | ||
- "**/docs/**" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
RUST_VERSION: 1.80.1 | ||
jobs: | ||
docker-build: | ||
uses: ./.github/workflows/build.yml # use the callable tests job to run tests | ||
Check failure on line 25 in .github/workflows/hive.yaml GitHub Actions / .github/workflows/hive.yamlInvalid workflow file
|
||
run-hive: | ||
name: ${{ matrix.name }} | ||
needs: docker-build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- simulation: rpc-compat | ||
name: "Rpc Compat tests" | ||
run_command: make run-hive SIMULATION=ethereum/rpc-compat TEST_PATTERN="/eth_chainId|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getCode|eth_getStorageAt|eth_call|eth_getTransactionByHash|eth_getBlockByHash|eth_getBlockByNumber|eth_createAccessList|eth_getBlockTransactionCountByNumber|eth_getBlockTransactionCountByHash|eth_getBlockReceipts|eth_getTransactionReceipt|eth_blobGasPrice|eth_blockNumber|ethGetTransactionCount|debug_getRawHeader|debug_getRawBlock|debug_getRawTransaction|debug_getRawReceipts|eth_estimateGas|eth_getBalance|eth_sendRawTransaction|eth_getProof|eth_getLogs" | ||
- simulation: rpc-auth | ||
name: "Rpc Auth tests" | ||
run_command: make run-hive SIMULATION=ethereum/rpc-compat TEST_PATTERN="/engine-auth" | ||
- simulation: discv4 | ||
name: "Devp2p discv4 tests" | ||
run_command: make run-hive SIMULATION=devp2p TEST_PATTERN="discv4" | ||
- simulation: engine | ||
name: "Engine tests" | ||
run_command: make run-hive SIMULATION=ethereum/engine TEST_PATTERN="/Blob Transactions On Block 1, Cancun Genesis|Blob Transactions On Block 1, Shanghai Genesis|Blob Transaction Ordering, Single Account, Single Blob|Blob Transaction Ordering, Single Account, Dual Blob|Blob Transaction Ordering, Multiple Accounts|Replace Blob Transactions|Parallel Blob Transactions|ForkchoiceUpdatedV3 Modifies Payload ID on Different Beacon Root|NewPayloadV3 After Cancun|NewPayloadV3 Versioned Hashes|ForkchoiceUpdated Version on Payload Request" | ||
- simulation: engine-cancun | ||
name: "Cancun Engine tests" | ||
run_command: make run-hive SIMULATION=ethereum/engine TEST_PATTERN="cancun/Unique Payload ID|ParentHash equals BlockHash on NewPayload|Re-Execute Payload|Payload Build after New Invalid Payload|RPC|Build Payload with Invalid ChainID|Invalid PayloadAttributes, Zero timestamp, Syncing=False|Invalid PayloadAttributes, Parent timestamp, Syncing=False|Invalid PayloadAttributes, Missing BeaconRoot, Syncing=False|Suggested Fee Recipient Test|PrevRandao Opcode Transactions Test|Invalid Missing Ancestor ReOrg, StateRoot" | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
run-id: ${{ github.event.workflow_run.id }} | ||
name: ethereum_rust_image | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Load image | ||
run: | | ||
docker load --input /tmp/ethereum_rust_image.tar | ||
docker image ls -a | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
- name: Rustup toolchain install | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.RUST_VERSION }} | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Download Hive | ||
run: make setup-hive | ||
- name: Run Hive Simulation | ||
run: ${{ matrix.run_command }} |