Pin the bench image's Python and pytest to what CI uses, and give its command a mutmut prefix and its own build step

This commit is contained in:
2026-11-23 23:29:40 +01:00
parent 81e03f2a6d
commit ca99ed3ef5
4 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import typing
from machine_load.slots import CPUS_PER_SLOT
BIN = pathlib.Path(__file__).resolve().parents[1]
# ci.sh runs this command, so its pins live here; README.md → Test's mutation command repeats the pytest pin, so change both. The workers fill one heavy slot, since run-heavy grants one.
# ci.sh runs this command, so its pins live here; README.md → Test's mutation command and task-bench-image/Dockerfile repeat the pytest pins, so change all three. The workers fill one heavy slot, since run-heavy grants one.
PYTEST = ["uvx", "--python", shutil.which("python3") or sys.executable, "--with", "pytest-xdist==3.8.0", "pytest==9.2.0", "-n", str(CPUS_PER_SLOT)]
SECTION = re.compile(r"^=+ (.+) =+$")
TEST_HEADER = re.compile(r"^_+ .+ _+$")