Skip to content

v0.60.25.0 ci: run CI on Bun 1.4.2 (fixes the Bun 1.3.x lost child-exit hangs) - #5798

Merged
capy-ai[bot] merged 7 commits into
masterfrom
ci/bun-1.4
Oct 1, 2026
Merged

capy-ai[bot] merged 7 commits into
masterfrom
ci/bun-1.4

Conversation

@garrytan

@garrytan garrytan commented Oct 1, 2026

Copy link
Copy Markdown
Owner

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:

  • all bun-version: values in the test, e2e, heavy-tests, macos-validation, persistence-validation and release workflows;
  • docker-compose.ci.yml's GBRAIN_CI_BUN_TAG;
  • the Ubicloud VM default and fallback;
  • scripts/setup-in-agent.sh, so new in-agent installs get 1.4.2;
  • tests/docker;
  • docs.

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.json engines stays >=1.3.11.

Behavior differences found on 1.4.2, fixed at the root:

  • Worker stderr while the main thread is starved (src/core/process-watchdog.ts). Since 1.4, a worker's process.stderr goes 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 now writeSync(2, …), so cron logs show why a process was killed again. This fixes process-watchdog.serial and pglite-disconnect-watchdog.serial, and both still pass on 1.3.11.
  • Double socket.end() in the fake Postgres endpoint of test/postgres-engine-singleton-lifecycle.test.ts. On 1.4 that's an uncaught ERR_STREAM_WRITE_AFTER_END, as in Node. The fake now checks writableEnded; the assertions are unchanged.
  • No change needed: bun install --frozen-lockfile accepts the committed bun.lock, and compiled-binary bunfig autoload behavior is the same, re-verified.

Guard. test/scripts/ci-pr-scope.test.ts now 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.

  • Full bun run ci:ubicloud on 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.
  • Bun 1.3.11 compatibility lane, run locally: boundary 191/191, TLS 7/7, reconciliation crashes on Postgres and PGLite 16/16 each, persistence invariants at 2,500 writes on both engines, and the watchdog and singleton tests.

Open in Capy

@trunk-io

trunk-io Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit a4c5ea3 into master Oct 1, 2026
65 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant