From 5e84ff7a795a0112daa403f6d86c9276319ee7cb Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 19:50:40 -0700 Subject: [PATCH] docs(testing): CI's check is five parts, from the justfile's one list 5544a3e66 split the `check` job into five parts on five runners; the page still said one job runs `just check`. It now names the parts, how to run one here, and that the lint part fails when the workflow's list is not the justfile's. Co-Authored-By: Claude --- docs/testing.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/testing.md b/docs/testing.md index 31c32055..f8d27169 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -37,7 +37,12 @@ promise. | Mutation (MCP) | can the tests fail? | `ledger-mcp` (2026-10-14: from 197 caught + 5 timeouts of 328 viable (62%) to 314 caught + 2 timeouts of 331; of its 15 survivors, five then killed by targeted tests (the settings file beside the books, year earnings with an open period and with last year's partial close, year 1, a failed flush), one dead guard removed (`profit_and_loss_by_class` skipping placeholders, which never take postings), nine equivalent: `money` rescaling an amount already at two places, the lock wait's deadline instant, `year_earnings` starting the day the year starts either way, the bank import's rehearsal sides (a line's side can't make a draft refuse) and its zero-amount side (zero rows are dropped by the parser), a disposal's zero gain adding zero, and the CPA package index summing debits instead of credits (entries balance)) | `just mutants-mcp` | ~1 h | weekly | | Mutation (GUI) | can the tests fail? | `ledger-gui` view model and formatting (2026-10-14: 140 caught of 176 viable on the full run, then 92 of 99 on a targeted rerun of the money paths after new tests; of its 7 survivors, one then killed by a test (burn over exactly one month, confirmed by a rerun of `compute_kpis`'s 48 mutants), two dead arms removed (`parties`' bill arms: the ledger tags bill entries with their vendor, which wins), four equivalent: an entry's debits vs its credits (they balance), the three-month burn boundary (both paths give 3), burn over zero covered months (only when the first entry is after the window, which then holds no loss), and `compact`'s sign test at zero (zero prints "$0" unsigned either way)) | retired 2026-10-18 (owner: it crushed the machine; for the viewer, test its two musts directly: it never writes the books, `tests/read_only.rs`, and every figure it shows is the engine's, `tests/view_model.rs`) | | never | -CI: `.github/workflows/check.yml` runs `just check` on every push; +CI: `.github/workflows/check.yml` runs `just check` on every push, as +five parts on five runners side by side (the justfile's `check_shards`: +`lint`, `gui-unit`, `gui-tests`, `cli`, `rest`; on one runner the job took +72 minutes on 2026-11-09). `just check` here runs the same five in turn, +`just check-shard ` one of them, and the lint part fails if the +workflow's list is not the justfile's; `two-user.yml` the self-host deployment's two-account check (P9a); `scheduled.yml` runs the proofs, the oracle, the coverage report and floor, and the fuzz targets weekly. Mutation ran there in shards until 2026-10-29 (`just mutants-mcp 3/16` runs the fourth of sixteen; GitHub stops a job at six hours), and is now local only (D-59). Test timeouts are three times each run's own baseline, never under the recipe's floor, so a slower runner doesn't report false timeouts. The viewer has no mutation job. Development mutation runs are paused until the P12 max-testing pass (D-33, 2026-10-20): each unit records its targets in a **For P12** paragraph instead. Mutation testing is a local run, not a CI job (the owner, 2026-10-29, D-59): the weekly shards were removed from `scheduled.yml`, and the "weekly" in the mutation rows above is history (the 2026-10-26 run: real survivors and timeouts in every crate, the debt P12 clears).