Run the first chunk in the gate, and record what loads from the person's own home

This commit is contained in:
2026-12-04 06:53:09 +01:00
parent 66705ca616
commit ecbbe98823
4 changed files with 17 additions and 9 deletions
+2
View File
@@ -328,6 +328,8 @@ Test on the host with `bin/run-tests`, which runs pytest through `uvx`, pinned i
The commands in this section name their tools bare, as Tools says. CI runs `ci.sh` on every pull request, and `main` doesn't merge anything until it passes. The script runs the same tests on the committed HEAD in a pinned Python container. Run it under `run-heavy` to reproduce a CI failure, with Docker on `PATH` and its socket at `/var/run/docker.sock`, which the container shares.
`ci.sh` then runs `first-chunk-e2e/run`, which checks goals 2 and 3 as a newcomer meets them. It builds a container that holds what Install asks for and a stock Claude Code with a `~/.claude` of its own, clones the committed HEAD there, and has `build-release` run a task in a small project. A mock Messages API answers claude as a worker that is done and as a judge that rules the chunk finished, so the run needs no sign-in. It fails unless the chunk finishes on the setup's instructions, no request holds an instruction from the container's `~/.claude`, and that folder and `~/.claude.json` hold what they held before. Run it under `run-heavy` too. It needs the network: the image fetches Claude Code, and `build-release` installs the plugins.
To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout.
To bench how hard the code is to fix a bug in, build the image first, with `run-heavy docker build --quiet --memory 2g --memory-swap 2g -t dev-factory-task-bench task-bench-image`. Then run `task-bench --image dev-factory-task-bench --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"' --test 'python -m pytest -q -p no:cacheprovider -n 4 bin --ignore=bin/adf_codec --ignore=bin/run_tests --ignore=bin/repo_checks/test_types.py --deselect bin/plan/test_touches.py::PredictedTest --deselect bin/loop_effects/test_effects.py::ChildShells'` in this checkout, under `run-heavy`. A scoring run starts it with `--record-figures` added. The bench runs the tests with no network, so the image holds everything they need. The `--test` leaves out the tests that need docker or `uvx`, and `ChildShells`, which needs `docker run --init` to reap its processes: `bin/run-tests` on the host runs those.