Repository navigation
fix(test): keep admission cleanup inside its bundled fixture graph - #197728
Merged
Merged
Conversation
Bundle the exercised async logger worker alongside the host and SDK fixture. Flush queued logs before draining the existing singleton lifecycle owner so its worker pool closes before the child releases its import hook. Keep the admission, successor, child-status and unexpected-import assertions. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
The real singleton drain reaches the state database cache during cleanup. Keep that exercised owner in the bundled fixture graph rather than deferring it to a rejected source import. The original admission, identity, child-exit and unexpected-import assertions remain intact. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: f655c3b9-f005-8957-9f60-d11a162156d5
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
November 12, 2026 12:37
roboclaw-bot
enabled auto-merge (squash)
November 12, 2026 12:41
Collaborator
Author
|
Merged via squash auto-merge.
|
steipete
added a commit
that referenced
this pull request
Nov 12, 2026
Resolve the overlap with #197728 using its exact main version, including logger and global lifecycle cleanup. Only the previously tested and independently reviewed worker-group compiler fixture remains in this PR.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 13, 2026
…penclaw#197728) * test(reply): keep logger worker in admission fixture graph Bundle the exercised async logger worker alongside the host and SDK fixture. Flush queued logs before draining the existing singleton lifecycle owner so its worker pool closes before the child releases its import hook. Keep the admission, successor, child-status and unexpected-import assertions. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * test(reply): include the exercised state cleanup in the fixture graph The real singleton drain reaches the state database cache during cleanup. Keep that exercised owner in the bundled fixture graph rather than deferring it to a rejected source import. The original admission, identity, child-exit and unexpected-import assertions remain intact. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * Publish openclaw/keen-langoustine-2 Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: f655c3b9-f005-8957-9f60-d11a162156d5 --------- Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[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.
What Problem This Solves
Fixes the admission module-identity test rejecting its real logger worker and state cleanup as unexpected source imports.
Related: https://github.com/openclaw/openclaw/actions/runs/43209070232/job/131152198779
User Impact
No production behavior changes. The existing parent/successor admission and session-identity assertions remain intact, together with the child-exit and zero-unexpected-import checks.
Why This Change Was Made
#197586 moved file logging to a lazy worker. The fixture must bundle that exercised runtime and the state-cache owner reached during real cleanup. It now flushes logging and drains the existing lifecycle owner before removing its import guard; it does not bypass cleanup or permit source escapes.
This is the corrected continuation of #197724. An attempted managed source refresh unexpectedly created this PR instead of updating the original draft. The original is being retired rather than leaving two active copies.
Evidence
pnpm test src/auto-reply/reply/reply-turn-admission.module-identity.test.ts --maxWorkers=1, repository-pinned Bun, frozen dependencies, baseb48d16bf6e98f0b9c1e110548fc46b3b35f2becd.openclaw-state-db-cache.ts. Both failures were retained and investigated, not retried for green.4625e9f962fa380936e0c7cb86906d9bd50bd50bmatches reviewed commita328c692bf6ea04cbf8a02a6cf2387a75e429afdand this publication. Only one test fixture changes; production source is untouched.Contributor credit: @obviyus and @steipete.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by