From f902496915beeb10831fa50e728c682045050d4f Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Thu, 11 Jun 2026 11:44:17 -0600 Subject: [PATCH] Try to minimize peak RSS on 32 bit 3.15t builds --- tools/wheels/cibw_test_command.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/wheels/cibw_test_command.sh b/tools/wheels/cibw_test_command.sh index 4aa4370..6b2c6a3 100644 --- a/tools/wheels/cibw_test_command.sh +++ b/tools/wheels/cibw_test_command.sh @@ -25,10 +25,15 @@ if [[ $FREE_THREADED_BUILD == "True" ]]; then fi fi -# Run full tests with -n=auto. This makes pytest-xdist distribute tests across -# the available N CPU cores. Also print the durations for the 10 slowest tests -# to help with debugging slow or hanging tests -python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['-n=auto', '--durations=10']))" +if [[ $RUNNER_OS == "Windows" && $IS_32_BIT == true && $FREE_THREADED_BUILD == "True" ]] ; then + # Avoid OOM errors by turning off xdist and forcing mimalloc to return pages with no delay + MIMALLOC_PURGE_DELAY=0 python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['--durations=10']))" +else + # Run full tests with -n=auto. This makes pytest-xdist distribute tests across + # the available N CPU cores. Also print the durations for the 10 slowest tests + # to help with debugging slow or hanging tests + python -c "import sys; import numpy; sys.exit(not numpy.test(label='full', extra_argv=['-n=auto', '--durations=10']))" +fi # Check license file content python $PROJECT_DIR/tools/wheels/check_license.py