Run the tests once, on the latest stable Python, across the CPUs

This commit is contained in:
2026-10-28 12:17:05 +01:00
parent d7806d0b16
commit 53e663c8f8
18 changed files with 33 additions and 71 deletions
+4 -4
View File
@@ -10,14 +10,14 @@
Valid while the archive's file names, the Vocabulary and the panel keep these words.
## bin/: the tests rerun themselves on a `uv`-fetched Python at README Install's floor
2026-09-26, larv-review. Serves goal 2. The suite reruns itself on a `uv`-fetched interpreter of the version Install names: `ast.parse(feature_version=)` on the host's Python accepts the nested f-string 186181a fixed, a compile check passes a call newer than the floor, like 3.12's `itertools.batched`, and a `python3.N` on `PATH` is installed by hand on every machine and again at each bump. Valid while `uv` can fetch the floor interpreter and no machine taking the checkout ships an older Python.
## bin/: the tools and their tests run on the host's Python, with no container
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
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.
## 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
2026-10-22, lilleman, through todo item 217. Serves goal 1.4: each review has a fixed cost, so more items per chunk cost less per item. Across the 165 finished chunks loop-claude archived up to that day, a chunk took a median of 1.30M tokens with one item and 1.33M with two, and three in four chunks shipped one item. The old rule also asked one PR title to state what the items achieve together; lilleman dropped it, since unrelated items that fire the same passes cost one review.
+4
View File
@@ -883,3 +883,7 @@ Read most (opens and searches):
## Reading cost, chunk 22d616a7a912, finished 2026-10-28T10:14:46Z
116420 new input tokens before the first commit.
## Reading cost, chunk b25d0b8f6319, finished 2026-10-28T11:11:03Z
221959 new input tokens before the first commit.