rea/tests/process-global
Yijie Lu 11fe5a13f8
fix(native): retain failed pwntools process and runtime cleanup (#1708)
* fix(native): retain failed pwntools process and runtime cleanup

Keep failed worker/debugger cleanup owners and their private files until
verified process shutdown and successful directory removal. Retry cleanup
before another inspection and expose shutdown through the shared services,
CLI and MCP server. Serialize acquisition without delaying cancellation of
queued callers, and preserve primary diagnostics when CLI cleanup fails.

The original decoder reproduction left a live owned Node child with its
runtime deleted and no retained cleanup owner; the regression now verifies
retention, admission blocking, retries and eventual process/file cleanup.

Validation: 10 lifecycle/public CLI/MCP tests, 20 service tests, test
discovery 814/814, build:cached and full check including architecture guards.
Actual POSIX process/filesystem boundaries used injected Node workers on
macOS; real Linux pwntools/GDB provider parsing was not exercised.

* test(native): verify retained recorded-crash cleanup lifecycle

* fix(native): finalize diagnostic cleanup before publishing results

* fix(native): retire decoder stages before reading runtime evidence

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-10-13 01:37:47 +08:00
..
asarSnapshotOperation.test.ts fix(artifacts): serialize ASAR snapshot ownership 2026-10-11 09:28:28 +08:00
binaryDiagnosticsCliCleanup.test.ts fix(native): retain failed pwntools process and runtime cleanup (#1708) 2026-10-13 01:37:47 +08:00
browserScenarioCleanup.test.ts perf(test): reuse CLI boundary worker module graphs 2026-10-11 20:29:12 +08:00
cliJsonInputStatus.test.ts test(cli): reduce repeated startup and filesystem setup 2026-10-08 04:03:24 +08:00
cliLogging.test.ts refactor(domain): split error taxonomy into thematic modules (#636) 2026-10-06 05:57:38 +08:00
cliSelectedEnvironment.test.ts refactor!: enforce canonical evidence and provider boundaries 2026-10-09 20:18:52 +08:00
curatedWindowsLane.test.ts fix(hopper): verify lease cleanup and repair the macOS test lane (#1111) 2026-10-09 02:41:34 +08:00
mcpDeliveryEnvironment.test.ts feat(mcp): compact input schema profile for size-capped providers (kimi-cli/Moonshot) (#1514) 2026-10-10 16:58:43 +08:00
pwntoolsCleanup.test.ts fix(native): retain failed pwntools process and runtime cleanup (#1708) 2026-10-13 01:37:47 +08:00
pwntoolsCliFinalization.test.ts fix(native): retain failed pwntools process and runtime cleanup (#1708) 2026-10-13 01:37:47 +08:00
pwntoolsStageRetirement.test.ts fix(native): retain failed pwntools process and runtime cleanup (#1708) 2026-10-13 01:37:47 +08:00
runnerCancellation.test.ts build: separate runtime artifacts and supervise command ownership 2026-10-09 20:11:17 +08:00
updateMaintenance.test.ts fix(update): resolve Bun global directories before changing cwd 2026-10-11 18:11:52 +08:00
verifierRun.test.ts test: consolidate service and process fixtures 2026-10-08 04:03:24 +08:00