Repository navigation
fix: test upgrades from released PostgreSQL installs - #202109
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 changesThis PR adds a published PostgreSQL upgrade scenario to CI and corrects the documented qualification scope. Example: Upgrade populated PostgreSQL 17 stores from OpenClaw 2026.11.5 to the candidate package.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful released-package PostgreSQL upgrade coverage, with matching behavior evidence and green current-head CI; no actionable defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe published-driver workflow consumes a checksum-verified candidate package, runs an installed released updater against disposable stores, and emits migration and Gateway continuity results. flowchart LR
A[Candidate package] --> B[Published driver workflow]
B --> C[Released npm installation]
C --> D[Populated PostgreSQL stores]
D --> E[Installed updater]
E --> F[Candidate Gateway]
F --> G[Session and transcript checks]
Technical reviewBest possible solution: Land the focused PostgreSQL scenario through the existing published-driver owner while retaining its explicit platform and restart limits. Do we have a high-confidence way to reproduce the issue? The base workflow lacks a PostgreSQL published-package upgrade scenario, and its guide says no released package supports these stores; the released manifest directly contradicts that statement. Is this the best way to solve the issue? The patch uses existing workflow, process-management, readiness, and release-version owners, with distinct assertions that prevent Gateway startup from hiding missed updater migrations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8a6d3a04ee74. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +10, Docs +16, Config +24, Other +283. Total +333 across 6 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. Review metrics
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 19, 2026, 6:18 PM ET / 23:18 UTC. |
* fix: test upgrades from released PostgreSQL installs * fix: pass script lint in PostgreSQL upgrade fixture --------- Co-authored-by: VACInc <[email protected]>
(cherry picked from commit 3d91af2) Release adaptation: regenerate config docs hashes for this stable tree using config:docs:gen; config:docs:check passed. No config migration or anchor rename. Companions: no later PR or SHA mentions. Later same-path overlaps are unrelated config baseline regeneration, PostgreSQL operations/docs, or qualification tooling; #202109 is independent upgrade coverage, #202704 is a restore guide, and #202654 is a Session Share feature. Existing anchor selection and numeric aggregate fix #202629 are unchanged. Co-authored-by: VACInc <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit abc82993e59c1632ddfcaece8a02ce15c432e990)
Summary
High Level TLDR
OpenClaw 2026.11.5 ships PostgreSQL shared state and agent stores. Published-driver CI now installs that npm release with both stores on PostgreSQL and checks that users can open the same session and transcript after the installed updater activates the candidate.
Root Cause
Published-driver CI seeded SQLite only. PostgreSQL migration fixtures checked individual schema changes without exercising the released npm updater and candidate activation on populated PostgreSQL stores. The operator guide still described stable PostgreSQL upgrades as inapplicable.
Real behavior proof
Ran the new fixture against disposable PostgreSQL 17 with the published 2026.11.5 npm package and a candidate built and packed with the CI artifact commands. The fixture wrote a session and transcript through the released Gateway, verified its backup, ran the installed
openclaw update --yes --json --no-restart --tag <candidate.tgz>, and started the candidate Gateway. The updater recordedsucceededatfinishedand replaced the installed build.The fixture requires a disposable PostgreSQL DSN in
OPENCLAW_UPGRADE_TEST_POSTGRES_DSN. It checks the original store identities before opening the candidate Gateway.Verification
The base workflow resolver emitted no PostgreSQL selection. The patched resolver emitted
postgres=truefor the 2026.11.5 candidate. Older and frozen candidates stay out of this case.pnpm test test/scripts/ci-published-driver-update-plan.test.ts --maxWorkers=1passed all 31 tests.Candidate build and tarball integrity, workflow sanity, targeted formatting and lint, and
git diff --checkpassed. The final local upgrade fixture took 4m18s.The first CI run flagged the fixture's promise rejection typing. The follow-up passed the type-aware script lint and repeated the full upgrade and planner suite. Updated-head CI
The required PR CI gate passed. Ordinary PR CI skipped the published-driver update job by design. The PostgreSQL step has local proof above. Exact-head proof on a GitHub-hosted runner is pending. Skipped job
Evidence
Local autoreview covered the initial patch at P0 through P2 and found no actionable defects. The follow-up changes error handling types and preserves the same upgrade path. The production and full-tree unused-file scans both passed.
What was not tested
This case uses foreground Linux Gateways and synthetic RPCs. Managed service restart, PostgreSQL rollback restore, Windows package update, and paid model calls are outside this case.