Repository navigation
fix(test): module identity graph follows logger worker - #197724
Closed
roboclaw-bot wants to merge 2 commits into
Closed
roboclaw-bot wants to merge 2 commits into
roboclaw-bot wants to merge 2 commits into
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]>
Worked on by: - @obviyus - @steipete Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> OpenClaw-Publication: fdfd4955-792c-8414-aa0e-614d56b1d988
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Superseded by #197728, which retains the same reviewed fixture repair plus the cleanup-graph correction demonstrated by the real runtime test. The managed workspace refresh created a new draft instead of updating this one; only the corrected PR will proceed. Original source, review, and failure evidence are retained. |
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 fixture rejecting the real logger worker as an unexpected source import after asynchronous logging was introduced.
Related: https://github.com/openclaw/openclaw/actions/runs/43209070232/job/131152198779
User Impact
No user-visible or production behavior changes. This test-only repair keeps the existing session-ownership regression coverage; it remains a draft pending runtime and type-aware verification.
Why This Change Was Made
#197586 intentionally moved logging I/O to a lazy worker. The existing bundled host/SDK fixture must include that exercised worker rather than externalize it as source. Cleanup now flushes logging and drains the existing singleton lifecycle owner before deregistering the child import hook.
Every original native wait identity, admitted parent ownership, queued successor ownership/session ID, child exit-status-zero, and no-unexpected-source-import assertion is preserved. One fixture changes: eight additions and three deletions, net five test lines; production source is unchanged. No timeout, retry, skip, baseline, or allocation change.
Evidence
0518869e94ee4ffe1b668e65b3aaeb7d9af90f35: the child import hook rejects nine imports ofsrc/logging/logger-file-worker.ts.db64f92b49db1df1d12f439192d33d7857028cfe.b48d16bf6e98f0b9c1e110548fc46b3b35f2becd: scoped-clean, exit 0, no actionable findings. The reviewer inspected the fixture and logger/lifecycle/worker context; no substantive edit followed review.Contributor credit: @obviyus and @steipete.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by