Repository navigation
fix: cron owner E2E loses its reserved Gateway port - #163620
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. Reviewed October 2, 2026, 12:22 PM ET / 16:22 UTC (Revision 2). ClawSweeper reviewWhat this changesThe cron ownership end-to-end test retains its Gateway port claim through startup and releases it after instance cleanup. Merge readiness✅ Ready for maintainer review Keep open: this is a useful release-branch backport of an already-merged main fix. No introduced correctness or security defect was found, and MEMBER-authored work is protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe cron ownership test starts an isolated Gateway and verifies that scheduled plugin jobs survive workspace changes. Cooperative port claims prevent other test fixtures from taking its listener port. flowchart TD
A[Cron ownership test] --> B[Claim port block]
B --> C[Start isolated Gateway]
C --> D[Verify recurring plugin jobs]
D --> E[Close and clean instance]
E --> F[Release port claim]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5, Tests +1. Total +6 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing cooperative port-claim owner throughout the release fixture's Gateway lifetime while preserving its cron assertions. Do we have a high-confidence way to reproduce the issue? No current-main failing run was established: main already contains the fix. The release baseline exposes the probe-to-startup ownership gap in source; this read-only review did not execute the race. Is this the best way to solve the issue? Yes: retaining the existing claim closes the cooperative fixture ownership gap without changing product readiness, cron behavior, or test assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 721501021b09. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Fixes:
plugin-cron-registry-owner.e2ecan lose its requested Gateway port before startup, connect to the wrong listener, and missCRON_OWNER_SURVIVAL_FIRE.User Impact
User impact: the 2026.9.8 Gateway E2E gate reliably verifies plugin cron ownership instead of failing on a fixture port race.
Why This Change Was Made
The fixture now retains the deterministic port-block claim until the bound Gateway has closed, then releases it during cleanup. Cron behavior and assertions are unchanged.
Evidence
pnpm format:check --no-error-on-unmatched-pattern -- src/gateway/test-helpers.listener.ts test/plugin-cron-registry-owner.e2e.test.tspnpm tsgo:core:testpassed.