Skip to content

improve(ci): cover Gateway cron completion on PostgreSQL 16 - #194482

Merged
vincentkoc merged 1 commit into
mainfrom
test/pg16-gateway-cron-smoke-20261107
Nov 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/pg16-gateway-cron-smoke-20261107

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

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

  • Current-source PostgreSQL 16 Gateway case passed: real Gateway and agent, local HTTP model response, persisted disabled state and successful run history verified directly after shutdown. The six existing bootstrap cases passed in the preceding full-file run; the final focused run selected the new case only.
  • Negative control: restoring the pre-fix JSON expression makes the new case fail because cron.run never returns terminal success; the current runtime expression was restored afterward.
  • Focused CI routing and workflow contracts: 72 passed; other cases filtered.
  • Workflow validation, targeted lint, formatting, diff checks, and the full test-line ratchet passed.
  • Fresh independent review of the complete candidate: no actionable P0–P2 findings. Hosted exact-head review also found no actionable defects or before-merge moves. Reviewer assessed source and supplied evidence; it did not independently execute tests.
  • Exact-head hosted CI: all three PostgreSQL shards passed, including the new PG16 Gateway step in shard 1/3. Three unrelated CI jobs failed on the tested main merge: the Control UI import cycle (control-ui-static.ts / server-control-ui-root.ts) and UI shell/sidebar tests. The complete ui/ 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 is 97ebd1951e746acf246c418c99240bfac454ebb2, with main baseline a1386859ba45916d5f64bd8f30ecf6315ad8d597 and 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.

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.
@vincentkoc vincentkoc self-assigned this Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts size: M labels Nov 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 7, 2026 05:06
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: PR CI can miss the change or test it only against PostgreSQL 17.
  • After: PR CI selects PostgreSQL conformance and checks authenticated cron execution, successful history, and persisted disabled state on PostgreSQL 16.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused coverage with successful execution of the changed hosted workflow, meaningful Gateway persistence assertions, and no identified patch defects.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored coverage PR is outside the ordinary contributor proof gate; its changed PG16 workflow step passed on the reviewed head, and the body records the Gateway scenario and negative control without claiming live-vendor or restart coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A PostgreSQL 16 cron completion defect escaped PostgreSQL 17-only PR checks.
Reason: The maintainer-authored direction addresses an observed escape with distinct integration coverage while preserving the existing PostgreSQL matrix and execution owner.

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
Reviewed head: 7d1a01234261c9ced19779d70353f7d88ef7288a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Shared PostgreSQL composite action keeps the original intent (e1dad1b: Centralize service startup, conformance execution, and cleanup for PR and scheduled version qualification.)
  • PostgreSQL CI path selection keeps the original intent (7cfdcc6: Gate storage changes on PostgreSQL conformance; subsequent history narrows unrelated test selection while preserving owned coverage.)
  • Gateway PostgreSQL fixture lifecycle keeps the original intent (6b36172: Prove boot-owned PostgreSQL engine selection and shared-state behavior with isolated fixture state.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e1dad1b adds .github/actions/postgres-conformance/action.yml:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e1dad1bd0288; files: .github/actions/postgres-conformance/action.yml)
  • Vincent Koc: Raw commit 7ab0143 adds src/cron/store/row-codec.ts:664 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7ab0143fc228; files: src/cron/store/row-codec.ts)

PR surface

Tests +189, Config +14, Other +9. Total +212 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 195 6 +189
Docs 0 0 0 0
Config 2 14 0 +14
Generated 0 0 0 0
Other 2 9 0 +9
Total 7 218 6 +212

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This prevents recurrence of an observed supported-version defect; the runtime repair is already merged, so the remaining work is preventive coverage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 7, 2026, 12:39 AM ET / 05:39 UTC.

@vincentkoc
vincentkoc merged commit 7fde96d into main Nov 7, 2026
251 of 256 checks passed
@vincentkoc
vincentkoc deleted the test/pg16-gateway-cron-smoke-20261107 branch November 7, 2026 16:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
…#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cover PostgreSQL 16 retained cron one-shots in PR CI

1 participant