Repository navigation
fix: keep stable-upgrade validation compatible with older installs - #134002
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 6:23 AM ET / 10:23 UTC. ClawSweeper reviewWhat this changesThe PR makes stable-upgrade test fixtures match historical configuration and readiness contracts, and starts authenticated restart probes through the managed service that later owns their restart and cleanup. Merge readinessKeep open. This maintainer-authored PR remains necessary: it repairs upgrade-survivor fixture adaptation and service-manager ownership that current main does not contain, with no concrete introduced correctness or security defect found. Priority: P2 Review scores
Verification
How this fits togetherThe upgrade-survivor harness installs published OpenClaw baselines, writes representative configuration, then updates and restarts a gateway to validate upgrade safety. Its recipe adapter feeds baseline-specific config into the updater and its service fixture verifies the managed gateway lifecycle. flowchart LR
A[Published baseline] --> B[Upgrade fixture recipe]
B --> C[Version-specific configuration]
C --> D[Baseline validation]
D --> E[Updater and managed gateway]
E --> F[Release verification results]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +295, Other +59. Total +354 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one version-aware fixture adapter and the single manager-owned probe installer, then land after exact-head validation confirms the combined release harness. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the prior implementation's baseline fixture shapes and foreground PID adoption are visible in current main, and focused tests model the historical version and readiness boundaries. The supplied PR evidence also reports after-fix isolated release-harness runs. Is this the best way to solve the issue? Yes. Adapting canonical fixtures at the recipe boundary and using the service manager's own PID fixes the harness where incompatible state is produced, rather than adding runtime compatibility behavior or retaining a second launch path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e93f4b35b50f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…penclaw#134002) * test(update): preserve stable fixtures and managed gateway lifecycle * test: keep survivor schema checks with the Discord plugin
What Problem This Solves
Stable-install upgrade tests could reject historical configurations before reaching the updater, miss a running March gateway, or leave the old gateway alive during authenticated restart.
Why This Change Was Made
The survivor recipe authors canonical current inputs and adapts them to each published baseline. Agent ownership uses the exact
2026.8.1-beta.2boundary; Discord retains the nested DM migration specimen before2026.7.2-beta.4. This keeps old upgrade coverage while allowing current and intervening beta installations to accept the recipe.Legacy readiness recognizes the published listening marker and verifies a real TCP listener. Current readiness still requires its ready marker and endpoint. Both restart probes now use one shared installer and the service manager that owns their later restart and stop. The old setup adopted an unmanaged foreground CLI PID, bypassing descendant cleanup. Manual startup also propagates readiness failures when called conditionally. Startup budgets and supervisor drain policy are unchanged.
CI exposed a root test importing Discord's schema. The complete eight-case table now lives in Discord's existing schema suite and uses the public SDK validator. Colocated declaration companions describe the recipe's existing JavaScript dependencies for the stricter plugin test project; no typecheck settings or runtime exports change.
User Impact
No product runtime change. Release validation reaches the real updater on older installations and reports service restart behavior reliably. Related #120703 addresses convergence retries; this change fixes fixture production and service ownership without copying its sidecar implementation.
Evidence
On isolated Crabbox/Testbox, clean committed candidate
99170bd330a2f80dbc051f58e001b35ba75d3340passed July volume migration, May configured-plugin repair and authenticated restart, current-install authenticated restart, and March explicit repair followed by authenticated restart. March's published updater invokes advisory Doctor without--fix; the documented explicit candidate repair was exercised separately. Its repaired service restart replaced the old supervisor and passed health, readiness, and status checks.The July scenario preserved 9,600 sessions, 152,896 events, 4,400 cron jobs, and 512 plugin KV rows through automatic migration, history readback, and restart. Idempotent Doctor took 9 seconds. The earlier campaign also passed April obsolete dependency cleanup and July cron-authority migration. Final May and March reruns with historical Discord input passed in 260.957 and 227.815 seconds; their update-owned restart phases took 59 and 90 seconds.
All three managed-service regressions, both readiness regressions, and three historical Discord specimen regressions fail before their repairs and pass afterward. The full original harness proof totals 376 passing checks. After relocating the schema table, all 88 focused architecture/recipe/Discord cases pass. The final four-file correction passed its full changed-file gate in 407.241 seconds, including plugin/script/root types, typed lint, formatting, Knip, and boundary guards. All proof leases are stopped.
The six executable tooling/recipe files on final head
7da9fba920626a198b2f64897c4b04792e3af3abremain byte-identical to the completed live proof. Main's per-agent volume seeding and baseline SDK-store discovery improvements are retained. Executable tooling: +132/-103 (net +29); the shared service setup itself removes one net line. Declaration companions add 30 type-only lines. Tests: +317/-22 (net +295), discounting the pure eight-case move. No product option, dependency, schema, or timeout is added. Fresh full-candidate autoreview is clear at its configured P0 threshold. ClawSweeper's consolidation concern is addressed by the single setup helper and the two distinct shipped version boundaries; exact-head CI remains required before native landing.Exact-head CI completed successfully at
7da9fba920626a198b2f64897c4b04792e3af3ab, including build artifacts, all selected test shards, and the required gate. This satisfies the remaining CI condition in ClawSweeper's latest review. The earlier Anthropic context-window timeout passed in 3 ms. Main also contains canonical #133970 and independent fixture changes from #133913, so this is combined-source validation, not a claim that this harness PR repairs provider error handling.