Skip to content

fix: preserve fresh database setup in session creation tests - #201176

Merged
vincentkoc merged 2 commits into
mainfrom
test/session-firstbirth-startup-order-20261118
Nov 18, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
test/session-firstbirth-startup-order-20261118

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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

  • Original ordering: both cases reproduce the scheduled-main failure, including the interrupted case’s missing session_key_contract. The temporary failure-only diagnostic reported zero integrity checks and zero observed gate workers.
  • Final ordering: the full two-case file passes (9.85 seconds) with Node 24.22.1 and the pinned Bun fork through vitest.gateway-server-projects.config.ts, project gateway-server-parallel, one worker.
  • Format, targeted type-aware lint, and gateway-server test typecheck passed.
  • Fresh local ClawSweeper review of 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.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 18, 2026
@vincentkoc vincentkoc changed the title test: diagnose session first-birth gate failures fix: preserve fresh database setup in session creation tests Nov 18, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 12:35
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 12:36
@vincentkoc
vincentkoc merged commit 3925061 into main Nov 18, 2026
180 of 182 checks passed
@vincentkoc
vincentkoc deleted the test/session-firstbirth-startup-order-20261118 branch November 18, 2026 12:46
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
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.

@vincentkoc

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant