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 |
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