Suite review, first batch: test groups smallest first, covers named before the sync reads them #238

Merged
bvandeusen merged 5 commits from dev into main 2026-12-01 06:41:21 -05:00
Owner

From #8249, the review of Grimoire's own suite, step 5 of milestone 672 "A test earns its place".

Product

  • Groups smallest first (7c7a1a7). Two- and three-test groups, the likeliest copies, now lead the list. Each group says copies or area and how many files it spans, and the panel tells an area group (one feature tested from several files) to fold its cases into one file.
  • A redundant verdict can name a cover the sync has not read yet (f4f036c). With repo=, the cover becomes a provisional row, as the judged shape already does, so a rewrite can be recorded in the same change.

Tests

  • Six tests that pinned a signature or a function's existence are removed or rewritten (fc1e305).
  • A database test now proves that listing by task kind filters the rows and the count.
  • A deliberate break (a16a0ef, reverted in 251f5cb) went red exactly on the new tests in CI run 11227.

Plugin 2026.12.01.0748. No migration.

CI is green on dev at f4f036c (run 11229).

🤖 Generated with Claude Code

From #8249, the review of Grimoire's own suite, step 5 of milestone 672 "A test earns its place". **Product** - **Groups smallest first** (7c7a1a7). Two- and three-test groups, the likeliest copies, now lead the list. Each group says `copies` or `area` and how many files it spans, and the panel tells an area group (one feature tested from several files) to fold its cases into one file. - **A redundant verdict can name a cover the sync has not read yet** (f4f036c). With `repo=`, the cover becomes a provisional row, as the judged shape already does, so a rewrite can be recorded in the same change. **Tests** - Six tests that pinned a signature or a function's existence are removed or rewritten (fc1e305). - A database test now proves that listing by task kind filters the rows and the count. - A deliberate break (a16a0ef, reverted in 251f5cb) went red exactly on the new tests in CI run 11227. Plugin 2026.12.01.0748. No migration. CI is green on dev at f4f036c (run 11229). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 5 commits 2026-12-01 06:41:18 -05:00
fix(8249): test groups come smallest first, and a big one is read as a feature area
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m14s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 35s
7c7a1a7ab9
A group is the set of tests reaching the same code from different files. A
test that drives a feature through its one entry point reaches exactly that
entry point whatever it checks, so the largest groups are a feature tested
from many files, not copies. Listing them first buried the two- and
three-test groups where one-for-one duplicates are. The readout, the tool and
the panel now list smallest first; each group says copies or area and how
many files it spans, and the panel tells an area to fold its scattered cases
into one file. Plugin 2026.12.01.0748.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of the small test groups. Four tests pinned an argument list or a
function existing where the behaviour was untested or tested elsewhere:
- test_routes_planning: the signature check and the callable check become
  one check that POST /api/tasks/planning is routed on the app.
- test_routes_tasks_kind: both signature checks go; create_note and
  list_notes are called with task_kind by tests that would fail without it,
  and the blueprint check is covered by the planning route check.
- test_list_notes_filters_by_task_kind asserted only that the call did not
  raise. It is replaced by a database test that lists issues, work and all
  kinds and checks the rows and the count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(8249): DELIBERATE BREAK, the kind filter and the planning route removed to watch their tests fail
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Failing after 1m47s
CI & Build / integration (push) Failing after 2m44s
CI & Build / Build & push image (push) Skipped
a16a0ef3cd
Reverted by the next commit. CI must go red on test_integration_task_kind_list
(issue and work rows) and test_routes_planning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Revert the deliberate break: the kind filter and the planning route are back
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / Python tests (push) Successful in 2m6s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m28s
CI & Build / Build & push image (push) Successful in 18s
251f5cb286
The break (a16a0ef) went red exactly where it should, in CI run 11227:
- test_routes_planning::test_starting_a_plan_is_routed_on_the_app;
- test_integration_task_kind_list [issue] and [work]; the all-kinds case
  stayed green, as it must.
Nothing else failed (unit 1 failed / 3771 passed, database 2 failed / 478
passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(8249): a redundant verdict can name a cover the sync has not read yet
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m7s
CI & Build / integration (push) Successful in 2m41s
CI & Build / Build & push image (push) Successful in 25s
f4f036c8a7
A test is usually rewritten in the same change that removes the one it
replaces, so the cover is new to the ledger when the verdict is recorded,
and the next refresh retires the removed test. classify_shapes refused such
a cover as matching no live shape. With a bound `repo` the cover now
resolves the way the judged shape already does, as a provisional row the
next sync adopts; without one it is refused as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvandeusen merged commit 359766b370 into main 2026-12-01 06:41:21 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledGrimoire#238