Repository navigation
test(state): reuse legacy database fixtures - #119423
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Aug 5, 2026
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
steipete
added a commit
that referenced
this pull request
Aug 5, 2026
* test(state): reuse legacy database fixtures * test(state): use tracked temp fixture --------- Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 5, 2026
* test(state): reuse legacy database fixtures * test(state): use tracked temp fixture --------- Co-authored-by: Peter Steinberger <[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.
Summary
Why
The agent migration tests rebuilt the full current schema and then executed the same test-only reverse migration for every legacy case. Verifier race tests repeatedly classified corruption even though
applyOpenClawDatabaseVerificationResultsdeliberately ignores advisory error details and reconfirms the authoritative file. Two state-wrapper WAL cases duplicated lower-level snapshot invariants already covered at their owning boundary.The new template is checkpointed, sidecar-free, and verified for integrity, foreign keys, schema version, owner identity, and expected v13 tables before any clone is used. Every production migration, reopen, registration, ownership, WAL, and quarantine path remains real.
Proof
core-unit-src-security: unit-src 341 passed files, 2 skipped files, 4,227 passed tests, 12 skipped tests; unit-security 35 passed files and 254 passed testscheck:changed: cleanThe two removed wrapper tests are duplicate integration assertions; their WAL snapshot mechanics remain covered in
src/infra/sqlite-readonly-location.test.ts, andsrc/state/openclaw-state-db.test.tsretains the live-WAL integration. Production LOC delta is zero; the test diff is net -66 lines.No changelog entry: test-only performance work.