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
+1 -1
View File
@@ -110,7 +110,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a
- `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it.
- `subagent-rung [--plan] <model> <L>` prints the Agent tool's model and effort for a subagent's task, picked by its L from the project's model, and with `--plan` never below the project's rung; `subagent-rung --help` states the rule.
Test on the host, with `uv` on `PATH` to fetch mypy and pytest-xdist, which spreads the tests across the CPUs (`docs/decisions.md` → `bin/`): `uvx --python "$(command -v python3)" --with pytest-xdist pytest -n auto bin`. `python3 -m unittest discover -s bin -p 'test_*.py'` runs the same tests one at a time. Test the bench's git wrapper with `python3 -m unittest discover -s workflow-bench -p 'test_*.py'`.
Test on the host, with `uv` on `PATH` to fetch mypy, pytest and pytest-xdist, which runs the tests in four workers, one heavy slot's CPUs (`docs/decisions.md` → `bin/`): `uvx --python "$(command -v python3)" --with pytest-xdist==3.8.0 pytest==9.2.0 -n 4 bin`. `python3 -m unittest discover -s bin -p 'test_*.py'` runs the same tests one at a time. Test the bench's git wrapper with `python3 -m unittest discover -s workflow-bench -p 'test_*.py'`.
To mutation-test a changed module, copy `bin/` to a scratch directory (`cp -r bin "$scratch"`): mutmut writes files beside its config. In the copy, name the module and its tests in a `setup.cfg`, as below for `score_outcomes/results.py`. Leave out each test class that starts a tool's launcher through `subprocess`: a mutated module fails to load in a process mutmut did not start.