You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test fixtures: fixtureGit accepts a null spawn status; browse tests still spawn Bun with a literal --config=/dev/null on Windows (deferred from #3474 /ship review) #3476
Found by /ship's pre-landing review of #3474 (GSTA-107 free-tier fixture races). These sit in code the PR touches only at the edges, so per CREW rule 23 they are deferred here instead of being fixed in that PR.
test/cso-git-hardening.test.ts:12fixtureGit treats a null exit status as success.if(result.status)throw new Error(result.stderr) does not throw when spawnSync times out (30 s) or cannot start /usr/bin/git (result.error set, status === null). After v1.91.250.0 fix(tests): remove three free-tier fixture races (GSTA-107 daily flaky pass) #3474 every fixture runs five Git spawns through this helper, so a killed git commit would leave a repository with no HEAD and a misleading later failure with an empty message. Suggested: throw when result.error || result.status !== 0, and name the Git args and signal in the message.
Other browse tests still pass a literal --config=/dev/null (or NUL) when spawning Bun on Windows.v1.91.250.0 fix(tests): remove three free-tier fixture races (GSTA-107 daily flaky pass) #3474 switched its new dotenv-isolation test to emptyBunConfig(); browse/test/cookie-import-native.test.ts, dia-macos-qualification.test.ts, cookie-import-native-job.test.ts and dia-gui-readiness.test.ts were named by the adversarial pass as candidates for the same swap (confidence 3, not verified file by file).
Advisory items named in the #3474 PR body and left as they are: the new dotenv test's second half proves "no .tmp left behind" and valid JSON, not rename atomicity itself; fixture() in cso-git-hardening now costs five Git spawns per test (41-216 ms on a 4-core Linux box; the macOS lane measures the cold case); the write-temp-then-rename idiom is now hand-written in three test fixtures; the new comments cite CI run ids.
Fixed in #3761, merged to main as 9514b76 (v1.93.31.0). In test/cso-git-hardening.test.ts, fixtureGit now throws when git fails to start or is killed (a spawn error, or a null or non-zero status), not only on a non-zero exit, and the error names the git call. The beforeAll warm-up is skipped on Windows, where /usr/bin/git doesn't exist.
Activity
v1.93.31.0 test(cso): fixtureGit throws when git is killed or cannot …
capy-ai commentedon Nov 3, 2026
Fixed in #3761, merged to main as 9514b76 (v1.93.31.0). In test/cso-git-hardening.test.ts, fixtureGit now throws when git fails to start or is killed (a spawn error, or a null or non-zero status), not only on a non-zero exit, and the error names the git call. The beforeAll warm-up is skipped on Windows, where /usr/bin/git doesn't exist.