Repository navigation
test(postgres): qualify remote acceptance crash windows - #197780
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 adds PostgreSQL Gateway crash tests for remote acceptance before receipt commit and acceptance followed by a lost HTTP response. Example: The HTTP sink accepts “Committed final result.” but its response is lost before the Gateway records a receipt.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a distinct qualification gap using the existing recovery fixture, with no concrete introduced defect found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe fixture seeds queued final output, starts real Gateway processes and database workers, sends through a synthetic HTTP channel, and independently inspects PostgreSQL state across SIGKILL and restart. flowchart LR
A[Seed final output] --> B[Gateway process]
B --> C[Database workers]
C --> D[PostgreSQL state]
B --> E[HTTP acceptance sink]
F[Crash boundary preload] --> B
B --> G[Restart recovery]
G --> D
Technical reviewBest possible solution: Complete the three-window qualification in the existing process fixture while preserving production recovery policy and independent state assertions. Do we have a high-confidence way to reproduce the issue? This is a coverage-gap task rather than a runtime bug report; source confirms the missing acceptance windows, and no target code was executed during this read-only review. Is this the best way to solve the issue? Extending the existing process fixture is the smallest complete approach: each new case protects a distinct acceptance boundary without introducing a competing recovery owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 925d17a2e35e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +90. Total +90 across 2 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 12, 2026, 9:57 AM ET / 14:57 UTC. |
|
Merged via squash auto-merge.
|
Fixes #197778
What Problem This Solves
PostgreSQL crash qualification covered a committed final-delivery receipt before queue ACK, leaving two earlier remote-acceptance windows unproven.
User Impact
No runtime behavior changes. Tests qualify accepted delivery before local receipt commit and accepted delivery followed by a lost HTTP response. SQLite/PostgreSQL schemas, schema versions, migrations, persisted formats, config and recovery policy remain unchanged.
Why This Change Was Made
Extend the existing whole-Gateway process fixture to three crash boundaries. Each case observes actual sink acceptance, independently reads PostgreSQL queue/session state, kills the original Gateway, and restarts through the existing recovery owner. The two uncertain cases must retain an unknown outcome and an owed notice without inventing a receipt or blindly resending. The original committed-receipt case must ACK without resending.
The notice remains owed because this fixture has no external notification route; it does not prove notice delivery. This is qualification of existing reconciliation/retry policy, not an exactly-once delivery claim. A shared test preload holds requests or committed replies at the appropriate worker boundary; production code is unchanged (production LOC delta 0; test/support delta +90).
Evidence
Reviewed head:
810d2ca57fd9ec72dcec2528b78f0dd5eeae79ea. Tested PR merge:7fb8307465308893b3739f49235c98d921b3bccd, with ordered parentsbaca36ea403cf681b9ec531c5f27837d0586dcadand the reviewed head. Checkout logs and GitHub commit metadata confirm both.Ready-PR CI 43245291815 completed successfully with no failed, cancelled or timed-out jobs. All three PostgreSQL 17 shards passed. PostgreSQL 16 passed the entire Gateway target (10 tests), including all three crash windows:
Broader manual qualification: unresolved follow-ups
All jobs below belong to manual run 43239842063. No failed case names either changed PostgreSQL test/support file. That establishes surface separation, not a causal or inherited-failure verdict. No all-green broad qualification claim is made.