diff --git a/.github/workflows/differential-tests.yml b/.github/workflows/differential-tests.yml index 8e11097a..39142149 100644 --- a/.github/workflows/differential-tests.yml +++ b/.github/workflows/differential-tests.yml @@ -5,8 +5,15 @@ on: env: IS_PUSH_TO_MAIN: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - # The compiler modes to use for compilation by retester. - MODES: "Y M0 S+, Y M3 S+, Y Mz S+" + # The exact compiler modes to use for compiling and comparing hashes by retester. + # Runs triggered by pushes to main exercise more modes. + COMPILE_MODES: >- + ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') + && 'Y M0 S+, Y M3 S+, Y Mz S+, NY M0 S+, NY M3 S+, NY Mz S+' + || 'Y M0 S+, Y M3 S+, Y Mz S+, NY Mz S+' }} + # The compiler modes allowed to run during e2e test execution by retester. + # E.g. this can be updated to allow only `"Y, NY Mz S+"` (all Yul modes + newyork with -Oz and solc optimizer enabled). + E2E_ALLOWED_MODES: "Y, NY" SOLC_VERSION: "0.8.35" jobs: @@ -97,7 +104,7 @@ jobs: revive-differential-tests-path: revive/revive-differential-tests resolc-path: resolc-bin/resolc-${{ matrix.target }}${{ runner.os == 'Windows' && '.exe' || '' }} solc-version: ${{ env.SOLC_VERSION }} - modes: ${{ env.MODES }} + modes: ${{ env.COMPILE_MODES }} upload-artifact-name: compilation-report-${{ matrix.platform }} - name: Export Bytecode Hashes @@ -128,7 +135,7 @@ jobs: hashes-macos-arm64, ${{ env.IS_PUSH_TO_MAIN == 'true' && 'hashes-macos-x86_64,' || '' }} hashes-windows-x86_64 - modes: ${{ env.MODES }} + modes: ${{ env.COMPILE_MODES }} upload-artifact-name: hash-comparison-result run-e2e-tests: @@ -200,6 +207,8 @@ jobs: platform: revive-dev-node-polkavm-resolc resolc-path: ./resolc-bin/resolc-x86_64-unknown-linux-musl solc-version: ${{ env.SOLC_VERSION }} + allowed-modes: ${{ env.E2E_ALLOWED_MODES }} + use-compilation-caches: false expectations-file-path: ./revive/.github/assets/revive-dev-node-polkavm-resolc.json # Use a sane value which is fast enough to make the tests run fast but not too # fast that it overwhelms the node. diff --git a/revive-differential-tests b/revive-differential-tests index 70e8a92f..f5d444da 160000 --- a/revive-differential-tests +++ b/revive-differential-tests @@ -1 +1 @@ -Subproject commit 70e8a92f95bb73b6b2aa244f1bba46e0501e34f1 +Subproject commit f5d444dacfb474e55014a871a5f4f61679ba7f82