Repository navigation
Share the Harness withdrawal start across five PostgreSQL test sites - #2828
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. What this changesThis PR extracts the deployment wait, Harness withdrawal request, and first work-item lookup into one helper used at five test sites. Example: A withdrawal encounters one transient authentication refusal with maxAttempts set to 2.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored PR makes a focused test refactor, preserves scenario behavior, and has no actionable defects identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe PostgreSQL integration suite exercises OCC admission and the durable revision worker using synthetic credential sources and simulated Compute responses; it observes persisted work, withdrawal status, and audit events. flowchart LR
A[Test scenario] --> B[Shared withdrawal setup]
B --> C[OCC withdrawal admission]
C --> D[PostgreSQL work queue]
D --> E[Revision worker]
E --> F[Simulated Compute response]
E --> G[Persisted outcomes and assertions]
Technical reviewBest possible solution: Retain the file-local helper with scenario-specific fault injection, timing, and outcome assertions in each test. Do we have a high-confidence way to reproduce the issue? This PR addresses repeated test setup rather than a product bug; the repetition and equivalent extraction are directly verifiable in the pinned diff. Is this the best way to solve the issue? The extraction is appropriately scoped: it reuses existing admission and work-query helpers, preserves their order and inputs, and leaves consequential assertions visible in each scenario. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd3e5ef7c6d4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 18, 2026, 3:32 AM ET / 07:32 UTC. |
Five call sites now share the same start: wait for the revision’s deployment work to succeed, request withdrawal of its Harness credential source, and read the first durable withdrawal work item. The helper does not wait for withdrawal to finish. Each test still controls its timing and checks its own outcome.
All 36 tests passed before and after on disposable PostgreSQL, with simulated gateway responses. Making a temporary refusal permanent broke the retry-to-success test while the permanent-refusal test still passed. No production code changed.