Skip to content

ci: gate storage changes on PostgreSQL conformance - #169952

Merged
steipete merged 1 commit into
mainfrom
pgprep/postgres-conformance-ci
Oct 12, 2026
Merged

steipete merged 1 commit into
mainfrom
pgprep/postgres-conformance-ci

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

PostgreSQL conformance currently depends on manual local runs, so storage changes can regress PostgreSQL without failing PR CI.

Related: #169214, #169933. This change builds against main and does not depend on #169933.

User Impact

Storage-engine PRs gain a required PostgreSQL conformance check. SQLite remains the default; this changes no production behavior, dependencies, or configuration.

Why This Change Was Made

The repository runner executes the workboard and postgres-sync suites through the normal test entrypoint. A repository preload carries the DSN in its URL and sets the existing worker environment-data hook in test processes and threads. The runner redacts the connection from child output and adds no environment-variable name.

The CI planner selects PostgreSQL conformance for scheduled main runs and PR changes under database-engine, postgres-sync, workboard, the SQL connection/compiler and Kysely adapters, sqlite-transaction, the database schema, and the runner/preload. The job starts a disposable postgres:17 Docker service using initdb -A trust, publishes only a loopback port, and always removes the container. It uses one hosted runner, is included in the hosted-job budget, and feeds openclaw/ci-gate only when selected.

Evidence

  • Local Homebrew PostgreSQL 17 smoke: locks.test.ts, 2 passed, 0 skipped/failed. Vitest: 39.62s; cold end-to-end runner: 224.39s, including worker artifact preparation and cleanup. The throwaway external-disk cluster was stopped and removed.
  • A separate fresh-process/worker-thread probe verified preload propagation.
  • Scoped lint, formatting, workflow validation, and git diff --check passed. The focused planner/gate tests passed 19 cases (260.84s wall time on a heavily loaded local host). Independent Codex review completed in two rounds with no actionable findings after correcting Docker host authentication. The final diff adds 176 non-doc lines and 44 documentation lines.
  • PostgreSQL conformance CI proof passed on 910c6a4d164545747c27dc218efccbdaecc1123b: 4m57s for the job; 4m06s for the conformance step (runner-reported 245.22s). Workboard: 364 passed / 47 skipped / 0 failed. Postgres-sync: 67 passed / 0 skipped / 0 failed across its fast and infra lanes. Total: 431 passed / 47 skipped / 0 failed. No additional CI sharding is needed.
  • The PostgreSQL container cleanup step passed. The PR was restored to draft after this job completed; the completed job is the conformance evidence.

Landing exception

Coordinator-authorized native admin exception: unrelated flaky UI test (disjoint file set; job does not execute changed code). checks-ui (2/3) failed in ui/src/pages/agents/view.identity-avatar.test.tsx (expected 2 calls, got 4). The same case passed on main run 38265016301. None of this PR's seven changed files is imported by or executed in that UI shard. The coordinator reviewed the causal boundary and authorized landing without a rerun or fix push; the failed CI result remains recorded.

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@steipete
steipete marked this pull request as ready for review October 12, 2026 14:27
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S labels Oct 12, 2026
@steipete
steipete marked this pull request as draft October 12, 2026 14:35
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds a PostgreSQL conformance runner and a selectively required CI job for storage changes and scheduled main runs.

Example: A PR changes extensions/workboard/src/store.ts.

  • Before: PR CI does not require the workboard suite to run against PostgreSQL.
  • After: The planner selects PostgreSQL conformance, and the CI gate requires that job to succeed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, useful maintenance with an executed CI entry point and no actionable findings; the completed conformance job does not establish that the entire current CI run is green.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The actual GitHub Actions entry point ran the new runner against PostgreSQL 17 on the reviewed head, with startup, conformance, and cleanup verified successful; detailed suite counts come from the PR body because raw logs were blocked by the review environment.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Storage changes can regress PostgreSQL without a required PostgreSQL PR check.
Reason: Maintainer-authored direction adds useful coverage for the merged experimental engine with one selectively scheduled hosted job.

Merge readiness

✅ Ready for maintainer review

This PR adds useful PostgreSQL CI coverage that current main lacks; no actionable introduced defect was found.

Priority: P2
Reviewed head: 910c6a4d164545747c27dc218efccbdaecc1123b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI manifest selects validation from changed paths; a hosted job runs the existing storage tests against disposable PostgreSQL and supplies its result to the CI gate.

flowchart TD
  A[Changed paths or schedule] --> B[CI manifest]
  B --> C[Hosted conformance job]
  C --> D[Disposable PostgreSQL 17]
  C --> E[Conformance runner and preload]
  E --> F[Workboard and postgres sync tests]
  D --> F
  F --> G[CI gate]
Loading

Technical review

Best possible solution:

Land the selective PostgreSQL lane through the existing CI and maintainer workflow.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms the missing current-main CI lane; this maintenance change does not require reproducing a production defect.

Is this the best way to solve the issue?

The change reuses the existing test entry point and connection hook, keeps selection in the manifest owner, and makes only selected runs mandatory.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 06e6524335e7.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9d75a8f adds scripts/ci-build-manifest.mjs:1438 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9d75a8fe87af; files: scripts/ci-build-manifest.mjs)

PR surface

Tests +48, Docs +44, Config +28, Other +100. Total +220 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 48 0 +48
Docs 2 44 0 +44
Config 1 28 0 +28
Generated 0 0 0 0
Other 3 100 0 +100
Total 7 220 0 +220

Review metrics

Metric Value Why it matters
New conformance CLI arguments 2 required arguments: --engine and --connection These configure the test runner; the patch adds no production config fields or environment-variable names.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Adds targeted regression detection for the experimental PostgreSQL storage engine without changing production behavior.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-12T14:35:06.198Z sha 910c6a4 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T14:42:17.337Z sha 910c6a4 :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 10:53 AM ET / 14:53 UTC (Revision 3).

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. labels Oct 12, 2026
@steipete
steipete marked this pull request as ready for review October 12, 2026 14:47
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 12, 2026
@steipete
steipete merged commit 7cfdcc6 into main Oct 12, 2026
339 of 360 checks passed
@steipete
steipete deleted the pgprep/postgres-conformance-ci branch October 12, 2026 15:26
@steipete

Copy link
Copy Markdown
Contributor Author

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

steipete added a commit that referenced this pull request Oct 12, 2026
…170059)

Preserve shared-state PostgreSQL CHECKs, indexes, and foreign keys; declare feature fragments through the existing schema owner; and validate catalog equivalence in CI. SQLite first-use statements and schema version remain unchanged.

PostgreSQL conformance passed. Inherited and unrelated Node test failures are retained under the documented maintainer exception.

Refs #169254, #169933, #169952.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…penclaw#170059)

Preserve shared-state PostgreSQL CHECKs, indexes, and foreign keys; declare feature fragments through the existing schema owner; and validate catalog equivalence in CI. SQLite first-use statements and schema version remain unchanged.

PostgreSQL conformance passed. Inherited and unrelated Node test failures are retained under the documented maintainer exception.

Refs openclaw#169254, openclaw#169933, openclaw#169952.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: S 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.

1 participant