0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(start-plugin-core): measure the environment release in a process of its own

The release test reads the process-global compiler stats, summed over every
live session. In the `integration` project (`isolate: false`), an earlier
file of the same worker (rsbuild/dev-server.test.ts, which enables the same
stats knob) leaves its Rsbuild dev session alive after its server closed:
Rspack's native binding holds the closed compiler's last compilation
through a global handle (GC roots > global handles > JsCompilation >
Compilation > Compiler > Start's transformer > session), so the probe counted
that session's 107 plans and 2 import-protection environments on top of the
build's released client. Reproduced with one worker and that file order; the
host's release is not at fault.

The file now runs in project `integration-alone` (`isolate: true`, a new
process per file), which `test:integration` runs too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-26 23:42:52 +01:00
commit 87df4006f9
No known key found for this signature in database
4 changed files with 32 additions and 5 deletions