Skip to content

Commit 8ad8613

Browse files
authored
feat: replace legacy replays with PRAGUE replays (#2461)
* refactor legacy replay tests This refactors the existing legacy replay tests, such they are: (1) all disabled; (2) live in their own package to avoid clutter; (3) all the actual replays have been moved into their own folder as well. * add initial set of prague replays The goal here is simply to figure out what the batch size is for the various testing regimes (fast replay, nightly, weekly). * updating gradle tests This simplifies the way the existing gradle test tasks are written, and also adds a notion of "weekly replay tests".
1 parent 49c71be commit 8ad8613

File tree

1,019 files changed

+4454
-2056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,019 files changed

+4454
-2056
lines changed

.github/workflows/gradle-nightly-replay-tests.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/gradle-nightly-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,41 @@ jobs:
1818
with:
1919
zkevm_fork: PRAGUE
2020
tests-with-ssh: ${{ inputs.tests-with-ssh || false }}
21+
22+
# ==================================================================
23+
# Replay Tests
24+
# ==================================================================
25+
nightly-replay-tests:
26+
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
with:
31+
submodules: recursive
32+
33+
- name: Setup Test Environment
34+
uses: ./.github/actions/setup-environment
35+
36+
- name: Run Nightly Replay tests
37+
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew nightlyReplayTests
38+
env:
39+
JAVA_OPTS: -Dorg.gradle.daemon=false
40+
GOCORSET_FLAGS: -v --ansi-escapes=false --report --mir
41+
JUNIT_TESTS_PARALLELISM: 2
42+
43+
- name: Upload test report
44+
if: ${{ always() }}
45+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
46+
with:
47+
name: nightly-replay-tests-report
48+
path: arithmetization/build/reports/tests/**/*
49+
50+
- name: Failure Notification
51+
if: github.ref == 'refs/heads/arith-dev' && (failure() || cancelled())
52+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
53+
with:
54+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
55+
webhook-type: webhook-trigger
56+
payload: |
57+
name: "NightlyReplay"
58+
status: "${{ job.status }}"

.github/workflows/gradle-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ jobs:
8787
run: GOMEMLIMIT=26GiB ./gradlew :arithmetization:fastReplayTests
8888
env:
8989
JAVA_OPTS: -Dorg.gradle.daemon=false
90-
REPLAY_TESTS_PARALLELISM: 4
90+
JUNIT_TESTS_PARALLELISM: 4
9191
GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air
92-
ZKEVM_FORK: LONDON
9392

9493
- name: Upload test report
9594
if: ${{ always() }}

.github/workflows/gradle-weekly-tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,39 @@ jobs:
2323
secrets: inherit
2424
with:
2525
zkevm_fork: PRAGUE
26+
27+
weekly-replay-tests:
28+
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-xxl
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
with:
33+
submodules: recursive
34+
35+
- name: Setup Test Environment
36+
uses: ./.github/actions/setup-environment
37+
38+
- name: Run Weekly Replay tests
39+
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew weeklyReplayTests
40+
env:
41+
JAVA_OPTS: -Dorg.gradle.daemon=false
42+
GOCORSET_FLAGS: -v --ansi-escapes=false --report --air
43+
JUNIT_TESTS_PARALLELISM: 2
44+
45+
- name: Upload test report
46+
if: ${{ always() }}
47+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
48+
with:
49+
name: weekly-replay-tests-report
50+
path: arithmetization/build/reports/tests/**/*
51+
52+
- name: Failure Notification
53+
if: github.ref == 'refs/heads/arith-dev' && (failure() || cancelled())
54+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
55+
with:
56+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
57+
webhook-type: webhook-trigger
58+
payload: |
59+
name: "WeeklyReplay"
60+
status: "${{ job.status }}"
61+

.github/workflows/manual-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
run: GOMEMLIMIT=26GiB ./gradlew :arithmetization:fastReplayTests
129129
env:
130130
JAVA_OPTS: -Dorg.gradle.daemon=false
131-
REPLAY_TESTS_PARALLELISM: 4
131+
JUNIT_TESTS_PARALLELISM: 4
132132
GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air
133133
ZKEVM_FORK: LONDON
134134

.github/workflows/reusable-blockchain-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew referenceExecutionSpecBlockchainTests -x spotlessCheck --tests "${{ inputs.test_filter || 'BlockchainReferenceTest_*' }}"
6868
timeout-minutes: 360
6969
env:
70-
REFERENCE_TESTS_PARALLELISM: 3
70+
JUNIT_TESTS_PARALLELISM: 3
7171
JAVA_OPTS: -Dorg.gradle.daemon=false
7272
GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air
7373
FAILED_TEST_JSON_DIRECTORY: ${{ github.workspace }}/tmp/${{ steps.extract_branch.outputs.branch }}/

.github/workflows/reusable-nightly-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
JAVA_OPTS: -Dorg.gradle.daemon=false
3232
GOCORSET_FLAGS: -v --ansi-escapes=false --report --mir
33-
NIGHTLY_TESTS_PARALLELISM: 2
33+
JUNIT_TESTS_PARALLELISM: 2
3434
ZKEVM_FORK: ${{ inputs.zkevm_fork }}
3535

3636
- name: Upload test report

.github/workflows/reusable-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
env:
3333
JAVA_OPTS: -Dorg.gradle.daemon=false
3434
GOCORSET_FLAGS: -b1024 -v --ansi-escapes=false --report --air
35-
UNIT_TESTS_PARALLELISM: 4
35+
JUNIT_TESTS_PARALLELISM: 4
3636
ZKEVM_FORK: ${{ inputs.zkevm_fork }}
3737

3838
- name: Upload test report

.github/workflows/reusable-weekly-prc-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: GOMAXPROCS=1 GOMEMLIMIT=10GiB ./gradlew prcCallTests
2727
env:
2828
JAVA_OPTS: -Dorg.gradle.daemon=false
29-
WEEKLY_TESTS_PARALLELISM: 24
29+
JUNIT_TESTS_PARALLELISM: 24
3030
GOCORSET_FLAGS: -v -b1024 --ansi-escapes=false --report --mir
3131
ZKEVM_FORK: ${{ inputs.zkevm_fork }}
3232

.github/workflows/reusable-weekly-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Run Weekly tests
2626
run: GOMAXPROCS=10 GOMEMLIMIT=20GiB ./gradlew weeklyTests
2727
env:
28-
WEEKLY_TESTS_PARALLELISM: 2
28+
JUNIT_TESTS_PARALLELISM: 2
2929
GOCORSET_FLAGS: -v -b1024 --ansi-escapes=false --report --mir
3030
ZKEVM_FORK: ${{ inputs.zkevm_fork }}
3131

0 commit comments

Comments
 (0)