Answer architecture round 1: 0 🔴, 2 🟡 (0 misread); run the tests in one heavy slot's four workers, pin pytest

This commit is contained in:
2026-10-28 12:21:08 +01:00
parent 53e663c8f8
commit d57727ec39
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ Valid while the archive's file names, the Vocabulary and the panel keep these wo
2026-09-24, larv-review. Serves goals 1 and 2. The tools drive the host's claude CLI and read the host's session files, which a container cannot see; the tests run on the same host Python the tools meet. Valid while claude runs on the host.
## bin/: the tools support only the latest stable Python, and the tests run once on it, spread across the CPUs by pytest-xdist
## bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run once on it in four pytest-xdist workers
2026-10-28, lilleman, through todo item 245. Serves goal 1.5: the suite gates every chunk. It took 198 s, 102 s of which reran it on the oldest Python README Install named, 3.11. README Install now asks for the latest stable Python as `python3`, and mypy checks the tools for the Python running the tests. README's Test line runs pytest-xdist through `uvx`, which spreads the tests across the CPUs: 23 s on a 16-CPU machine. It passes the path of `python3`, since `uvx --python python3` picks a Python uv installed itself, which may be older. Plain `python3 -m unittest` runs the same tests one at a time. Valid while every machine taking the checkout gets the latest stable Python soon after its release.
2026-10-28, lilleman, through todo item 245. Serves goal 1.5: the suite gates every chunk. It took 198 s, 102 s of which reran it on the oldest Python README Install named, 3.11. README Install now asks for the latest stable Python as `python3`, and mypy checks the tools for the Python running the tests. README's Test line runs the tests in four pytest-xdist workers through `uvx`: 29 s on a 16-CPU machine. Four is one heavy slot's CPUs, `CPUS_PER_SLOT` in `bin/machine_load/slots.py`, so a gate under `run-heavy` loads only the slot it waits for. The line pins pytest and pytest-xdist, as `test_types.py` pins mypy, so every machine runs the gate the same way. It passes the path of `python3`, since `uvx --python python3` picks a Python uv installed itself, which may be older. The tests use stdlib `unittest` alone, and pytest only runs them, so plain `python3 -m unittest` runs the same tests one at a time and another runner can replace pytest. Valid while every machine taking the checkout gets the latest stable Python soon after its release.
## chunks: a chunk takes every unblocked item of its release that fires the same review passes, whatever its purpose, and an item above R 5 ships alone