diff --git a/.github/workflows/ci_levm.yaml b/.github/workflows/ci_levm.yaml index 46f76313e8..7c305b2682 100644 --- a/.github/workflows/ci_levm.yaml +++ b/.github/workflows/ci_levm.yaml @@ -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' }} @@ -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 diff --git a/.github/workflows/common_hive_reports.yaml b/.github/workflows/common_hive_reports.yaml index fc789402cc..acac49de87 100644 --- a/.github/workflows/common_hive_reports.yaml +++ b/.github/workflows/common_hive_reports.yaml @@ -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 @@ -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 diff --git a/.github/workflows/daily_reports.yaml b/.github/workflows/daily_reports.yaml index a01eb690fb..7cc3874cf3 100644 --- a/.github/workflows/daily_reports.yaml +++ b/.github/workflows/daily_reports.yaml @@ -32,7 +32,7 @@ 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 @@ -40,7 +40,7 @@ jobs: - 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