From 94f9822884770c093d943593ba771ec13c8c5f2e Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Tue, 10 Nov 2026 19:48:00 +0100 Subject: [PATCH] Let CI mirror pytest worker count be set Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWXcjiPpgRfxzrRfoky --- scripts/ci_mirror.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ci_mirror.sh b/scripts/ci_mirror.sh index 4f93845..5fce953 100755 --- a/scripts/ci_mirror.sh +++ b/scripts/ci_mirror.sh @@ -105,7 +105,9 @@ run_precommit_group() { run_pytest_clean_venv() { log "pytest in the clean venv (mirrors the Tests workflow)" - "$VENV_DIR/bin/python" -m pytest -n auto --dist worksteal "$@" \ + # CI_MIRROR_WORKERS: xdist worker count (default auto = one per core; on a + # busy 24-core box that is ~3 GiB and trips the capped.sh memory ceiling). + "$VENV_DIR/bin/python" -m pytest -n "${CI_MIRROR_WORKERS:-auto}" --dist worksteal "$@" \ || fail "pytest (clean requirements.txt venv)" }