[AIW-314] Fully drain poll-agent deadline fixtures - #356
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe poll-agent tests now track deferred operations, propagate abort signals, centralize cleanup, and cover hanging sandbox lookups, artifact reads, stdout streams, replay timeouts, late-abort drainage, and subsequent poll reuse. ChangesPoll-agent asynchronous test isolation
Estimated code review effort: 3 (Moderate) | ~30 minutes Merge Risk: ⚪ Minimal · up to This PR only updates poll-agent tests to make deadline cleanup deterministic and does not alter product behavior; the supplied focused, cross-runtime, shuffled, lifecycle, typecheck, and diff checks pass, so no actionable merge-blocking risk remains beyond normal checks. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Comment |
97161a8 to
b3d367a
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Scope
apps/worker/src/sandbox/poll-agent.test.ts.Sandboximport.Authoritative reproduction
Exact historical
mainSHA3f23d34c2fefeaed5048966eee07cb1b0085b44afailed run 33173321742, job98855565522: 383/384 files and 6,671/6,673 tests passed, while twopoll-agenttests exposed stale async work crossing mock resets.A focused sequential regression failed deterministically before this patch because a late stdout reader received an already-aborted signal and never settled.
Fix
Current exact candidate
Base:
6c461fdaffeba85118efa23f14a57e6d2b085f6a.Candidate:
b3d367a9ab5f222ef357ec9f00de4f83ab32d032.Blob:
be199744e79dd95afa3a598ae2009a3308cc0a01.The prior candidate
97161a809e6947c499ef16e64d61a0aa16b112bfand its green CI remain superseded historical evidence only.Current-candidate local evidence
pnpm --filter worker typecheck: PASS.git diff --check origin/main...HEAD: PASS.No full repository suite was run locally. Exact-candidate GitHub run 33199307016, job
98944431213, is in progress. The PR remains draft and unmerged.Summary by CodeRabbit