Repository navigation
chore: gate startup upgrades against prior-release state - #144659
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Landed with the guarded merge after current-head CI and independent review passed.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 12, 2026
…4659) Related: openclaw#144626. ## What Problem This Solves The config startup corpus uses empty state. It cannot detect an upgrade that loses existing sessions, auth profiles, cron jobs, or Control UI preferences, or leaves a prior-release SQLite schema behind. ## Why This Change Was Made Add generated state snapshots from stable 2026.9.2 and frozen 2026.9.3 source, then cross them with the config corpus through the existing Doctor and Gateway startup owners. Check preserved session text, credential payloads, cron behavior, preferences, current schema versions, and database integrity after two repair passes. Add the five distinct sanitized operator config shapes instead of relying on two consolidated examples. Keep the combined container fixture’s built-in references resolvable so its wildcard allowlist still exposes models. The Linux-generated snapshots retain POSIX cron partition keys. The state matrix skips Windows; fixture inventory still runs on every platform. Windows upgrade coverage requires Windows-generated state. The fixtures contain only generated data and fake credentials. Production code and schemas are unchanged. Both selected releases already use SQLite sessions and shared auth storage; this corpus tests their upgrade and preservation contracts, not older JSON transcript imports or external CLI authentication. ## User Impact No runtime behavior changes. Future changes gain a required upgrade-state check beside the existing config corpus check. ## Evidence - Both required release snapshots passed all 15 config combinations, preserving session identity/text, fake profile payloads, complete cron behavior, preferences, target schema versions and SQLite integrity after repeat Doctor repair. - The complete 56-test corpus/sibling selection passed on an isolated Testbox. After the CI correction, all 16 config tests and the exact unused-file scan passed again. The three affected container-fixture cases and its real Gateway flow also passed after correcting inherited placeholder references. A deliberate wrong expected session ID failed the preservation assertion; the original manifest was restored. - Real Gateway proof passed for all 15 config shapes with frozen state, plus previous-stable state with `operator-host`: readiness, `models list`, retained history, completed `/status` turn, and history after resume. Outbound channels, cron and browser services were disabled; no inference was requested. - Strict read-only Doctor completed with exit 1 for fixture warnings (loopback binding and fake plaintext credentials). CrossClaw and Peanutto also report the intentionally unreachable `.invalid` tool-server URLs. These diagnostics remain visible; no production suppression was added. - The full 31-test Linux state suite passed again after the platform-scope correction. Post-shutdown SQLite integrity also passed across the retained Gateway scenarios. Formatting, focused lint, workflow checks, assertion safety, and file-size guards passed. Runtime proof used intake main `83e1842a8a86b1a03cb1d247f6506679832cc1f0`; source review confirmed the final rebase leaves the exercised paths unchanged. Co-authored-by: Ayaan Zaidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #144626.
What Problem This Solves
Startup tests with empty state could miss upgrades that lose sessions, credentials, scheduled jobs, or Control UI preferences, or leave an old database schema in place.
Why This Change Was Made
Generated state from releases 2026.9.2 and 2026.9.3 is tested with sanitized operator configurations through the existing Doctor and Gateway startup owners. Repeated repair checks preserve data and verify current database schemas and integrity.
User Impact
No runtime behavior changes. Required validation now checks upgrade-state preservation. The state matrix covers Linux-generated state and skips Windows; fixture inventory runs on all platforms. Credentials and data are synthetic.
Evidence
Both release snapshots passed all 15 configuration combinations. The final Linux state suite passed 31 tests. Real Gateway startup, model listing, retained history, /status, and resume checks passed for all 15 shapes with frozen state and one previous-stable control. Channels, scheduled jobs, and browser services were disabled; inference was not requested. Doctor retained warnings for synthetic credentials and intentionally unreachable services. Database integrity also passed after shutdown.