Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs: keep docs/TESTING.md under its size ratchet; the bun_spawnsync_poisoned signal is documented in the detector and CHANGELOG

garrytanbfaca08bd0ba
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc8c3b3cc0..dd30ad65a5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,7 +20,7 @@ Three runs out of three of the `Test` workflow's shard 7 at the current file com
- `test/helpers/git-publication.ts`: `gitAsync` and `gitFixtureAsync` run git through `Bun.spawn` on the main loop; `test/persistence-git-publication.test.ts` uses them for every call, so the shard's densest run of `spawnSync` windows is gone. The synchronous `git` stays for callers that cannot await, and both now throw on any exit that is not 0: a null exit code (signal, or a `spawnSync` that returned without a status) used to pass as success and return `''`, which turned the poisoned run into a bogus fixture and a `durability_not_enabled` assertion two lines later. Both spawns pass the live `process.env`, so a test's `PATH` or `GIT_*` override reaches the child.
- `scripts/capture-test-log.ts`: a red shard whose log shows `killed N dangling process` followed by nothing but timeouts, at least three of them in at least two files, is named `bun_spawnsync_poisoned` in the job's step summary and on stderr, with the Bun version, the upstream issue and fix, and "rerun the job". A signal only; nothing is resumed or retried. One hung test with a dangling child, timeouts with no killed child, timeouts confined to one file, or any non-timeout failure after the kill are left for their own diagnosis.
-- `TODOS.md`: bump Bun when a release carries 13a98b0; check the compare, not the version number. `docs/TESTING.md` describes the signal.
+- `TODOS.md`: bump Bun when a release carries 13a98b0; check the compare, not the version number.
- Tests: `test/git-publication-helper.test.ts` (a git that ends by signal throws from both helpers with the command and the status; a non-zero exit carries git's stderr; the signal case returned `''` on the previous helper), `test/scripts/capture-test-log.test.ts` (the signature is named; the four look-alike shapes are not). The detector names both real shard-7 logs and not the same shard's unrelated recall-budget failure.
## [0.60.139.0] - 2026-10-09
diff --git a/docs/TESTING.md b/docs/TESTING.md
index 2e5ce27035..0000168379 100644
--- a/docs/TESTING.md
+++ b/docs/TESTING.md
@@ -168,14 +168,7 @@ summary.
Failure reporting rides the same machinery. `scripts/capture-test-log.ts`
adds the last 50 failures to a red job's step summary (file, test, backend
arm, first error block and a `bun test … -t` reproduce command), falling back
-to the log tail when no `(fail)` line exists. It also names one runtime
-defect: a `killed N dangling process` line followed by nothing but timeouts in
-two or more files is `bun_spawnsync_poisoned` (oven-sh/bun#34069, fixed
-upstream by oven-sh/bun#44581 but in no Bun release yet): a GC finalizer that
-ran during an earlier `Bun.spawnSync` wait leaves every later synchronous
-child spawn in that process spinning until its deadline, so the rest of the
-shard says nothing about the tests and the job is rerun (TODOS.md tracks the
-Bun bump). `run-e2e.sh` kills and names any
+to the log tail when no `(fail)` line exists. `run-e2e.sh` kills and names any
process still running under a file's `HOME`, and fails that file by name when
its `HOME` cannot be removed. Coverage lanes write `executed-files.txt` on red
runs too; `lane-manifest.json` is written only on a green run.