forked from NethermindEth/nethermind
-
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.
* Resolved conflicts * max body size for http json rpc (NethermindEth#36) * Format * Self-recovery of TxPool max capacity * fix ProcessedTransactionsDbCleanerTests * Update txPool worst value if removal unsuccessful (NethermindEth#6702) (cherry picked from commit f262cb2) * Clearer error message for missing starting block state (NethermindEth#6672) * Update txPool worst value if removal unsuccessful (NethermindEth#6702) * Add Cancun hard-fork settings for Gnosis (NethermindEth#6709) * Cancun spec and config for mainnet (NethermindEth#6679) * Add Paris release spec class for completeness (NethermindEth#6633) * 0.0.0.0 to + --------- Co-authored-by: smartprogrammer <[email protected]> Co-authored-by: Marcin Sobczak <[email protected]> Co-authored-by: Ben Adams <[email protected]> Co-authored-by: Ruben Buniatyan <[email protected]> Co-authored-by: Ahmad Bitar <[email protected]> Co-authored-by: Kamil Chodoła <[email protected]> Co-authored-by: Lukasz Rozmej <[email protected]>
- Loading branch information
Showing
5 changed files
with
57 additions
and
174 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 |
---|---|---|
|
@@ -23,6 +23,9 @@ jobs: | |
outputs: | ||
cleanRef: ${{ steps.prepare_ref.outputs.cleanRef }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
needs: [create_docker_image] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -5901,7 +5904,7 @@ jobs: | |
run: | | ||
echo "PARALLELISM=${{ github.event.inputs.parallelism || '3' }}" >> $GITHUB_ENV | ||
- name: Check out Nethermind repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: nethermind | ||
- name: Set up QEMU | ||
|
@@ -6074,150 +6077,45 @@ jobs: | |
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcEIP1559 --sim.parallelism $PARALLELISM | ||
- name: Print results | ||
run: | | ||
chmod +x nethermind/scripts/hive-results.sh | ||
nethermind/scripts/hive-results.sh "hive/workspace/logs/*.json" | ||
test_65: | ||
name: 65. Combined tests (e.g. bcEIP3675) | ||
cd nethermind/tools/HiveConsensusWorkflowGenerator | ||
dotnet run | ||
cat matrix.json | ||
echo "matrix=$(jq -c . matrix.json)" >> $GITHUB_OUTPUT | ||
run_hive_tests: | ||
runs-on: ubuntu-latest | ||
needs: [generate_hive_consensus_tests, create_docker_image] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
hiveTests: ${{fromJson(needs.generate_hive_consensus_tests.outputs.matrix)}} | ||
steps: | ||
- name: Set up parameters | ||
run: | | ||
echo "PARALLELISM=${{ github.event.inputs.parallelism || '3' }}" >> $GITHUB_ENV | ||
echo "PARALLELISM=${{ github.event.inputs.parallelism || '8' }}" >> $GITHUB_ENV | ||
- name: Check out Nethermind repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: nethermind | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: nethermind | ||
file: nethermind/Dockerfile | ||
tags: nethermind:test-${{ github.sha }} | ||
outputs: type=docker,dest=/tmp/image.tar | ||
|
||
- name: Install Linux packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsnappy-dev libc6-dev libc6 build-essential | ||
- name: Set up Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: ">=1.17.0" | ||
- name: Check out Hive repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ethereum/hive | ||
ref: master | ||
path: hive | ||
|
||
- name: Patch Hive Dockerfile | ||
run: sed -i 's#FROM $baseimage:$tag#FROM nethermind:test-${{ github.sha }}#g' hive/clients/nethermind/Dockerfile | ||
- name: Build Hive | ||
working-directory: hive | ||
run: go build . | ||
- name: Load Docker image | ||
run: docker load --input /tmp/image.tar | ||
- name: Run bcEIP3675 | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcEIP3675 --sim.parallelism $PARALLELISM | ||
- name: Run bcForgedTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcForgedTest --sim.parallelism $PARALLELISM | ||
- name: Run bcInvalidHeaderTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcInvalidHeaderTest --sim.parallelism $PARALLELISM | ||
- name: Run bcMultiChainTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcMultiChainTest --sim.parallelism $PARALLELISM | ||
- name: Run bcUncleHeaderValidity | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcUncleHeaderValidity --sim.parallelism $PARALLELISM | ||
- name: Run bcUncleSpecialTests | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcUncleSpecialTests --sim.parallelism $PARALLELISM | ||
- name: Run bcUncleTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcUncleTest --sim.parallelism $PARALLELISM | ||
- name: Run bcArrowGlacierToMerge | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcArrowGlacierToMerge --sim.parallelism $PARALLELISM | ||
- name: Run bcBerlinToLondon | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcBerlinToLondon --sim.parallelism $PARALLELISM | ||
- name: Run bcByzantiumToConstantinopleFix | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcByzantiumToConstantinopleFix --sim.parallelism $PARALLELISM | ||
- name: Run bcEIP158ToByzantium | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcEIP158ToByzantium --sim.parallelism $PARALLELISM | ||
- name: Run bcFrontierToHomestead | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcFrontierToHomestead --sim.parallelism $PARALLELISM | ||
- name: Run bcHomesteadToDao | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcHomesteadToDao --sim.parallelism $PARALLELISM | ||
- name: Run bcHomesteadToEIP150 | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcHomesteadToEIP150 --sim.parallelism $PARALLELISM | ||
- name: Run bcMergeToShanghai | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcMergeToShanghai --sim.parallelism $PARALLELISM | ||
- name: Run bcBlockGasLimitTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcBlockGasLimitTest --sim.parallelism $PARALLELISM | ||
- name: Run bcEIP1559 | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcEIP1559 --sim.parallelism $PARALLELISM | ||
- name: Run bcEIP3675 | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcEIP3675 --sim.parallelism $PARALLELISM | ||
- name: Print results | ||
run: | | ||
chmod +x nethermind/scripts/hive-results.sh | ||
nethermind/scripts/hive-results.sh "hive/workspace/logs/*.json" | ||
test_66: | ||
name: 66. bcExploitTest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up parameters | ||
run: | | ||
echo "PARALLELISM=${{ github.event.inputs.parallelism || '3' }}" >> $GITHUB_ENV | ||
- name: Check out Nethermind repository | ||
uses: actions/checkout@v3 | ||
with: | ||
path: nethermind | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: nethermind | ||
file: nethermind/Dockerfile | ||
tags: nethermind:test-${{ github.sha }} | ||
outputs: type=docker,dest=/tmp/image.tar | ||
- name: Install Linux packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsnappy-dev libc6-dev libc6 build-essential | ||
|
@@ -6236,39 +6134,10 @@ jobs: | |
- name: Build Hive | ||
working-directory: hive | ||
run: go build . | ||
- name: Load Docker image | ||
run: docker load --input /tmp/image.tar | ||
- name: Run bcExploitTest | ||
|
||
- name: Run hive for tests - ${{ join(matrix.hiveTests.testNames, ', ') }} | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcExploitTest --sim.parallelism $PARALLELISM | ||
- name: Print results | ||
run: | | ||
chmod +x nethermind/scripts/hive-results.sh | ||
nethermind/scripts/hive-results.sh "hive/workspace/logs/*.json" | ||
test_67: | ||
name: 67. Combined tests (e.g. bcExample) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up parameters | ||
run: | | ||
echo "PARALLELISM=${{ github.event.inputs.parallelism || '3' }}" >> $GITHUB_ENV | ||
- name: Check out Nethermind repository | ||
uses: actions/checkout@v3 | ||
with: | ||
path: nethermind | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build Docker image | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: nethermind | ||
file: nethermind/Dockerfile | ||
tags: nethermind:test-${{ github.sha }} | ||
outputs: type=docker,dest=/tmp/image.tar | ||
- name: Install Linux packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libsnappy-dev libc6-dev libc6 build-essential | ||
|
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 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