Skip to content
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
51 changes: 51 additions & 0 deletions .github/workflows/gradle-nightly-replay-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Nightly Replay Tests
permissions:
contents: read

on:
schedule:
- cron: "0 22 * * 1-5"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# ==================================================================
# Replay Tests
# ==================================================================
nightly-replay-tests:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: recursive

- name: Setup Test Environment
uses: ./.github/actions/setup-environment

- name: Run Nightly Replay tests
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew nightlyReplayTests
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
GOCORSET_FLAGS: -v --ansi-escapes=false --report --mir
NIGHTLY_REPLAY_TESTS_PARALLELISM: 2

- name: Upload test report
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: nightly-replay-tests-report
path: arithmetization/build/reports/tests/**/*

- name: Failure Notification
if: github.ref == 'refs/heads/arith-dev' && (failure() || cancelled())
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
name: "NightlyReplay"
status: "${{ job.status }}"
85 changes: 36 additions & 49 deletions .github/workflows/gradle-nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Nightly Tests
permissions:
contents: read

on:
schedule:
Expand All @@ -10,52 +12,37 @@ concurrency:
cancel-in-progress: true

jobs:
nightly-tests:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: recursive

- name: Setup Test Environment
uses: ./.github/actions/setup-environment

- name: Run Nightly tests
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew nightlyTests
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
GOCORSET_FLAGS: -v --ansi-escapes=false --report --mir
NIGHTLY_TESTS_PARALLELISM: 2
ZKEVM_FORK: LONDON

- name: Upload test report
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: nightly-tests-report-LONDON
path: arithmetization/build/reports/tests/**/*

- name: Upload jacoco nightly tests coverage report
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: jacoco-nightly-tests-coverage-report-LONDON
path: arithmetization/build/reports/jacoco/jacocoNightlyTestsReport/**/*

- name: Upload jacoco nightly tests exec file
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: jacoco-nightly-tests-exec-file-LONDON
path: arithmetization/build/jacoco/nightlyTests.exec

- name: Failure Notification
if: github.ref == 'refs/heads/arith-dev' && (failure() || cancelled())
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
name: "Nightly"
status: "${{ job.status }}"
nightly-tests-london:
uses: ./.github/workflows/reusable-nightly-tests.yml
secrets: inherit
with:
zkevm_fork: LONDON
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}

nightly-tests-paris:
uses: ./.github/workflows/reusable-nightly-tests.yml
secrets: inherit
with:
zkevm_fork: PARIS
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}

nightly-tests-shanghai:
uses: ./.github/workflows/reusable-nightly-tests.yml
secrets: inherit
with:
zkevm_fork: SHANGHAI
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}

nightly-tests-cancun:
uses: ./.github/workflows/reusable-nightly-tests.yml
secrets: inherit
with:
zkevm_fork: CANCUN
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}

nightly-tests-prague:
uses: ./.github/workflows/reusable-nightly-tests.yml
secrets: inherit
with:
zkevm_fork: PRAGUE
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Workflow Inputs Undefined

Both gradle-replay-tests.yml and gradle-nightly-tests.yml workflows reference inputs variables (inputs.zkevm_fork and inputs.tests-with-ssh) without defining an inputs section. In gradle-replay-tests.yml, this results in malformed artifact names. For gradle-nightly-tests.yml, it causes the tests-with-ssh parameter passed to the reusable workflow to always evaluate to false.

Additional Locations (1)

Fix in Cursor Fix in Web

65 changes: 65 additions & 0 deletions .github/workflows/reusable-nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "Reusable nightly tests workflow"

on:
workflow_call:
inputs:
zkevm_fork:
required: true
type: string
tests-with-ssh:
required: true
type: boolean

jobs:
# ==================================================================
# Nightly Tests
# ==================================================================
nightly-tests:
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: recursive

- name: Setup Test Environment
uses: ./.github/actions/setup-environment

- name: Run Nightly tests
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew nightlyTests
env:
JAVA_OPTS: -Dorg.gradle.daemon=false
GOCORSET_FLAGS: -v --ansi-escapes=false --report --mir
NIGHTLY_TESTS_PARALLELISM: 2
ZKEVM_FORK: ${{ inputs.zkevm_fork }}

- name: Upload test report
if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: nightly-tests-report-${{ inputs.zkevm_fork }}
path: arithmetization/build/reports/tests/**/*

- name: Upload jacoco nightly tests coverage report
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: jacoco-nightly-tests-coverage-report-${{ inputs.zkevm_fork }}
path: arithmetization/build/reports/jacoco/jacocoNightlyTestsReport/**/*

- name: Upload jacoco nightly tests exec file
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: jacoco-nightly-tests-exec-file-${{ inputs.zkevm_fork }}
path: arithmetization/build/jacoco/nightlyTests.exec

- name: Failure Notification
if: github.ref == 'refs/heads/arith-dev' && (failure() || cancelled())
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
name: "Nightly"
status: "${{ job.status }}"
Loading
Loading