Repository navigation
test(update): verify the recorded preparation failure - #205363
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR requires the saved update failure to contain the injected preparation bookkeeping error. Example: Preparation fails before reaching the injected activating-phase bookkeeping error.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it strengthens a meaningful failure-path test with the smallest focused assertion, and no actionable patch defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCLI and Gateway updates call prepareUpdate, which records preparation failures in the update ledger before a launcher trial is published; this test reads that ledger through the existing reader. flowchart TD
A[CLI or Gateway update] --> B[prepareUpdate]
B --> C[Activation bookkeeping]
C --> D[Failure recording]
D --> E[Update ledger]
E --> F[Persisted failure assertion]
B --> G[Launcher trial publication]
Technical reviewBest possible solution: Keep the existing fixture and strengthen its persisted failure assertion exactly as this PR does. Do we have a high-confidence way to reproduce the issue? Source confirms the original assertion accepts any earlier failure producing failed/finished with no trial; the author reports a matching mutation control, which was not rerun during this read-only review. Is this the best way to solve the issue? The added assertion observes the real persisted result rather than a mock call, distinguishes the intended injected failure, and needs no new fixture, helper, or production seam. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ea0116a6dfcb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +7. Total +7 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource matches. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 25, 2026, 8:26 AM ET / 13:26 UTC. |
|
Merged via squash auto-merge.
|
* commit '92569e37ab84a8cb1e4a12c3dcbb45acb97977c9': fix: distinguish Desktop sources without wrapping their names or IDs (#203747) fix(ui): Greek sigma searches miss matches outside Sessions and Files (#189518) fix: keep agent skill names on one line beside their switches (#203734) test(cron): admit scheduled occurrences in cron fixtures and fix Node 24 toHex in Vitest (#205383) fix: keep the Agents menu usable after copying an ID (#203739) fix(whatsapp): preserve code table spaces across message chunks (#205327) refactor(cron): admit legacy scheduled requesters through operator admission (#205346) fix: keep silent Codex turns healthy with running commands (#196062) test(update): verify the recorded preparation failure (#205363) fix(test): prove sibling imports on the active update path fix(chat): complete mentions without leaving part of the name behind (#205326) fix(test): restore Side chat hydration and retry checks (#205376) refactor: plugin-run turns get owner status from commands.ownerAllowFrom, like text messages (#205373) chore(ui): refresh control ui locales (#205378) fix: keep Telegram rich <details> and list blocks in one message when replies stream in chunks (#205318) refactor(gateway): one refusal owner with a required next step (#205337) fix(discord): keep long table labels bold across messages (#205328) feat: invitation, sharing and participant controls in the Control UI (#204920) fix(test): distinguish stamped Skill Library upgrade policies fix(markdown): preserve trailing inline-code spaces in plain-text tables (#205317)
Related: #204700
What Problem This Solves
The update preparation test can pass when preparation fails before reaching the bookkeeping fault it injects. That leaves maintainers without proof that the intended failure path was exercised.
User Impact
No runtime behavior changes. The existing test now verifies that the persisted failed run records the injected bookkeeping error, while retaining its terminal-state and no-trial checks.
Why This Change Was Made
Extend the existing persisted-record assertion with the failed outcome step and its injected error message. This keeps all three tests and avoids another fixture, helper, or production seam.
Evidence
test/tsconfig/tsconfig.core.test.other.jsontypecheck passed.50843248783698f099aabbcb2f0e735d4f27035e, head26272c921285bed22545b6256a23c5ccbe3c9c56; no priority filter, 0 findings, security cleared. This offline review did not run tests; execution evidence is listed above.