Repository navigation
ci: gate storage changes on PostgreSQL conformance - #169952
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 changesAdds 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.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +48, Docs +44, Config +28, Other +100. Total +220 across 7 files. Added test files: 0. View PR surface stats
Review metrics
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 HistoryReviewed October 12, 2026, 10:53 AM ET / 14:53 UTC (Revision 3). |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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.
…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.
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:17Docker service usinginitdb -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 feedsopenclaw/ci-gateonly when selected.Evidence
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.git diff --checkpassed. 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.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.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.