-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure reporting does not affect the Hive results (#6726)
- Loading branch information
1 parent
5b93043
commit d128f58
Showing
1 changed file
with
9 additions
and
66 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 |
---|---|---|
|
@@ -6622,70 +6622,13 @@ jobs: | |
run: | | ||
chmod +x nethermind/scripts/hive-results.sh | ||
nethermind/scripts/hive-results.sh "hive/workspace/logs/*.json" | ||
test_68: | ||
name: 68. Combined tests (e.g. bcTotalDifficultyTest) | ||
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 | ||
- name: Set up Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '>=1.17.0' | ||
- name: Check out Hive repository | ||
uses: actions/checkout@v3 | ||
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 bcTotalDifficultyTest | ||
- name: Send results to dashboard | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcTotalDifficultyTest --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 bcValidBlockTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcValidBlockTest --sim.parallelism $PARALLELISM | ||
- name: Run bcWalletTest | ||
continue-on-error: true | ||
working-directory: hive | ||
run: ./hive --client nethermind --sim ethereum/consensus --sim.limit /bcWalletTest --sim.parallelism $PARALLELISM | ||
- name: Print results | ||
run: | | ||
chmod +x nethermind/scripts/hive-results.sh | ||
nethermind/scripts/hive-results.sh "hive/workspace/logs/*.json" | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.HIVE_HOST }} | ||
username: ${{ secrets.HIVE_USERNAME }} | ||
key: ${{ secrets.HIVE_KEY }} | ||
port: ${{ secrets.HIVE_PORT }} | ||
source: hive/workspace/logs/* | ||
target: ${{ secrets.HIVE_DIR }}/ |