Skip to content

Commit

Permalink
refactor(levm): Merge daily hive jobs into a single job.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpaulucci committed Jan 8, 2025
1 parent 242b4d3 commit 0a8b6df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 96 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/daily_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ env:

jobs:
run-hive:
name: Hive - ${{ matrix.name }}
name: Hive (${{ matrix.vm }}) - ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
vm: [levm, revm]
include:
- name: "Rpc Compat tests"
file_name: rpc-compat
Expand All @@ -31,13 +32,18 @@ jobs:

steps:
- name: Pull image
if: ${{ matrix.vm == 'revm' }}
run: |
docker pull ghcr.io/lambdaclass/ethrex:latest
docker tag ghcr.io/lambdaclass/ethrex:latest ethrex:latest
- name: Checkout sources
uses: actions/checkout@v4

- name: Build Image with LEVM
if: ${{ matrix.vm == 'levm' }}
run: cd crates/vm/levm && make build-image-levm

- name: Setup Go
uses: actions/setup-go@v5

Expand All @@ -51,7 +57,7 @@ jobs:
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.file_name }}_logs
name: ${{ matrix.file_name }}_${{ matrix.vm }}_logs
path: hive/workspace/logs/*-*.json

hive-report:
Expand Down Expand Up @@ -82,7 +88,7 @@ jobs:

- name: Post results in summary
run: |

Check failure on line 90 in .github/workflows/daily_reports.yaml

View workflow job for this annotation

GitHub Actions / Lint

property "vm" is not defined in object type {}
echo "# Hive coverage report" >> $GITHUB_STEP_SUMMARY
echo "# Hive coverage report (${{ matrix.vm }})" >> $GITHUB_STEP_SUMMARY
cat results.md >> $GITHUB_STEP_SUMMARY
- name: Post results to ethrex L1 slack channel
Expand All @@ -98,7 +104,12 @@ jobs:
- name: Post results to levm slack channel
env:
url: ${{ secrets.LEVM_SLACK_WEBHOOK }}
run: sh .github/scripts/publish.sh
run: |

Check failure on line 107 in .github/workflows/daily_reports.yaml

View workflow job for this annotation

GitHub Actions / Lint

property "vm" is not defined in object type {}
if [ "${{ matrix.vm }}" = "revm" ]; then
sh .github/scripts/publish.sh
elif [ "${{ matrix.vm }}" = "levm" ]; then
sh .github/scripts/publish_levm_hive.sh
fi
loc:
name: Count ethrex loc and generate report
Expand Down
92 changes: 0 additions & 92 deletions .github/workflows/daily_reports_levm_hive.yaml

This file was deleted.

0 comments on commit 0a8b6df

Please sign in to comment.