gsxdsm
80fbcdd5a3
FN-6396: harden test worker temp cleanup
Prevent stale Fusion test worker roots from leaking across merge-gate runs.
- Add per-run tokens to worker-root owner markers and pruning checks.
- Remove self-minted fallback worker roots during Vitest exit cleanup.
- Cover stale pid reuse, markerless redir roots, and SIGKILL-style orphan pruning with regression tests.
Files changed:
packages/core/src/__test-utils__/vitest-setup.ts | 83 +++++++++++++++++++---
.../core/src/__test-utils__/vitest-teardown.ts | 8 ++-
.../vitest-teardown-worker-root-cleanup.test.ts | 19 ++++-
scripts/__tests__/test-changed.test.mjs | 74 ++++++++++++++++++-
scripts/test-changed.mjs | 76 ++++++++++++++++----
5 files changed, 233 insertions(+), 27 deletions(-)
Fusion-Task-Id: FN-6396
Fusion-Task-Lineage: 711d966d-c70e-4cd7-81cd-accd18f17202
2026-06-13 16:30:28 -07:00
..
2026-06-13 16:30:28 -07:00
2026-06-13 12:11:05 -07:00
2026-06-13 12:11:05 -07:00
2026-04-18 23:41:47 -07:00
2026-06-13 11:39:37 -07:00