Skip to content

Commit 08a7e8d

Browse files
committed
Workaround btest timeout in debug mode
Run bootstraptest/test_eval.rb with a fixed heap size.
1 parent 7f5944f commit 08a7e8d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/scripts/ci-btest.sh

+8
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,13 @@ echo "============ Bootstrape tests (btest) ($DEBUG_LEVEL) ============="
1010
if test "$DEBUG_LEVEL" == "vanilla"; then
1111
make btest TESTOPTS="-v -j${CI_JOBS}"
1212
else
13+
if test "$DEBUG_LEVEL" == "debug"; then
14+
# One test case in this file is taking too much time to run in debug mode, resulting in timeout.
15+
# It is because the default dynamic heap size does not work well with that pathological use case.
16+
# We simply run it with a fixed heap size and exclude it from the rest of the btests.
17+
TIMEOUT_TEST=../bootstraptest/test_eval.rb
18+
MMTK_GC_TRIGGER=FixedHeapSize:100m make btest RUN_OPTS="--mmtk-plan=$CHOSEN_PLAN" TESTOPTS="-v $TIMEOUT_TEST"
19+
rm $TIMEOUT_TEST
20+
fi
1321
make btest RUN_OPTS="--mmtk-plan=$CHOSEN_PLAN" TESTOPTS="-v -j${CI_JOBS}"
1422
fi

0 commit comments

Comments
 (0)