Skip to content

Commit

Permalink
Make sure reporting does not affect the Hive results (#6726)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchodola committed Feb 15, 2024
1 parent 5b93043 commit d128f58
Showing 1 changed file with 9 additions and 66 deletions.
75 changes: 9 additions & 66 deletions .github/workflows/hive-consensus-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/

0 comments on commit d128f58

Please sign in to comment.