Repository navigation
v0.60.25.0 ci: run CI on Bun 1.4.2 (fixes the Bun 1.3.x lost child-exit hangs) - #5798
Merged
Merged
Conversation
…e a starved parent on Bun 1.4
….4 emits write-after-end)
… the compatibility lane
|
😎 This pull request was merged. |
harjothkhara
added a commit
to harjothkhara/gbrain
that referenced
this pull request
Oct 1, 2026
Merges master's CI Bun 1.4.2 upgrade (fixes Bun 1.3.x lost child-exit hangs, garrytan#5798) into this branch. This likely explains several of the timing/hang flakes (check:test-isolation pool-contention, native-lock process-wait races) documented across this session's evidence files. Non-absorption confirmed: master's diff between f7a6d42..a4c5ea3 does not touch any file this PR's fix lives in. Version-lockstep files bumped from 0.60.23.1 to 0.60.25.1; derived artifacts (template repo, plugin tree) regenerated. This is the first merge cycle under the new daily-sync policy (09:00 UTC). Agent-Id: agent-1ce06382-5a83-4028-99b7-7d86c5e1ed00
harjothkhara
added a commit
to harjothkhara/gbrain
that referenced
this pull request
Oct 1, 2026
Merges master's CI Bun 1.4.2 upgrade (fixes Bun 1.3.x lost child-exit hangs, garrytan#5798) into this branch. This likely explains several of the check:test-isolation pool-contention timeouts documented across this PR's own prior-cycle evidence. Non-absorption confirmed: master's diff between f7a6d42..a4c5ea3 does not touch src/commands/doctor/bootstrap-checks.ts, src/core/pglite-lock.ts, or src/core/bootstrap/uninstall.ts. Version-lockstep files bumped from 0.60.23.1 to 0.60.25.1; derived artifacts (template repo, plugin tree) regenerated. First merge cycle under the new daily-sync policy (09:00 UTC). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI's primary Bun version moves from 1.3.13 to 1.4.2. Release compilation and native-locks already used 1.4.2. Bun 1.3.x drops child exit and pipe events when a callback re-enters the event loop (oven-sh/bun#30301, fixed in 1.4.0). That caused the "killed 1 dangling process" E2E hangs across open PRs. v0.60.16.0 and v0.60.21.0 bounded the git probes in code; this moves the whole test fleet off the buggy runtime.
Pins moved. Every single-version pin now reads 1.4.2:
bun-version:values in the test, e2e, heavy-tests, macos-validation, persistence-validation and release workflows;docker-compose.ci.yml'sGBRAIN_CI_BUN_TAG;scripts/setup-in-agent.sh, so new in-agent installs get 1.4.2;tests/docker;The security and persistence matrices are now
[1.3.11 (minimum supported), 1.4.2], and pull requests still skip 1.3.11. Native-locks makes 1.4.2 primary on PR and smoke scope; full scope still runs 1.3.11, 1.3.13 and 1.4.2.package.jsonenginesstays>=1.3.11.Behavior differences found on 1.4.2, fixed at the root:
src/core/process-watchdog.ts). Since 1.4, a worker'sprocess.stderrgoes through the parent's event loop, so the watchdog's heartbeat and kill lines vanished when the parent was stuck. The kills themselves still happened on time. Both worker sources nowwriteSync(2, …), so cron logs show why a process was killed again. This fixesprocess-watchdog.serialandpglite-disconnect-watchdog.serial, and both still pass on 1.3.11.socket.end()in the fake Postgres endpoint oftest/postgres-engine-singleton-lifecycle.test.ts. On 1.4 that's an uncaughtERR_STREAM_WRITE_AFTER_END, as in Node. The fake now checkswritableEnded; the assertions are unchanged.bun install --frozen-lockfileaccepts the committedbun.lock, and compiled-binary bunfig autoload behavior is the same, re-verified.Guard.
test/scripts/ci-pr-scope.test.tsnow requires every single-version pin to equal the primary version, and each matrix to be[minimum, primary]. That prevents a repeat of the #4479 skew between the compose runner tag and the VM pin.Verification.
bun run ci:ubicloudon 1.4.2 was green three times in a row with zero failures and no retries: unit 2158, serial 354, slow 26, E2E 341, plus verify and gitleaks. The first run failed only on the two 1.4 behavior differences above.