Skip to content

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

Merged
vincentkoc merged 2 commits into
mainfrom
test/standalone-fixture-cleanup-audit-20261120
Nov 20, 2026
Merged

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

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Three standalone test suites lose track of fixture directories when a teardown 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

Use the existing cleanup helper in the metadata, native packaging and plugin selection suites. Preserve all 56 declarations and 89 expanded cases, fixture registrations, metadata global restoration, child-process settlement and assertions.

Evidence

  • Clean baseline and candidate runs each pass all 89 cases (56 metadata, 28 native, 5 plugin).
  • Captured registered-hook controls show each original hook loses failed and unattempted roots. Each candidate preserves the original error, removes the healthy fixture, retains the failed root and removes it on retry.
  • The native control uses the existing root/symlink pair and checks the alias with lstat. The metadata control verifies global restoration before the failing removal.
  • Temporary instrumentation was restored byte for byte.
  • Scoped scripts-test typecheck, targeted lint, formatting, line-cap and max-lines checks pass.
  • Independent classification and preservation reviews found no gaps. Local ClawSweeper review found no actionable defects.
  • Test code is +6/-9 lines. Production and shared helpers are unchanged.

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

CI attribution

CI attempt 1 reports 18 Markdown heading errors in docs/releases/2026.11.5.md. They exactly match the scheduled main check-docs job. The failing release file and lint inputs are unchanged in the tested merge 461aac5f3e9d17fcd33451c1dde1853430623881 (base 92d147da1552602f7636665e49dd75677b5e48d3, PR head cb05d61a7a1123594355bb291a8e805ac35455fc). This is inherited CI failure evidence, not a passing CI claim.

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

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 04:16
@vincentkoc
vincentkoc enabled auto-merge (squash) November 20, 2026 04:20
@vincentkoc
vincentkoc disabled auto-merge November 20, 2026 04:26
@vincentkoc
vincentkoc merged commit d44f263 into main Nov 20, 2026
148 of 153 checks passed
@vincentkoc
vincentkoc deleted the test/standalone-fixture-cleanup-audit-20261120 branch November 20, 2026 04:29
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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

* test: record remaining standalone fixture cleanup plan

* fix(test): retain standalone fixtures after cleanup failure
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant