Skip to content

Commit 643ca81

Browse files
authored
ZJIT: run zjit-test-all on CI with seed (ruby#13912)
ZJIT: run zjit-test-all on CI with seed ZJIT is still unstable and can crash intermittently running with Ruby tests. Adding a seed to avoid flakiness while we work on stability.
1 parent 133cf95 commit 643ca81

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/zjit-macos.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040

4141
- test_task: 'zjit-test-all'
4242
configure: '--enable-zjit=dev'
43+
testopts: '--seed=11831'
4344

4445
- test_task: 'btest'
4546
configure: '--enable-zjit=dev'
@@ -48,6 +49,7 @@ jobs:
4849
GITPULLOPTIONS: --no-tags origin ${{ github.ref }}
4950
RUN_OPTS: ${{ matrix.zjit_opts }}
5051
SPECOPTS: ${{ matrix.specopts }}
52+
TESTOPTS: ${{ matrix.testopts }}
5153

5254
runs-on: macos-14
5355

@@ -146,6 +148,7 @@ jobs:
146148
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
147149
RUN_OPTS="$RUN_OPTS"
148150
SPECOPTS="$SPECOPTS"
151+
TESTOPTS="$TESTOPTS"
149152
timeout-minutes: 60
150153
env:
151154
RUBY_TESTOPTS: '-q --tty=no'

.github/workflows/zjit-ubuntu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242

4343
- test_task: 'zjit-test-all'
4444
configure: '--enable-zjit=dev'
45+
testopts: '--seed=11831'
4546

4647
- test_task: 'btest'
4748
configure: '--enable-zjit=dev'
@@ -51,6 +52,7 @@ jobs:
5152
RUN_OPTS: ${{ matrix.zjit_opts }}
5253
YJIT_BENCH_OPTS: ${{ matrix.yjit_bench_opts }}
5354
SPECOPTS: ${{ matrix.specopts }}
55+
TESTOPTS: ${{ matrix.testopts }}
5456
RUBY_DEBUG: ci
5557
BUNDLE_JOBS: 8 # for yjit-bench
5658
RUST_BACKTRACE: 1
@@ -167,6 +169,7 @@ jobs:
167169
run: >-
168170
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
169171
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS"
172+
TESTOPTS="$TESTOPTS"
170173
ZJIT_BINDGEN_DIFF_OPTS="$ZJIT_BINDGEN_DIFF_OPTS"
171174
timeout-minutes: 90
172175
env:

0 commit comments

Comments
 (0)