Repository navigation
fix: preserve fresh database setup in session creation tests - #201176
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
vincentkoc
marked this pull request as ready for review
November 18, 2026 12:35
vincentkoc
enabled auto-merge (squash)
November 18, 2026 12:36
vincentkoc
deleted the
test/session-firstbirth-startup-order-20261118
branch
November 18, 2026 12:46
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix: preserve fresh database setup in session creation tests This is item 1/1 in the current shard. Shard 0/1. This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Member
Author
|
Merged via squash auto-merge.
|
RomneyDa
added a commit
that referenced
this pull request
Nov 18, 2026
* test: diagnose first-birth schema gate admission * test: preserve fresh agent database before first-birth checks (cherry picked from commit 3925061) Co-authored-by: RomneyDa <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 19, 2026
…w#201176) * test: diagnose first-birth schema gate admission * test: preserve fresh agent database before first-birth checks
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.
What Problem This Solves
Both session first-birth tests fail after #201127 began preparing configured agent databases during Gateway startup. The fixture connects after publishing its supposedly fresh agent, so schema birth has already finished; its interrupted case then truncates that initialized database.
User Impact
No production change. Restores the two tests of session creation joining canonical database initialization.
Why This Change Was Made
Connect the existing main client before publishing the fresh target agent. Keep the real database worker, integrity gate, discovery checks, stored-session assertions, and deadlines unchanged.
Related: #201127
Evidence
session_key_contract. The temporary failure-only diagnostic reported zero integrity checks and zero observed gate workers.vitest.gateway-server-projects.config.ts, projectgateway-server-parallel, one worker.9d6f4a94..a0507d9b: no actionable findings (0.94 confidence).The baseline used current frozen source, which includes the separate SQLite source-fence clock correction since failed main run https://github.com/openclaw/openclaw/actions/runs/44294596001. The first-birth fixture, startup owner, gate, and test configuration are unchanged. An initial parent-config project-filter refusal collected no tests and is not counted as a test result.