Skip to content

fix(test): prevent shared-worker metadata resets from breaking unrelated suites - #129680

Merged
steipete merged 1 commit into
mainfrom
codex/qa-runner-metadata-lifecycle
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-runner-metadata-lifecycle

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where otherwise unrelated CLI update and Gateway test suites intermittently fail after another test file has published plugin metadata in a shared Vitest worker. The regression was introduced by the shared-runner cleanup included in #129502.

Why This Change Was Made

Keep process-owned plugin metadata snapshots and their registered reader closures alive across non-isolated test files. Remove the newly introduced runner cleanup and the fixture that incorrectly required those process-stable readers to disappear; preserve all existing module, mock, environment, timer, and other shared-state cleanup.

User Impact

No production or user-facing behavior changes. Maintainers regain reliable shared-worker CLI and Gateway validation without changing plugin configuration, runtime behavior, or public contracts.

Evidence

  • Authentic baseline owner-boundary RED: the actual production metadata reader returned undefined immediately after the shared runner cleanup, despite a published snapshot.
  • Identical candidate owner-boundary GREEN: the actual production reader retains and returns the same published snapshot across the repaired cleanup boundary.
  • Focused owner and affected CLI suites: 254 tests passed across three scoped Vitest shards, including 247 update CLI tests.
  • Independent complete Gateway sibling proof: 199 test files and 3,687 tests passed.
  • During the first Gateway run, one performance test reported a missing mock bookkeeping label even though its real SQLite transaction and all 30 archived sessions succeeded; the focused performance tests passed 2/2, and the same complete Gateway command then passed 199/199 files and 3,687/3,687 tests.
  • Fresh authenticated structured review and independent owner review both reported no actionable findings.
  • Production LOC: +0/-0. Test support: +1/-30. Tests: +1/-60.
  • Original repair author and preserved Git commit author: Dallin Romney [email protected].

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 23:45
@steipete
steipete merged commit 85611e0 into main Aug 26, 2026
156 checks passed
@steipete
steipete deleted the codex/qa-runner-metadata-lifecycle branch August 26, 2026 00:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants