Repository navigation
improve(ci): cover Gateway cron completion on PostgreSQL 16 - #194482
Conversation
Exercise a due retained one-shot through real Gateway RPC and agent execution, verify durable disabled state/history, and select the owning cron writes for PostgreSQL CI. Allocate 189 regression-test lines for the distinct Gateway/agent/persistence boundary and CI routing contracts; keep the shared test-line baseline unchanged. No runtime behavior, schema version, migration, or persisted format changes.
|
🦞👀 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 a PostgreSQL 16 Gateway cron regression, runs it in PR CI, and selects conformance checks for eight cron owner paths. Example: A change to src/cron/store/row-codec.ts breaks retained one-shot completion on PostgreSQL 16.
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 demonstrated PostgreSQL 16 coverage gap without changing runtime behavior. No actionable patch defects were found; required CI remains red. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe CI planner selects database qualification jobs from changed paths; the shared conformance action starts PostgreSQL and runs the Gateway suite through authenticated RPC, agent execution, and persisted-state checks. flowchart LR
A[Changed cron paths] --> B[CI planner]
B --> C[PostgreSQL conformance job]
C --> D[PG16 Gateway suite]
D --> E[Authenticated cron RPC]
E --> F[Agent and local HTTP model]
F --> G[History and PostgreSQL assertions]
Technical reviewBest possible solution: Retain the focused coverage and shared CI owners, then complete the existing CI failure qualification before landing. Do we have a high-confidence way to reproduce the issue? Source confirms PG17-only PR qualification and omitted cron paths on main; the existing storage regression supplies its execution outcome, while this PR adds the missing RPC-to-agent-to-persistence boundary. Is this the best way to solve the issue? The change uses the smallest existing owners: one Gateway scenario, one targeted PG16 invocation inside an existing shard, and exact path additions without another workflow or runtime abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6ed90743ed7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +189, Config +14, Other +9. Total +212 across 7 files. Added test files: 0. 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. LabelsLabel changes: No label 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 November 7, 2026, 12:39 AM ET / 05:39 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#194482) Exercise a due retained one-shot through real Gateway RPC and agent execution, verify durable disabled state/history, and select the owning cron writes for PostgreSQL CI. Allocate 189 regression-test lines for the distinct Gateway/agent/persistence boundary and CI routing contracts; keep the shared test-line baseline unchanged. No runtime behavior, schema version, migration, or persisted format changes.
Closes #194479
Related: #194384
What Problem This Solves
PostgreSQL 16 retained cron one-shot regressions can escape the PostgreSQL 17-only PR checks, and changes to the owning cron write paths do not consistently select database conformance CI.
User Impact
No runtime behavior changes. PR CI gains PostgreSQL 16 Gateway cron coverage. No schema version, DDL, migration, persisted format, public API, SDK, configuration, or default changes; no operator action required.
Why This Change Was Made
Reuse the existing Gateway database conformance suite to execute a due retained one-shot through authenticated Gateway RPC, real agent execution, and a local HTTP model fixture. Verify terminal success, public run history, retained disabled state, and the actual PostgreSQL rows after orderly shutdown.
Run that suite against the pinned PostgreSQL 16 image in the first existing PR conformance shard, preserving the PostgreSQL 17 matrix. Admit the eight owning cron write paths into the existing CI selector. Reuse the existing composite action, Gateway fixtures, HTTP helpers, and cleanup owner.
Runtime production delta: 0 lines. CI planner: +8; CI YAML: +14. Test delta: +189 lines. The named 189-line allocation covers the distinct Gateway/agent/persistence boundary and CI argument/admission contracts; the shared test-line baseline is unchanged.
Evidence
cron.runnever returns terminal success; the current runtime expression was restored afterward.control-ui-static.ts/server-control-ui-root.ts) and UI shell/sidebar tests. The completeui/tree and the guard failure inputs are unchanged between the recorded main baseline and the tested merge. These failures remain red and are qualified through the native inherited-failure route. The recorded CI checkout is97ebd1951e746acf246c418c99240bfac454ebb2, with main baselinea1386859ba45916d5f64bd8f30ecf6315ad8d597and the exact PR head as parents; the native verifier checks unchanged failure inputs. Security-fast passed.Inherited CI follow-up: Control UI import cycle, UI shell lifecycle, and UI shell/sidebar contracts.
Limits: the HTTP provider is an isolated fixture. Live model vendors, outbound channel delivery, automatic timer dispatch, and restart recovery are outside this smoke test.