fix(test): give the contended restore its real production wait budget - #1129
Conversation
The case waits out a 5s SQLite busy timeout twice plus the retry delay -- about 11s of deliberate waiting -- so a 15s CLI watchdog had almost no margin and fired on a loaded macOS runner (dev run 31105071651). The 45s test timeout still bounds the case.
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe restore contention acceptance test increases the blocked ChangesRestore contention acceptance test
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Audit returned FAIL with 3 blockers. Corrections: - PR count was 34, actual live count is 32 (lidge-jun#1129 merged mid-triage and is recorded separately rather than counted). - Phases 080 and 100 cited line numbers from the contributors' patched trees, not dev. Both defects re-verified against dev=e9d957bf6 and rewritten with real anchors: the vision rawbody sync function does not exist on dev, and openai-chat has no response_format handling at all. - Phase 050 narrowed so the client-facing selector is set only on the Anthropic rewrite branch, with a regression test pinning that other providers are unchanged. - Phase 060 now adopts lidge-jun#1111's real module and test paths instead of inventing names; phase 160 gained the disposition-matrix schema it was missing. - Citation drift corrected in 001 and 070 (relay buffer, selectEagerPath).
Summary
Restores
devto green. The composed-acceptance "Restore truth" case failed on the macOS shard of the post-mergedevrun (31105071651) after #1106 landed.It is a watchdog-margin bug in the test, not a product regression. The case holds
state_5.sqlitewithBEGIN IMMEDIATEand then runs a realocx restore --jsonchild, which deliberately waits out production's retry budget before it may reportbusy: a 5 s SQLite busy timeout per attempt, two attempts (HISTORY_RETRY_ATTEMPTS), plusHISTORY_RETRY_DELAY_MSbetween them — roughly 11 s of intentional waiting. The CLI watchdog was set to 15 s, leaving under 4 s of headroom, which a loaded CI runner consumed. The watchdog now gets 30 s; the case's own 45 s test timeout still bounds it, and no production timing changed.Verification
bun test ./tests/codex-composed-acceptance.test.ts— 6 pass / 0 fail (14.94 s locally; the contended case alone accounts for ~11 s of that by design).bun x tsc --noEmit— clean.src/diff.Checklist
Summary by CodeRabbit