Repository navigation
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR declares the partial-index conformance fixture’s worker as an intentional PostgreSQL pool root. Example: Run the partial-index ordering conformance file against PostgreSQL 17 with CI=1.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides a focused repair for a current conformance failure, with no actionable defect found in the introduced change. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe conformance suite opens populated stores and exercises production query owners inside a fixture worker; a shared test registry distinguishes intentional PostgreSQL roots from accidental worker pools. flowchart TD
A[Conformance suite] --> B[Fixture worker]
A --> C[Test root registry]
B --> D[Production database owners]
D --> E[PostgreSQL pool]
E --> F[Root diagnostic guard]
C --> F
Technical reviewBest possible solution: Use the existing root-declaration helper for this explicitly independent fixture and retain all ordering assertions and guard enforcement. Do we have a high-confidence way to reproduce the issue? The undeclared worker-root path is visible in fetched main and matches the reported PostgreSQL failure; no target code was executed during this read-only review. Is this the best way to solve the issue? The two-line repair is the smallest complete implementation of the maintainer’s stated independent-fixture design and reuses the existing registry owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 475a6d98baa5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
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 25, 2026, 12:09 PM ET / 16:09 UTC. |
|
Current-main follow-up for this fixture: squash c31e465 (#183695) landed over a parent that already contained the pool-endpoint wiring. The resulting The inner declaration shadows the endpoints whose catch path performs cleanup, and the duplicate object property is a TypeScript error. The minimal correction is to retain the outer declaration, its existing comment, one I found this while attributing historical CI for an unrelated fixture-consolidation PR. Reporting here because this open PR owns the same conformance fixture; no schema, detector, or production changes are needed. |
What Problem This Solves
Two PostgreSQL tests assume the pre-pool worker lifecycle. The partial-index conformance fixture creates an undeclared pool root, and the idle-backend test checks PostgreSQL immediately after closing a pool port, before asynchronous client shutdown can finish.
User Impact
Test-only repairs for PostgreSQL readiness preparation. Runtime behavior, schemas, dependencies, pool guards, and SQLite behavior are unchanged.
Why This Change Was Made
Declare the partial-index test's own eval worker through the existing
declarePostgresTestRootfixture contract. For idle expiry, pollpg_stat_activityfor at most ten seconds at 50 ms intervals. The strict assertion still requires the expired PID to disappear, so a leaked backend fails. Burst reuse and checked-out connection assertions remain unchanged.These are the smallest fixes at the test owners: two added declaration lines and one bounded replacement for an immediate asynchronous-cleanup assertion. No production change or new test scaffolding.
Evidence
The undeclared-root failure reproduced on main
3f199f0208d0233a14fc3c3d51b89f6ead25c419: 10 passing assertions, then the same undeclared-worker error and exit 1. The declaration yields 10/10 passing with no unhandled error.The idle-expiry race failed in CI 40209105323, PG shard 3, at the immediate empty-result assertion. Six interleaved standalone main/candidate runs passed; they did not reproduce the load-dependent failure. Source inspection shows port close triggers asynchronous
client.end(), which explains why an immediate catalog observation is not a valid completion boundary.Coordinator review approves both test-only lifecycle repairs. Current local and exact-head CI results are recorded below.
Updated local PG17/Node24/
CI=1proof: reuse test file 5/5 passes, 55 assertions. Wrapper wall times: 216.58, 249.12, 206.22, 57.26, 63.22 seconds (includes worker compilation and cleanup).Partial-index conformance: 10/10 pass, no unhandled errors; 96.21 seconds wrapper / 84.60 seconds Vitest.
Commands:
node --import ./scripts/tsx.mjs scripts/test-database-conformance.mjs --engine postgres --connection <local-pg17-dsn> -- <test-file> --maxWorkers=1with each of the two changed test files. The correspondingpnpm test <file> --maxWorkers=1route uses the same test runner; PG proof adds the conformance setup.Full local core typecheck:
node scripts/run-tsgo.mjs -p tsconfig.core.json --noEmit, passed in 3.33 seconds. Focused lint, formatting, andgit diff --checkpassed.pr-simplifycomplete. Independent Codex P0–P2 reviews cover both the fixture declaration and the complete polling delta; no actionable findings.Final-head three-shard PostgreSQL CI pending the new push. No manual CI dispatch.