Skip to content

Commit 4e17542

Browse files
committed
Increase RUBY_TEST_TIMEOUT_SCALE for RUBY_DEBUG builds too
1 parent 977eaf0 commit 4e17542

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ jobs:
184184
run: |
185185
echo "cppflags=-DENABLE_PATH_CHECK=0 -DRUBY_DEBUG=1" >> $GITHUB_ENV
186186
echo "optflags=-O3 -fno-inline" >> $GITHUB_ENV
187+
# Make the test timeouts more generous (RUBY_DEBUG is slower, see https://bugs.ruby-lang.org/issues/21295)
188+
echo "RUBY_TEST_TIMEOUT_SCALE=5" >> $GITHUB_ENV
187189
if: matrix.name == 'debug'
188190
- name: Build dependencies and set configure flags (asan)
189191
run: |
@@ -211,7 +213,7 @@ jobs:
211213
# Make sure we link against the ASAN libs we built
212214
echo "cflags=-I$ASAN_LIB_PREFIX/include" >> $GITHUB_ENV
213215
echo "LDFLAGS=-L$ASAN_LIB_PREFIX/lib -Wl,-rpath=$ASAN_LIB_PREFIX/lib" >> $GITHUB_ENV
214-
# Make the test timeouts more generous too (ASAN is slower)
216+
# Make the test timeouts more generous (ASAN is slower)
215217
echo "RUBY_TEST_TIMEOUT_SCALE=5" >> $GITHUB_ENV
216218
echo "SYNTAX_SUGGEST_TIMEOUT=600" >> $GITHUB_ENV
217219
if: matrix.name == 'asan' || matrix.name == '3.4-asan'

0 commit comments

Comments
 (0)