Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(core): daily_reports #1873

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/ci_levm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
evm: levm
job_type: trigger

hive-report-creation-main:
uses: ./.github/workflows/common_hive_reports.yaml
with:
evm: levm
job_type: main

# Check we don't have a regression against main
hive-test:
if: ${{ github.event_name != 'merge_group' }}
Expand All @@ -86,16 +92,16 @@ jobs:
- name: Download results (main)
uses: actions/download-artifact@v4
with:
name: results_levm_daily.md
name: results_levm_main.md
# If we don't have the file it will use the result(1) file
continue-on-error: true

- name: Rename result (2)
run: cp results.md results_levm_daily.md
run: cp results.md results_levm_main.md

- name: Create diff message
run: |
bash .github/scripts/hive_levm_revm_diff.sh results_levm_daily.md results_levm.md >> diff.md
bash .github/scripts/hive_levm_revm_diff.sh results_levm_main.md results_levm.md >> diff.md
cat diff.md >> $GITHUB_STEP_SUMMARY

- name: Check Regression
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/common_hive_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
evm:
required: true
type: string
# Must be 'daily' or 'trigger'
# If it's daily, it is assumed that the CI is checking out the main branch
# Must be 'main'/'trigger' or 'daily'
job_type:
required: true
type: string
Expand Down Expand Up @@ -45,8 +44,15 @@ jobs:
docker tag ghcr.io/lambdaclass/ethrex:latest ethrex:latest

- name: Checkout sources
if: ${{ inputs.job_type != 'main' }}
uses: actions/checkout@v4

- name: Checkout sources
if: ${{ inputs.job_type == 'main' }}
uses: actions/checkout@v4
with:
ref: main

- name: Build Image with LEVM
if: ${{ inputs.evm == 'levm' }}
run: cd crates/vm/levm && make build-image-levm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
- name: Download results (levm)
uses: actions/download-artifact@v4
with:
name: results_levm_daily_main.md
name: results_levm_daily.md

- name: Rename result (1)
run: cp results.md results_levm.md

- name: Download results (revm)
uses: actions/download-artifact@v4
with:
name: results_revm_daily_main.md
name: results_revm_daily.md

- name: Rename result (2)
run: cp results.md results_revm.md
Expand Down
Loading