mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 02:14:30 +01:00
fix: eliminate browser and process-cleanup test flakes
Pin every CI surface to Bun 1.4.0 to avoid extra-stdio finalizers closing reused live sockets. Add an isolated GC/listener regression that fails on Bun 1.3.13, and prevent coordinated rollback to an affected CI runtime. Check renderer cleanup against the render's own staging directory so concurrent renders cannot invalidate the assertion. Make the no-pgrep process-tree walk tolerate disappearing /proc entries, and synchronize its test fixture through child readiness and pipe EOF instead of sleeps. Validation: 9,157 passed, 31 skipped, zero failures across 556 files with retries disabled. Build, all-host generation freshness, and skill checks passed. All three races have failing-before/passing-after regressions.
This commit is contained in:
1 parent
5e48b4d277
commit
042daeee71
17 files changed
+262
-63
No files matched your search
@@ -73,4 +73,18 @@ describe('bun version pins', () => {
|
||||
expect(versions, `bun version drift across CI surfaces:\n${detail}`).toHaveLength(1);
|
||||
expect(versions[0]).toMatch(/^\d+\.\d+\.\d+$/);
|
||||
});
|
||||
|
||||
test('every CI surface requires Bun 1.4.0 or newer for safe extra-stdio ownership', () => {
|
||||
// Matching pins alone would allow every lane to regress together. Older
|
||||
// Linux Bun releases double-close extra stdio FDs during subprocess GC,
|
||||
// which can close unrelated listeners after the OS reuses an FD number.
|
||||
// https://github.com/oven-sh/bun/issues/34785#issuecomment-5020318035
|
||||
for (const pin of collectPins()) {
|
||||
expect(pin.version, `${pin.surface} must pin a stable numeric version`).toMatch(/^\d+\.\d+\.\d+$/);
|
||||
expect(
|
||||
Bun.semver.satisfies(pin.version, '>=1.4.0'),
|
||||
`${pin.surface} pins Bun ${pin.version}; Bun >=1.4.0 is required for safe extra-stdio ownership`,
|
||||
).toBe(true);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user