Skip to content

fix(test): retain standalone resolver fixtures after cleanup failure - #201662

Merged
vincentkoc merged 2 commits into
mainfrom
test/standalone-resolver-fixture-cleanup-audit-20261119
Nov 19, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
test/standalone-resolver-fixture-cleanup-audit-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Two standalone resolver test suites lose tracked fixture directories when a removal fails.

User Impact

No user-visible behavior changes. Cleanup continues through healthy fixtures and retains failed removals for retry.

Why This Change Was Made

Delegate both synchronous teardown hooks to the existing shared cleanup helper. Preserve all five declarations and ten expanded cases: lazy builtins and aliases, emitted/typed resolution after pruning and relocation, dynamic and shadowed resolution, and fresh-process export recovery/rejection. All fixture registrations, child inputs and assertions are unchanged.

Evidence

  • Actual registered Vitest-hook controls reproduce lost failed and unattempted roots in both baseline suites. The candidate preserves the original error, removes the healthy root, retains the failed root and succeeds on retry.
  • The module-resolution control includes an already absent original root and a present relocated root.
  • Clean baseline and candidate runs each pass all ten existing cases (8 + 2). Temporary instrumentation was restored byte for byte.
  • Scoped scripts-test typecheck, targeted lint, formatting, line-cap and max-lines ratchets, and whitespace checks pass.
  • Independent classification and actual-patch preservation review found no gaps. Local ClawSweeper review of the code commit found no findings; the final commit records completed proof only.
  • Test code is +4/-6 lines. Production and shared helpers are unchanged.

Maintainer-directed test audit. No release-note entry is required.

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

clawsweeper Bot commented Nov 19, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 06:22
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 06:27
@vincentkoc
vincentkoc merged commit 1aced63 into main Nov 19, 2026
141 of 144 checks passed
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@vincentkoc
vincentkoc deleted the test/standalone-resolver-fixture-cleanup-audit-20261119 branch November 19, 2026 06:33
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…penclaw#201662)

* fix(test): retain standalone resolver fixtures after cleanup failure

* test: record standalone resolver cleanup proof
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(build): isolate standalone native export resolution

Capture package exports in a fresh instance of the build runtime so earlier bundling cannot exhaust the resolver state used to build the native lookup table. Verify ambiguous missing entries independently and fail before publishing an incomplete artifact.

* test: reconcile standalone regression allocation with CI base

* test: share standalone native fixture setup

(cherry picked from commit 00a9c52)

Release adaptation: Exact fresh-process resolver/finalizer and unnamed-owner filtering; kept existing standalone test fixtures rather than importing broad refactor. Later parser-target fix bdfd1c0 and fixture cleanups independent/out of scope. No compiler/dependency/version changes.

Follow-up dispositions: d44f263 fix(test): retain standalone fixtures after cleanup failure (openclaw#202227); 1aced63 fix(test): retain standalone resolver fixtures after cleanup failure (openclaw#201662); bdfd1c0 fix: retain minified lazy parser targets in standalone builds (openclaw#198639); 5f99927 fix: restore desktop standalone packaging on current build output (openclaw#198567)

Validation: Baseline resolver regressions 2/2 failed with actual missing alias and swallowed error; candidate resolver+existing native tests 30/30 passed under pinned test runtime; node --check and diff --check passed. Full large standalone distribution build not run.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b305470dfd611795999ecbee9d5d14c172e58484)
(cherry picked from commit 63a60fa78bba92bec04a43a1686b78d896a6d887)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant