Skip to content

fix(test): keep admission cleanup inside its bundled fixture graph - #197728

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/keen-langoustine-2
Nov 12, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/keen-langoustine-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Real maintained AWS entry point: pnpm test src/auto-reply/reply/reply-turn-admission.module-identity.test.ts --maxWorkers=1, repository-pinned Bun, frozen dependencies, base b48d16bf6e98f0b9c1e110548fc46b3b35f2becd.
  • Base reproduced the unexpected logger-worker imports and failed. The first candidate also failed: its newly exercised lifecycle cleanup attempted a deferred import of openclaw-state-db-cache.ts. Both failures were retained and investigated, not retried for green.
  • The corrected fixture bundles that demonstrated cleanup dependency and passes the original case, child status zero and zero unexpected imports, in 5.020 seconds (48.87 seconds including compiled-worker preparation). Original assertions and deadlines are unchanged. The maintained compiler built and verified 20,023 inputs and 24,679 outputs.
  • Tested file blob 4625e9f962fa380936e0c7cb86906d9bd50bd50b matches reviewed commit a328c692bf6ea04cbf8a02a6cf2387a75e429afd and this publication. Only one test fixture changes; production source is untouched.
  • Touched-file type-aware lint passes with no problems in one file; package-boundary declaration preparation emitted 14,333 files. Formatting and diff checks pass. Fresh canonical independent P0–P2 review is scoped-clean after staging the corrected revision; its earlier index-only finding and first-candidate runtime failure remain recorded.
  • Full type checks and remaining enforced gates require exact-head PR CI. This PR does not claim a green full main run.

Contributor credit: @obviyus and @steipete.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 3 commits November 12, 2026 12:23
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
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@roboclaw-bot roboclaw-bot changed the title Publish openclaw/keen-langoustine-2 fix(test): keep admission cleanup inside its bundled fixture graph Nov 12, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 12, 2026 12:37
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 12, 2026 12:41
@roboclaw-bot
roboclaw-bot merged commit cee9283 into main Nov 12, 2026
183 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/keen-langoustine-2 branch November 12, 2026 12:47
@roboclaw-bot

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant