Repository navigation
test(plugin-sdk): clear the completed cancellation deadline - #134599
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 9:10 PM ET / September 1, 2026, 01:10 UTC. ClawSweeper reviewWhat this changesThe PR replaces an ad hoc cancellation timeout in the Plugin SDK API-diff CLI test with the shared timeout helper so the timer is cleared after the child process exits. Merge readinessNo correctness or security finding: the shared helper preserves the five-second cancellation failure while clearing the scheduled deadline. This maintainer-authored, maintainer-labeled PR stays open for its normal merge decision and exact-head CI. Priority: P3 Review scores
Verification
How this fits togetherThe Plugin SDK API-diff test starts the CLI in a temporary worktree, sends it a termination signal, then verifies exit status and cleanup. The shared timeout helper bounds that asynchronous observation and releases its timer after settlement. flowchart LR
A[API diff test] --> B[Start CLI child]
B --> C[Send termination signal]
C --> D[Shared timeout helper]
D --> E[Child exit result]
E --> F[Exit and cleanup assertions]
Decision needed
Why: Repository policy preserves MEMBER and maintainer-labeled items for explicit maintainer handling even when the focused patch has no review finding. Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -4. Total -4 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the cancellation test on the shared timeout helper so deadline cleanup has one canonical implementation. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR repairs test-harness timer cleanup rather than reporting a user-facing product failure; source directly establishes the scheduled timer and its shared-helper cleanup path. Is this the best way to solve the issue? Yes: the existing helper preserves the race and error message while clearing the deadline in finally, avoiding a duplicate timeout implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3d2256555df5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Exact-head CI and native prepare now pass. The latest PR comments contain no published ClawSweeper review or Rank-up moves; the publisher is not a landing dependency. Root source review and independent Codex autoreview found no actionable issue. The real CLI cancellation case passes before and after with SIGTERM exit 143, worktree/root cleanup and neighboring-sentinel preservation. The existing timeout helper additionally has direct timer-clear and unresolved-deadline proof. Production +0/-0; tests +2/-6. Proceeding through the native merge gate. |
|
Merged via squash.
|
The SDK API diff cancellation test discards the handle for its five-second observation deadline. When the real child closes first, that timer remains scheduled. Use the existing withTestTimeout helper to clear it on either outcome.
The test still launches the real CLI, sends SIGTERM, requires exit 143, and verifies registered-worktree cleanup, owned-directory deletion and preservation of the neighboring sentinel. All existing 10-second startup, five-second cancellation and 15-second overall bounds remain.
The native case passes before and after. A direct helper probe confirms timer cleanup, rejection identity and unresolved-deadline failure. Full changed checks and independent Codex autoreview pass. Production code is unchanged and tests shrink by four lines; one residual timer is removed, with no claimed five-second runtime saving.