Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
v0.60.193.0 ci: Bun 1.4.3 (spawnSync poll drift, #6586); child-process timeouts are not DB drops; live poisoned-shard note; pinned-reads stops at its deadline
garrytan09674a1a1829
diff --git a/.github/workflows/ci-health.yml b/.github/workflows/ci-health.ymlindex a13fb6ae30..8606fabf14 100644--- a/.github/workflows/ci-health.yml+++ b/.github/workflows/ci-health.yml@@ -53,7 +53,7 @@ jobs:fetch-depth: 0- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Upsert the weekly CI health issueenv:GH_TOKEN: ${{ github.token }}diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex 7c023b1f65..82c28bb88b 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -71,7 +71,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -150,7 +150,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Select and freeze E2E filesid: selectshell: bash@@ -216,7 +216,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -308,7 +308,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -492,7 +492,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -578,7 +578,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -683,7 +683,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Coverage shard ${{ matrix.shard }}/10run: scripts/test-shard.sh ${{ matrix.shard }} 10@@ -740,7 +740,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Plan this shard's ordershell: bash@@ -784,7 +784,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- run: bun run test:serialenv:@@ -819,7 +819,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile# Separate coverage dirs per bun process (a reused dir is overwritten).- run: bun test test/entity-resolve-perf.slow.test.ts --timeout=300000 --coverage --coverage-reporter=lcov --coverage-dir=${{ runner.temp }}/coverage/slow-b@@ -872,7 +872,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3# PGLite snapshot (restore-only; test.yml's serial-tests job saves).- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:@@ -966,7 +966,7 @@ jobs:fetch-depth: 0 # baseline gate reads git show origin/master:- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Download per-lane coverage artifactsuses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0@@ -1029,7 +1029,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Download receiptscontinue-on-error: trueuses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0@@ -1135,7 +1135,7 @@ jobs:- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Download nightly execution receiptsif: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.full_corpus)uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0diff --git a/.github/workflows/fix-wave-closeout.yml b/.github/workflows/fix-wave-closeout.ymlindex fc6a9026e9..49c74e27ae 100644--- a/.github/workflows/fix-wave-closeout.yml+++ b/.github/workflows/fix-wave-closeout.yml@@ -32,7 +32,7 @@ jobs:sparse-checkout-cone-mode: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Close superseded PRsenv:GH_TOKEN: ${{ github.token }}diff --git a/.github/workflows/fix-wave-gate.yml b/.github/workflows/fix-wave-gate.ymlindex 87ab57dbe4..1dbf9b932e 100644--- a/.github/workflows/fix-wave-gate.yml+++ b/.github/workflows/fix-wave-gate.yml@@ -38,7 +38,7 @@ jobs:sparse-checkout-cone-mode: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Decideenv:GH_TOKEN: ${{ github.token }}@@ -59,7 +59,7 @@ jobs:sparse-checkout-cone-mode: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Post the welcome comment once on a contributor PRenv:GH_TOKEN: ${{ github.token }}diff --git a/.github/workflows/heavy-tests.yml b/.github/workflows/heavy-tests.ymlindex 1c3648df3b..9a6e3e7cba 100644--- a/.github/workflows/heavy-tests.yml+++ b/.github/workflows/heavy-tests.yml@@ -71,7 +71,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -173,7 +173,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -282,7 +282,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -532,7 +532,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -758,7 +758,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Build gbrain (compile once for the doors)@@ -854,7 +854,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Prepare evidence dir@@ -1066,7 +1066,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Build gbrainrun: |diff --git a/.github/workflows/macos-validation.yml b/.github/workflows/macos-validation.ymlindex 5c410297b1..688a4f7423 100644--- a/.github/workflows/macos-validation.yml+++ b/.github/workflows/macos-validation.yml@@ -47,7 +47,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts# #6056: the verify step's typecheck ran cold on every nightly and was# killed at the 240 s cap. Restore the incremental tsbuildinfo from thediff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.ymlindex 75a1ed99a2..351777d6d7 100644--- a/.github/workflows/native-locks.yml+++ b/.github/workflows/native-locks.yml@@ -47,7 +47,7 @@ jobs:node-version: 24.18.0- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts- run: npm install --prefix "${{ runner.temp }}/openclaw-host" --ignore-scripts --omit=optional --no-audit --no-fund [email protected]- name: Exercise real plugin load and fresh conversations with a loopback-only provider@@ -64,7 +64,7 @@ jobs:strategy:fail-fast: falsematrix:- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']target: [linux-x64-glibc, linux-arm64-glibc, darwin-arm64, darwin-x64, win32-x64, win32-arm64]# Pull requests: primary Bun on every target (native paths changed) or# the Linux x64 glibc smoke cell. Runners map from the target above.@@ -110,7 +110,7 @@ jobs:timeout-minutes: 8run: |bun build --compile --no-compile-autoload-bunfig --outfile bin/gbrain-native-validation src/cli.ts- if [ "${{ runner.os }}" = "macOS" ] && [ "${{ matrix.bun }}" = "1.4.2" ]; then+ if [ "${{ runner.os }}" = "macOS" ] && [ "${{ matrix.bun }}" = "1.4.3" ]; thencodesign --verify --strict --verbose=2 bin/gbrain-native-validationfibun scripts/native/compiled-smoke.ts --binary bin/gbrain-native-validation@@ -126,7 +126,7 @@ jobs:fail-fast: falsematrix:runner: [windows-2022, windows-11-arm]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Named exception: PR scope reduction, covered by scope=full runs (docs/TESTING.md#event-parity).exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.4.0"}]') }}steps:@@ -155,7 +155,7 @@ jobs:fail-fast: falsematrix:runner: [windows-2022, windows-11-arm]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Named exception: PR scope reduction, covered by scope=full runs (docs/TESTING.md#event-parity).exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.4.0"}]') }}steps:@@ -184,7 +184,7 @@ jobs:strategy:fail-fast: falsematrix:- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']target: [linux-x64-musl, linux-arm64-musl]# Named exception: PR scope reduction, covered by scope=full runs (docs/TESTING.md#event-parity).exclude: ${{ fromJSON(inputs.scope == 'full' && '[]' || '[{"bun":"1.4.0"}]') }}diff --git a/.github/workflows/nightly-watch.yml b/.github/workflows/nightly-watch.ymlindex fd72a0afed..e16039db6a 100644--- a/.github/workflows/nightly-watch.yml+++ b/.github/workflows/nightly-watch.yml@@ -97,7 +97,7 @@ jobs:scripts- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- id: targetname: Resolve the target workflow and trackenv:@@ -144,7 +144,7 @@ jobs:TODOS.md- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Upsert the nightly-red or master-red issueenv:GH_TOKEN: ${{ github.token }}diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.ymlindex 658eb6ccd7..d00008596f 100644--- a/.github/workflows/persistence-validation.yml+++ b/.github/workflows/persistence-validation.yml@@ -16,7 +16,7 @@ jobs:fail-fast: falsematrix:engine: [pglite, postgres]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:@@ -56,7 +56,7 @@ jobs:strategy:fail-fast: falsematrix:- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:@@ -178,7 +178,7 @@ jobs:fail-fast: falsematrix:shard: [1, 2, 3]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:@@ -262,7 +262,7 @@ jobs:fail-fast: falsematrix:engine: [pglite, postgres]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:@@ -315,7 +315,7 @@ jobs:fail-fast: falsematrix:engine: [pglite, postgres]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:@@ -392,7 +392,7 @@ jobs:fail-fast: falsematrix:engine: [pglite, postgres]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions (docs/TESTING.md#event-parity).services:diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f67682bb3a..1ce47dc45c 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -88,7 +88,7 @@ jobs:scripts- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- id: gatename: Wait for Test and E2E Tests on the release commitenv:@@ -120,7 +120,7 @@ jobs:ref: ${{ needs.ci-gate.outputs.sha }}- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -279,7 +279,7 @@ jobs:- if: steps.gate.outputs.publish == 'true'uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- if: steps.gate.outputs.publish == 'true'uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:@@ -360,7 +360,7 @@ jobs:persist-credentials: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile- name: Drift gate — committed plugin tree matches the generatorrun: bash scripts/check-plugin-tree.shdiff --git a/.github/workflows/scale-tier.yml b/.github/workflows/scale-tier.ymlindex 1727e8da44..03ba4136c0 100644--- a/.github/workflows/scale-tier.yml+++ b/.github/workflows/scale-tier.yml@@ -65,7 +65,7 @@ jobs:- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2if: github.event_name == 'schedule'with:- bun-version: 1.4.2+ bun-version: 1.4.3- id: planenv:GH_TOKEN: ${{ github.token }}@@ -159,7 +159,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cachediff --git a/.github/workflows/stress.yml b/.github/workflows/stress.ymlindex 333035adbf..6cd939ba03 100644--- a/.github/workflows/stress.yml+++ b/.github/workflows/stress.yml@@ -52,7 +52,7 @@ jobs:fetch-depth: 0- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts# Dispatch inputs reach the planner through env only; it validates every# path and ref before use. Named exception (docs/TESTING.md#event-parity):@@ -106,7 +106,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -155,7 +155,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts- name: Download plancontinue-on-error: truediff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 16f280bc9c..d67d8026c8 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -191,7 +191,7 @@ jobs:fail-fast: falsematrix:os: [ubuntu-latest, macos-26, windows-latest]- bun: ['1.4.0', '1.4.2']+ bun: ['1.4.0', '1.4.3']# Event parity: every event, pull requests and merge-queue runs# included, runs both supported Bun versions on every OS# (docs/TESTING.md#event-parity).@@ -284,7 +284,7 @@ jobs:cat "$GITHUB_OUTPUT"- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts- run: bun install --frozen-lockfile --ignore-scriptsworking-directory: admin@@ -309,7 +309,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3# This job is the ONE designated saver of the bun cache (the others# restore-only, so 5 redundant post-job save attempts disappear).# admin/bun.lock is in the key because verify's check:admin-build@@ -413,7 +413,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -493,7 +493,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -574,7 +574,7 @@ jobs:run: git fetch --no-tags --depth=1 origin +refs/heads/master:refs/remotes/origin/master- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -611,7 +611,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -708,7 +708,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -798,7 +798,7 @@ jobs:fetch-depth: 0 # diff gate needs origin/master; baseline gate reads git show origin/master:- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: ~/.bun/install/cache@@ -896,7 +896,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts- run: bun install --frozen-lockfile --ignore-scriptsworking-directory: admin@@ -923,7 +923,7 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- run: bun install --frozen-lockfile --ignore-scripts- name: Build the pinned pre-feature executablerun: bash scripts/build-shared-skills-baseline.sh "$RUNNER_TEMP/gbrain-before-shared-skills"@@ -961,7 +961,7 @@ jobs:sparse-checkout-cone-mode: false- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2with:- bun-version: 1.4.2+ bun-version: 1.4.3- name: Download receiptscontinue-on-error: trueuses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f6dedcee86..7eba07e847 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,20 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.193.0] - 2026-10-13++**CI and the release build move to Bun 1.4.3, which carries the fix for the spawnSync hang that poisoned whole test shards (#6586).** On Bun 1.4.0 to 1.4.2, a garbage-collection finalizer that runs while `Bun.spawnSync` waits can leave the runtime's private spawnSync loop miscounted for the rest of the process (oven-sh/bun#34069). After that, a synchronous child spawn may never notice its child exit. A spawn with a timeout comes back `ETIMEDOUT` even though the child finished, and one without a timeout spins until the test deadline kills it. Run 38335527492 hit this twice: `test (2)` hung in `test/managed-sync-pinned-reads.test.ts` and was cancelled, while the identical code on the identical file order passed on master and on #6576. Bun 1.4.3 (released 2026-10-10) contains upstream commit 13a98b0. `compare/bun-v1.4.3...13a98b0` reports `behind`, which means the release already has the commit. The supported install floor stays at Bun 1.4.0.++Three gaps the hang exposed are fixed too. A managed sync no longer mistakes a timed-out `git` child for a lost database connection. CI names the signature as soon as it appears instead of only when the test process exits. And the pinned-reads test no longer keeps running behind the next test after it times out.++### Itemized changes++- **Bun 1.4.3 everywhere CI pins one version:** every `bun-version:` in `.github/workflows/`, the `['1.4.0', '1.4.3']` floor-plus-primary matrices (the 1.4.0 cells stay, since 1.4.0 is the supported floor), `docker-compose.ci.yml` (`bun run ci:local`), `scripts/ubicloud/setup-ci-vm.sh` and `scripts/ci-ubicloud.ts` (`bun run ci:ubicloud`), `tests/docker/`, and `scripts/setup-in-agent.sh`'s runtime pin for new in-agent installs (repairs keep the version their receipt records). `test/scripts/ci-pr-scope.test.ts` still requires every single-version pin to equal the primary. The release compiler (`release.yml`) now builds the published binaries on 1.4.3, so a compiled `gbrain` no longer carries the defect.+- **`isConnectionDrop` (`src/core/persistence/sync-drain.ts`):** a child-process error is no longer a dropped database connection. That covers Node's `syscall: 'spawnSync git'` and any message of the form `spawn(Sync) <cmd> E…`. Before, the drain's git reads coming back `spawnSync git ETIMEDOUT` printed "database connection dropped", reconnected the database, and counted a strike toward `connection_lost`, which pointed the operator at the wrong component. Now the error takes the drain's ordinary transient retry, with no reconnect and no connection line. The test throws a real `spawnSync` timeout and a synthetic `spawnSync git ETIMEDOUT` through `runDrain`. It fails on the old code, where the first is classified as a drop.+- **`scripts/capture-test-log.ts`:** two live notes, each printed once to stderr and appended to the job's step summary as soon as its evidence arrives. The first, `bun_spawnsync_poisoned?`, fires on the first `spawnSync <cmd> ETIMEDOUT` line and names its file. The second is the existing `bun_spawnsync_poisoned` verdict, the moment it holds. Before, the classifier ran only when the test process exited, so the cancelled #6578 job never named the signature. The tests replay that job's log shape and check a still-running capture's summary. Both fail on the old script.+- **`test/managed-sync-pinned-reads.test.ts`:** `afterEach` aborts the running arm's sync (`performSync` now gets the arm's signal), puts PATH back, and prints the arm's Git calls: how long each took and which never finished. Before, a timed-out test left PATH on its counting `git` shim. It also kept spawning Git behind the next test and threw `ENOENT` into the temp home that `afterAll` had already removed. The shim now records a start and end line per call (`calls()` counts are unchanged). Forced probe: with the test deadline cut to 4 s and a `git` that sleeps 200 ms, a trailing test that checks PATH and the arm's Git log fails on the old file and passes on the new one.+- `TODOS.md`: the P2 "Bump Bun when a release carries 13a98b0" item is done. `docs/TESTING.md`, `docs/RELEASING.md`, `docs/guides/authorization-upgrade.md` and `native/locks/README.md` name 1.4.3 as the CI and build runtime.+## [0.60.192.0] - 2026-10-13**CI test shards are packed from fresh timings after wave 16.** CI splits each test lane across several machines using the recorded run time of every test file. Wave 16 moved the #6210 durability probes out of the 5530 coalescing tests into their own files and added several new test files, so the recorded times no longer matched the tests. This release re-measures every lane from green master runs at wave 16's merge. No product behaviour changes.diff --git a/TODOS.md b/TODOS.mdindex 12589ae9c2..72446d1640 100644--- a/TODOS.md+++ b/TODOS.md@@ -22,7 +22,7 @@ Context: gbrain-evals `docs/plans/2026-10-07-cat40-hard-fix/PLAN.md`; this wave## CI runtime follow-ups (filed 2026-10-09, GBRA-64)-- [ ] **P2 — Bump Bun when a release carries 13a98b0 (oven-sh/bun#44581); check the compare, not the version number.** **What:** Bun 1.4.0 and 1.4.2 carry oven-sh/bun#34069: a GC finalizer that runs while `Bun.spawnSync` waits drifts the runtime's private spawnSync loop for the life of the process, after which every synchronous child spawn with the matching poll count spins until the test deadline and returns empty output. In our 384-file single-process unit shards that is one `killed N dangling process` followed by nothing but timeouts for the rest of the shard (run 38004627376 attempt 1 on d4dc2d4d8, run 37971386009 on c12e14adf, both at the same point of shard 7). `scripts/capture-test-log.ts` names the signature `bun_spawnsync_poisoned` in the step summary; a rerun is the remedy. **Fix:** when a Bun release includes commit 13a98b0 (`https://github.com/oven-sh/bun/compare/bun-v<version>...13a98b0dbd136bcc5c98a8adfb53c909aa3183cc` reports `behind` or `identical`, never trust the version number alone), move the CI matrix and the documented install floor to it, then remove the signature's "no release" wording. **Effort:** S. **Priority:** P2.+- [x] **P2 — Bump Bun when a release carries 13a98b0 (oven-sh/bun#44581); check the compare, not the version number.** **Done (#6586):** Bun 1.4.3 carries it (`compare/bun-v1.4.3...13a98b0` reports `behind`); CI, the release compiler, the local and Ubicloud gates and the in-agent runtime pin move to 1.4.3. The install floor stays 1.4.0; the floor matrix cells still carry the defect, and `scripts/capture-test-log.ts` names it live.## Content-repair lane follow-ups (filed 2026-10-09, GBRA-72, #6377)diff --git a/VERSION b/VERSIONindex f8f79f48b6..e846cfd3f7 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-0.60.192.0+0.60.193.0diff --git a/docker-compose.ci.yml b/docker-compose.ci.ymlindex 72911a6a5c..a082478fd9 100644--- a/docker-compose.ci.yml+++ b/docker-compose.ci.yml@@ -5,7 +5,7 @@# `bun run ci:local:diff` (see scripts/ci-local.sh).## All services are pulled as `image:` (no build) so `docker compose pull`-# refreshes everything. #4479: the bun tag is PINNED (default 1.4.2, matching+# refreshes everything. #4479: the bun tag is PINNED (default 1.4.3, matching# the CI/build bun) instead of floating with `oven/bun:1` — a floating tag# resolved to a newer bun than the host and produced container-only behavior# skew during release gates. Override per-run with GBRAIN_CI_BUN_TAG (e.g.@@ -125,7 +125,7 @@ services:runner:# #4479: pinned to the host bun version by default (see header comment).- image: oven/bun:${GBRAIN_CI_BUN_TAG:-1.4.2}+ image: oven/bun:${GBRAIN_CI_BUN_TAG:-1.4.3}working_dir: /appenvironment:# The bind-mounted checkout may contain private developer test keys.diff --git a/docs/RELEASING.md b/docs/RELEASING.mdindex 4f50decaf8..4220476ad6 100644--- a/docs/RELEASING.md+++ b/docs/RELEASING.md@@ -533,7 +533,7 @@ the release the same, uses that version's `CHANGELOG.md` entry as the notes(`scripts/changelog-entry.sh`; falls back to a CHANGELOG link if the entry ismissing), and attaches the compiled binaries.-The executable build job pins Bun 1.4.2 and verifies the Darwin artifact with+The executable build job pins Bun 1.4.3 and verifies the Darwin artifact withstrict native `codesign` before publishing it. A source merge does not repairalready-published bad binaries; an affected release needs its own explicitlyapproved recovery and asset verification. The template and plugin publishingdiff --git a/docs/TESTING.md b/docs/TESTING.mdindex 7cef9df930..f7d4a61084 100644--- a/docs/TESTING.md+++ b/docs/TESTING.md@@ -8,7 +8,7 @@ lives in `CHANGELOG.md`; per-file detail lives in the test files and in## Quick start-Prerequisites: Bun 1.4.0 or newer (CI pins 1.4.2), Git, and bash. E2E needs+Prerequisites: Bun 1.4.0 or newer (CI pins 1.4.3), Git, and bash. E2E needsDocker for a `pgvector/pgvector:pg16` container and Python 3 on `PATH` (the E2Erunner validates Bun's JUnit reports with the standard-library XML parser).@@ -1763,7 +1763,7 @@ existing fence and timeline suites.`test/guarded-http.test.ts` and `test/guarded-http-tls.serial.test.ts` cover DNS,TLS identity and ports, redirects, deadlines, body limits, and cleanup. CI runs-these boundaries on Bun 1.4.0 and 1.4.2, audits root and admin dependencies, and+these boundaries on Bun 1.4.0 and 1.4.3, audits root and admin dependencies, andexecutes `scripts/test-gitleaks-config.sh` to prove fixture exceptions stillreport an unrelated secret in the same file. `scripts/scan-worktree-secrets.sh`scans tracked files plus new files eligible for commit; tracked ignored filesdiff --git a/docs/guides/authorization-upgrade.md b/docs/guides/authorization-upgrade.mdindex e416d2c654..6e26b3d698 100644--- a/docs/guides/authorization-upgrade.md+++ b/docs/guides/authorization-upgrade.md@@ -10,7 +10,7 @@ uses `gbrain jobs authorize-legacy` to preview selected work for review.## Runtime and outbound requests-Use Bun **1.4.0 or newer**; run `bun upgrade` on an older Bun. CI covers 1.4.0 and the build runtime, 1.4.2.+Use Bun **1.4.0 or newer**; run `bun upgrade` on an older Bun. CI covers 1.4.0 and the build runtime, 1.4.3.Compiled distributions include their Bun runtime.URL reachability checks, HTTP integration checks, and remote image loading usediff --git a/native/locks/README.md b/native/locks/README.mdindex 89d23079f8..d42e82404a 100644--- a/native/locks/README.md+++ b/native/locks/README.md@@ -42,7 +42,7 @@ All eight addons are checked in, so source installs work with`bun install --frozen-lockfile --ignore-scripts`. They support x64 and arm64on Linux glibc (2.17 ABI baseline), Linux musl, macOS (13.0 deploymenttarget), and Windows. The required CI matrix covers the repository's minimum-Bun 1.4.0 and the release compiler, Bun 1.4.2. OS compatibility+Bun 1.4.0 and the release compiler, Bun 1.4.3. OS compatibilityalso requires the selected Bun version's own platform minimums.Node-API headers and their upstream license are vendored from Node@@ -177,12 +177,12 @@ checks real process exclusion, crash handoff, retained files, cancellation,missing-addon failure and source/binary manifest integrity. Tests use isolatedtemporary paths and never open an operator datastore. The required`native-locks.yml` lane rebuilds and executes all eight OS/architecture/libc-targets on Bun 1.4.0 and 1.4.2, including native musl Docker userspace.+targets on Bun 1.4.0 and 1.4.3, including native musl Docker userspace.Every pair also runs `bun scripts/native/compiled-smoke.ts` to prove compiledprocess locking. Release CI verifies the shipped CLI embeds the matchingaddon and runs the compiled smoke on its two release platforms. Rebuildinstructions and the precise packaging/runtime distinction are above.-Release compilation uses Bun 1.4.2; strict Darwin codesign verification must+Release compilation uses Bun 1.4.3; strict Darwin codesign verification mustpass before publication. The native macOS 26.2 smoke is not macOS 27certification, and Linux fault injection is not a full native Windows backupcreate/restore test.diff --git a/scripts/capture-test-log.ts b/scripts/capture-test-log.tsindex 73d0ddca74..240332681d 100644--- a/scripts/capture-test-log.ts+++ b/scripts/capture-test-log.ts@@ -15,13 +15,15 @@ export interface CapturedFailure { file: string; test: string; arm: string; erro/*** The log shape of oven-sh/bun#34069 (fixed upstream by oven-sh/bun#44581,- * commit 13a98b0; in no Bun release as of 2026-10-09): a GC finalizer that+ * commit 13a98b0, first released in Bun 1.4.3): a GC finalizer that* runs while `Bun.spawnSync` waits leaves the runtime's private spawnSync* loop with a drifted poll count for the life of the process, after which* every synchronous child spawn with the matching poll count spins until the* test deadline kills it (`killed N dangling process`) and returns empty* output. Once it starts, the rest of the shard's sync-spawning tests time* out one after another, in files that have nothing to do with each other.+ * A spawn that passed a `timeout` comes back `spawnSync <cmd> ETIMEDOUT`+ * instead, often minutes before the first kill (#6586).*/export const BUN_SPAWNSYNC_POISONED = 'bun_spawnsync_poisoned';@@ -45,6 +47,9 @@ export class FailureCollector {private failuresSinceKill = 0;private timeoutsSinceKill = 0;private filesSinceKill = new Set<string>();+ /** #6586: the first `spawnSync <cmd> ETIMEDOUT` the run printed, with its file. */+ spawnTimeout: { file: string; line: string } | null = null;+ private announced = { spawnTimeout: false, poisoned: false };feed(raw: string): void {const line = raw.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, '');this.tail.push(line);@@ -60,6 +65,7 @@ export class FailureCollector {const bun = /^bun\stest v(\S+)/.exec(line);if (bun) this.bunVersion = bun[1];if (/^killed \d+ dangling process(?:es)?$/.test(line)) this.danglingKills++;+ if (!this.spawnTimeout && /\bspawnSync \S+ ETIMEDOUT\b/.test(line)) this.spawnTimeout = { file: this.file, line: line.trim().slice(0, 200) };const header = /^(?:::group::|##\[group\])?(\S.*\.test\.[cm]?[jt]sx?):$/.exec(line);if (header) { this.file = header[1]; this.fileFailures = 0; this.block = []; return; }if (/^=== .+ ===$/.test(line)) { this.arm = ''; this.fileFailures = 0; this.block = []; return; }@@ -103,7 +109,26 @@ export class FailureCollector {const bun = this.bunVersion ? `Bun v${this.bunVersion}` : 'this Bun';return `> **${BUN_SPAWNSYNC_POISONED}**: \`killed N dangling process\` was followed by ${this.timeoutsSinceKill} timed-out tests across ${this.filesSinceKill.size} files and no other kind of failure. `+ `That is the ${bun} runtime defect oven-sh/bun#34069: a GC finalizer that ran while an earlier \`Bun.spawnSync\` waited left the runtime's spawnSync loop with a drifted poll count, and from then on every synchronous child spawn (\`spawnSync\`, \`execSync\`, \`execFileSync\`) in this process spins until the test deadline and returns empty output. `- + `The failures below say nothing about the tests; rerun the job. Fixed upstream by oven-sh/bun#44581 (commit 13a98b0), in no Bun release as of 2026-10-09; TODOS.md tracks the Bun bump.`;+ + `The failures below say nothing about the tests; rerun the job. Fixed upstream by oven-sh/bun#44581 (commit 13a98b0), first released in Bun 1.4.3.`;+ }+ /**+ * #6586: notes to print the moment their evidence arrives, each once, so a job cancelled at its time limit (the+ * test process never exits, `render` never runs) still names the signature: an early warning on the first+ * `spawnSync <cmd> ETIMEDOUT`, and the verdict as soon as `poisoned()` holds.+ */+ takeLiveNotes(): string[] {+ const notes: string[] = [];+ const bun = this.bunVersion ? `Bun v${this.bunVersion}` : 'this Bun';+ if (this.spawnTimeout && !this.announced.spawnTimeout) {+ this.announced.spawnTimeout = true;+ notes.push(`> **${BUN_SPAWNSYNC_POISONED}?** ${this.spawnTimeout.file || '(before the first test file)'} printed \`${this.spawnTimeout.line.replace(/`/g, "'")}\`. `+ + `On ${bun}, a synchronous child spawn that times out is the first sign of oven-sh/bun#34069 (fixed in Bun 1.4.3): if \`killed N dangling process\` and timeouts in unrelated files follow, the shard is poisoned and the failures say nothing about the tests.`);+ }+ if (this.poisoned() && !this.announced.poisoned) {+ this.announced.poisoned = true;+ notes.push(this.poisonedNote());+ }+ return notes;}/** Markdown for $GITHUB_STEP_SUMMARY after a failed run. */render(job: string, out: string, code: number): string {@@ -114,7 +139,7 @@ export class FailureCollector {};const esc = (v: string) => v.replace(/([|`*_<[\]\\])/g, '\\$1').replace(/@/g, '@\u200b');const parts = [`### ${esc(job)}: exited ${code}`, '', `Full log: the job's uploaded timing log (${esc(out.split('/').pop() ?? out)}).`, ''];- const poisoned = this.poisonedNote();+ const poisoned = this.announced.poisoned ? '' : this.poisonedNote();if (poisoned) parts.push(poisoned, '');if (!this.failures.length) {parts.push('No `(fail)` lines were printed (setup, import or runner failure). Last log lines:', '', fence(this.tail), '');@@ -179,9 +204,16 @@ export async function captureTestLog(job: string, out: string, command: string[]if (!stream.write(data)) await once(stream, 'drain');};const failures = new FailureCollector();- const record = (line: string) => {+ const summaryFile = process.env.GITHUB_STEP_SUMMARY;+ const record = async (line: string) => {failures.feed(line);- return write(log, `${job}\tcapture\t${new Date().toISOString()} ${line}\n`);+ await write(log, `${job}\tcapture\t${new Date().toISOString()} ${line}\n`);+ for (const note of failures.takeLiveNotes()) {+ console.error(`capture-test-log: ${note.replace(/^> /, '').replace(/\*\*/g, '')}`);+ if (!summaryFile) continue;+ try { appendFileSync(summaryFile, `### ${job}: live note\n\n${note}\n\n`); }+ catch (error) { console.error(`capture-test-log: could not write the step summary: ${(error as Error).message}`); }+ }};const consume = async (source: Readable, mirror: Writable) => {const decoder = new TextDecoder();@@ -229,7 +261,7 @@ export async function captureTestLog(job: string, out: string, command: string[]if (code !== 0) {await record(`##[error]captured command exited ${code}`);if (failures.poisoned()) console.error(`capture-test-log: ${BUN_SPAWNSYNC_POISONED}: ${failures.danglingKills} dangling child kill(s) followed only by timeouts; see oven-sh/bun#34069 (fixed by oven-sh/bun#44581). Rerun the job.`);- const summary = process.env.GITHUB_STEP_SUMMARY;+ const summary = summaryFile;// B13: CI's --log-failed can come back empty; the step summary keeps the// failing tests, their first error block and a repro command regardless.if (summary) {diff --git a/scripts/ci-ubicloud.ts b/scripts/ci-ubicloud.tsindex da3bb01f8c..c9754eccfe 100755--- a/scripts/ci-ubicloud.ts+++ b/scripts/ci-ubicloud.ts@@ -261,7 +261,7 @@ async function main() {const bunVersion = process.env.GBRAIN_CI_BUN_TAG?? /oven\/bun:\$\{GBRAIN_CI_BUN_TAG:-([^}]+)\}/.exec(readFileSync(join(ROOT, "docker-compose.ci.yml"), "utf8"))?.[1]- ?? "1.4.2";+ ?? "1.4.3";// ── Teardown on every exit path ──────────────────────────────────────────const owner = sh("bash", [RUNNER, "owner"]).trim();diff --git a/scripts/setup-in-agent.sh b/scripts/setup-in-agent.shindex cd5806eadd..7c85883e88 100644--- a/scripts/setup-in-agent.sh+++ b/scripts/setup-in-agent.sh@@ -45,7 +45,7 @@ done# The runtime pin follows the repository's supported CI release. Repair reads# its prior version from the non-secret receipt; no mutable latest runtime URL.-gbrain_bun_version=1.4.2+gbrain_bun_version=1.4.3gbrain_source_ref=''if [[ -f "$gbrain_receipt" && "$gbrain_upgrade" == 0 ]]; thengbrain_prior_bun=$(sed -n 's/.*"bun_version": *"\([0-9.]*\)".*/\1/p' "$gbrain_receipt" | head -1)diff --git a/scripts/ubicloud/setup-ci-vm.sh b/scripts/ubicloud/setup-ci-vm.shindex ad2be68a6b..5e7fe655e4 100755--- a/scripts/ubicloud/setup-ci-vm.sh+++ b/scripts/ubicloud/setup-ci-vm.sh@@ -24,14 +24,14 @@# the packages are already installed, so apt is skipped and the image pulls# only confirm the baked images are current.#-# Knobs: SLOTS (default nproc), BUN_VERSION (default 1.4.2), GITLEAKS=0|1,+# Knobs: SLOTS (default nproc), BUN_VERSION (default 1.4.3), GITLEAKS=0|1,# CHECKOUT (default .), CHECKOUT_MARKER (default: none, checkout present),# PREPARE_IMAGE=1 (install packages and pull images only, then reset# cloud-init so the stopped VM can be captured as a machine image).set -euo pipefailSLOTS="${SLOTS:-$(nproc)}"-BUN_VERSION="${BUN_VERSION:-1.4.2}"+BUN_VERSION="${BUN_VERSION:-1.4.3}"GITLEAKS="${GITLEAKS:-0}"CHECKOUT="${CHECKOUT:-.}"CHECKOUT_MARKER="${CHECKOUT_MARKER:-}"diff --git a/src/core/persistence/sync-drain.ts b/src/core/persistence/sync-drain.tsindex 1d16e151c5..5f4e531ac3 100644--- a/src/core/persistence/sync-drain.ts+++ b/src/core/persistence/sync-drain.ts@@ -16,7 +16,7 @@ import type { LanesCap } from './sync-group.ts';import type { BrainEngine } from '../engine.ts';import type { SyncOpts, SyncResult } from '../../commands/sync.ts';import { OperationError } from '../ops/contract.ts';-import { getCode, isRetryableConnError, isStatementTimeoutError } from '../retry-matcher.ts';+import { getCode, getMessage, isRetryableConnError, isStatementTimeoutError } from '../retry-matcher.ts';import { currentRunDeadline, noteForwardProgress } from '../forward-progress.ts';import { serr } from '../console-prefix.ts';import { ERROR_CATALOGUE, type CatalogueName } from '../error-catalogue.ts';@@ -212,11 +212,15 @@ export function formatDuration(seconds: number): string {* #6340: whether `error` is the database connection going away under the pass (a pooler drop, a reset socket, a* timed-out write). `CONNECTION_DESTROYED` / `CONNECTION_CLOSED` are left out on purpose: #6329 classifies those as* this process's own settle of a cancelled statement after the owner's deadline, which becomes a- * `preparation_stalled` receipt on the stall path, never a transport retry.+ * `preparation_stalled` receipt on the stall path, never a transport retry. #6586: a child process that failed or timed out+ * (`spawnSync git ETIMEDOUT`, Node's `syscall: 'spawnSync git'`) is not the database going away either; it takes the+ * ordinary transient retry, with no reconnect and no "database connection dropped" line.*/export function isConnectionDrop(error: unknown): boolean {const code = getCode(error);if (code === 'CONNECTION_DESTROYED' || code === 'CONNECTION_CLOSED') return false;+ const syscall = error && typeof error === 'object' ? (error as { syscall?: unknown }).syscall : undefined;+ if ((typeof syscall === 'string' && syscall.startsWith('spawn')) || /\bspawn(?:Sync)? \S+ E[A-Z]+\b/.test(getMessage(error))) return false;return isRetryableConnError(error);}diff --git a/test/managed-sync-pinned-reads.test.ts b/test/managed-sync-pinned-reads.test.tsindex c0e6343a74..d9a26e2f35 100644--- a/test/managed-sync-pinned-reads.test.ts+++ b/test/managed-sync-pinned-reads.test.ts@@ -10,8 +10,13 @@* source below the repository root. Each arm gets a fresh brain; ids, times* and UUIDs are replaced by stable labels, blob ids and commits are compared* as they are. Runs on PGLite, and on Postgres when DATABASE_URL is set.+ *+ * #6586: a test that hits its deadline does not keep running behind the next+ * one. `afterEach` aborts the running arm's sync, puts PATH back and prints+ * the arm's Git calls (how long each took, which never finished), so a hang+ * says whether Git was slow or the runtime missed a finished child.*/-import { afterAll, beforeAll, expect, test } from 'bun:test';+import { afterAll, afterEach, beforeAll, expect, test } from 'bun:test';import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { delimiter, join } from 'node:path';@@ -141,16 +146,46 @@ async function dump(e: BrainEngine, root: string): Promise<Record<string, string};}-/** A `git` on PATH that logs each invocation, so an arm's Git process count is known. */-function gitCounter(dir: string): { path: string; calls: () => string[] } {+type GitCounter = { path: string; real: string; calls: () => string[]; timings: () => string };+/** A `git` on PATH that logs each invocation with its start and end, so an arm's Git process count and timing are known. */+function gitCounter(dir: string): GitCounter {const log = join(dir, 'git.log'), bin = join(dir, 'bin');mkdirSync(bin, { recursive: true });- const real = execFileSync('sh', ['-c', 'command -v git'], { encoding: 'utf8' }).trim();- writeFileSync(join(bin, 'git'), `#!/bin/sh\nprintf '%s\\n' "$*" >> '${log}'\nexec '${real}' "$@"\n`);+ const real = execFileSync('sh', ['-c', 'command -v git'], { encoding: 'utf8', timeout: 10_000 }).trim();+ writeFileSync(join(bin, 'git'), `#!/bin/sh\nprintf 'S %s %s %s\\n' "$$" "$(date +%s%N)" "$*" >> '${log}'\n'${real}' "$@"\ncode=$?\n`+ + `printf 'E %s %s %s\\n' "$$" "$(date +%s%N)" "$code" >> '${log}'\nexit $code\n`);chmodSync(join(bin, 'git'), 0o755);- return { path: `${bin}${delimiter}${process.env.PATH ?? ''}`, calls: () => existsSync(log) ? readFileSync(log, 'utf8').split('\n').filter(Boolean) : [] };+ const lines = () => existsSync(log) ? readFileSync(log, 'utf8').split('\n').filter(Boolean) : [];+ const ns = (value: string) => Number(value.replace(/N$/, '000000000'));+ return {+ path: `${bin}${delimiter}${process.env.PATH ?? ''}`, real,+ calls: () => lines().filter(line => line.startsWith('S ')).map(line => line.split(' ').slice(3).join(' ')),+ timings: () => {+ const open = new Map<string, { at: number; args: string }>(), done: Array<{ ms: number; args: string; code: string }> = [];+ for (const [kind, pid, at, ...rest] of lines().map(line => line.split(' '))) {+ if (kind === 'S') open.set(pid!, { at: ns(at!), args: rest.join(' ') });+ const started = kind === 'E' ? open.get(pid!) : undefined;+ if (started) { open.delete(pid!); done.push({ ms: Math.round((ns(at!) - started.at) / 1e6), args: started.args, code: rest[0]! }); }+ }+ const slowest = done.sort((a, b) => b.ms - a.ms).slice(0, 5).map(call => `${call.ms} ms (exit ${call.code}) git ${call.args}`);+ return [`${done.length} Git calls finished, ${open.size} never did (${real})`, ...slowest.map(line => ` slowest: ${line}`),+ ...[...open.values()].slice(0, 5).map(call => ` unfinished: git ${call.args}`)].join('\n');+ },+ };}+/** The arm or test in flight, so `afterEach` can stop it and say where it was when its test hit the deadline. */+let active: { label: string; stop: AbortController; counter: GitCounter | null } | null = null;+const PATH_AT_LOAD = process.env.PATH;+afterEach(() => {+ if (active) {+ console.error(`[pinned-reads] ${active.label} was still running at the test deadline; stopping it.\n${active.counter?.timings() ?? 'no Git counter on this platform'}`);+ active.stop.abort(new Error(`${active.label}: test deadline`));+ active = null;+ }+ process.env.PATH = PATH_AT_LOAD;+});+type Arm = { name: string; window: number | null };const ARMS: Arm[] = [{ name: 'per-entry', window: 0 }, { name: 'window', window: null }, { name: 'window-3', window: 3 }];@@ -162,6 +197,8 @@ async function runArm(backend: string, arm: Arm, open: () => Promise<{ engine: Bconst { engine, close } = await open();const counter = process.platform === 'win32' ? null : gitCounter(dir);const restore = __setPinnedWindowForTests(arm.window);+ const run = active = { label: `${backend} arm ${arm.name}`, stop: new AbortController(), counter };+ const signal = run.stop.signal;try {return await withEnv({ GBRAIN_HOME: join(dir, 'home'), ...(counter ? { PATH: counter.path } : {}) }, async () => {await engine.executeRaw('UPDATE persistence_brain SET enabled=false WHERE singleton=1');@@ -170,15 +207,24 @@ async function runArm(backend: string, arm: Arm, open: () => Promise<{ engine: Bawait engine.executeRaw('UPDATE persistence_brain SET enabled=true WHERE singleton=1');const outcomes: unknown[] = [], rounds: Array<Record<string, string[]>> = [];for (const round of [0, 1]) {+ signal.throwIfAborted();if (round) secondRound(root);- const result = await performSync(engine, { sourceId: SOURCE, noPull: true, noEmbed: true, drain: true });+ const result = await performSync(engine, { sourceId: SOURCE, noPull: true, noEmbed: true, drain: true, signal });+ signal.throwIfAborted();outcomes.push({ status: result.status, added: result.added, modified: result.modified, deleted: result.deleted, renamed: result.renamed, drain: result.drain?.outcome });rounds.push(await dump(engine, root));}await disposePersistenceConsumer(engine);+ signal.throwIfAborted();return { outcomes, rounds, calls: counter?.calls() ?? null, head: git(root, 'rev-parse', 'HEAD') };});- } finally { restore(); await close(); }+ } catch (error) {+ if (signal.aborted) return null;+ throw error;+ } finally {+ if (active === run) active = null;+ restore(); await close();+ }}beforeAll(async () => {@@ -198,7 +244,11 @@ for (const [backend, open] of backends) {test(`${backend}: windowed pinned reads leave the same rows as per-entry reads, with far fewer Git processes`, async () => {if (backend === 'postgres' && !process.env.DATABASE_URL) return;const results = [];- for (const arm of ARMS) results.push(await runArm(backend, arm, open));+ for (const arm of ARMS) {+ const result = await runArm(backend, arm, open);+ if (!result) return;+ results.push(result);+ }const [legacy, ...windowed] = results;expect(legacy!.outcomes).toEqual([expect.objectContaining({ drain: 'synced' }), expect.objectContaining({ drain: 'synced' })]);diff --git a/test/release-workflow.test.ts b/test/release-workflow.test.tsindex d83c6ea6b1..7767fde3e7 100644--- a/test/release-workflow.test.ts+++ b/test/release-workflow.test.ts@@ -29,7 +29,7 @@ describe('release.yml ↔ binary-self-update asset contract', () => {test('release compiler is covered by the required native runtime matrix', () => {const build = WORKFLOW.slice(WORKFLOW.indexOf(' build:'), WORKFLOW.indexOf(' release:'));const compiler = build.match(/bun-version:\s*(\S+)/)?.[1];- expect(compiler).toBe('1.4.2');+ expect(compiler).toBe('1.4.3');const native = readFileSync(join(ROOT, '.github/workflows/native-locks.yml'), 'utf8');const matrices = [...native.matchAll(/bun:\s*\[([^\]]+)\]/g)];expect(matrices).toHaveLength(4);diff --git a/test/scripts/capture-test-log.test.ts b/test/scripts/capture-test-log.test.tsindex 6351fca8af..fbadc0b972 100644--- a/test/scripts/capture-test-log.test.ts+++ b/test/scripts/capture-test-log.test.ts@@ -270,6 +270,63 @@ describe('bun_spawnsync_poisoned signature (oven-sh/bun#34069)', () => {expect(c.render('test (7)', '/tmp/unit.log', 1)).not.toContain(BUN_SPAWNSYNC_POISONED);});+ // #6586, run 38335527492 job 115101422707 (0030c078f, Bun 1.4.2): the drift showed first as the sync drain's git reads+ // returning `spawnSync git ETIMEDOUT`, ten minutes before the first kill; the job then hit its time limit, the test+ // process never exited, and nothing named the signature.+ const cancelledRun = [+ 'bun test v1.4.2 (744846f84)',+ '##[group]test/managed-sync-pinned-reads.test.ts:',+ '[sync] 0/? processed · database connection dropped (spawnSync git ETIMEDOUT); reconnecting and retrying in 5s (1 of 3)',+ '[sync] 9/28 processed · database connection dropped (spawnSync git ETIMEDOUT); reconnecting and retrying in 5s (1 of 3)',+ 'killed 1 dangling process',+ ...timeout('pglite: windowed pinned reads leave the same rows as per-entry reads, with far fewer Git processes', 600000),+ 'killed 1 dangling process', 'killed 1 dangling process',+ ...timeout("the Git top level is read once per root and run, and again when the checkout's .git changes", 60001),+ '##[group]test/dream.test.ts:', 'killed 1 dangling process',+ ...timeout('runDream --phase lint --phase orphans > runs both phases', 60000),+ ];++ it('warns live on the first spawnSync ETIMEDOUT and gives the verdict the moment it holds, each once', () => {+ const c = new FailureCollector();+ const notes: Array<[number, string]> = [];+ cancelledRun.forEach((line, index) => { c.feed(line); for (const note of c.takeLiveNotes()) notes.push([index, note]); });+ expect(notes).toHaveLength(2);+ expect(notes[0]![0]).toBe(2);+ expect(notes[0]![1]).toContain(`**${BUN_SPAWNSYNC_POISONED}?**`);+ expect(notes[0]![1]).toContain('test/managed-sync-pinned-reads.test.ts printed `[sync] 0/? processed · database connection dropped (spawnSync git ETIMEDOUT)');+ expect(notes[0]![1]).toContain('Bun v1.4.2');+ expect(notes[0]![1]).toContain('fixed in Bun 1.4.3');+ expect(notes[1]![0]).toBe(cancelledRun.length - 1);+ expect(notes[1]![1]).toContain(`**${BUN_SPAWNSYNC_POISONED}**`);+ expect(notes[1]![1]).toContain('3 timed-out tests across 2 files');+ expect(c.takeLiveNotes()).toEqual([]);+ // Already announced: the exit summary keeps the failures without repeating the verdict.+ expect(c.render('test (2)', '/tmp/unit.log', 143)).not.toContain(`**${BUN_SPAWNSYNC_POISONED}**`);+ const quiet = feed(['bun test v1.4.3 (abc)', '##[group]test/a.test.ts:', '(pass) a > spawns [1.00ms]']);+ expect(quiet.takeLiveNotes()).toEqual([]);+ });++ it('a job whose test process is still running already has the live note in its step summary', async () => {+ const f = fixture(`console.error('[sync] 0/? processed · database connection dropped (spawnSync git ETIMEDOUT); reconnecting and retrying in 5s (1 of 3)');+await new Promise(() => setInterval(() => {}, 1000));`);+ const summary = join(f.root, 'summary.md');+ const proc = Bun.spawn([process.execPath, SCRIPT, '--job', 'test (2)', '--out', f.output, '--', process.execPath, f.script], {+ stdout: 'ignore', stderr: 'pipe', env: { ...process.env, GITHUB_STEP_SUMMARY: summary },+ });+ try {+ const deadline = Date.now() + 15_000;+ while (!(existsSync(summary) && readFileSync(summary, 'utf8').includes(BUN_SPAWNSYNC_POISONED)) && Date.now() < deadline) await Bun.sleep(100);+ const text = existsSync(summary) ? readFileSync(summary, 'utf8') : '';+ expect(text).toContain('### test (2): live note');+ expect(text).toContain(`**${BUN_SPAWNSYNC_POISONED}?**`);+ expect(text).toContain('spawnSync git ETIMEDOUT');+ } finally {+ proc.kill('SIGTERM');+ await proc.exited;+ }+ expect(await new Response(proc.stderr).text()).toContain(`capture-test-log: ${BUN_SPAWNSYNC_POISONED}?`);+ }, 30000);+it('a non-timeout failure after the kill, or timeouts confined to one file, is left for its own diagnosis', () => {const mixed = feed([...poisonedRun,diff --git a/test/scripts/ci-pr-scope.test.ts b/test/scripts/ci-pr-scope.test.tsindex 7e94642277..e7c8ee7ef6 100644--- a/test/scripts/ci-pr-scope.test.ts+++ b/test/scripts/ci-pr-scope.test.ts@@ -51,16 +51,16 @@ describe('pull-request CI scope', () => {test('a pull request touching native paths runs every target on the primary Bun version', () => {const primary = nativeCells('primary');- expect(primary.native.sort()).toEqual(['darwin-arm64', 'darwin-x64', 'linux-arm64-glibc', 'linux-x64-glibc', 'win32-arm64', 'win32-x64'].map(target => `1.4.2/${target}`));- expect(primary.musl).toEqual(['1.4.2/linux-x64-musl', '1.4.2/linux-arm64-musl']);- expect(primary.console).toEqual(['windows-2022/1.4.2', 'windows-11-arm/1.4.2']);- expect(primary.dotnet).toEqual(['windows-2022/1.4.2', 'windows-11-arm/1.4.2']);+ expect(primary.native.sort()).toEqual(['darwin-arm64', 'darwin-x64', 'linux-arm64-glibc', 'linux-x64-glibc', 'win32-arm64', 'win32-x64'].map(target => `1.4.3/${target}`));+ expect(primary.musl).toEqual(['1.4.3/linux-x64-musl', '1.4.3/linux-arm64-musl']);+ expect(primary.console).toEqual(['windows-2022/1.4.3', 'windows-11-arm/1.4.3']);+ expect(primary.dotnet).toEqual(['windows-2022/1.4.3', 'windows-11-arm/1.4.3']);expect(primary.openclaw).toBe(true);});test('other pull requests keep one Linux smoke cell that runs the whole native step list', () => {const smoke = nativeCells('smoke');- expect(smoke).toEqual({ native: ['1.4.2/linux-x64-glibc'], musl: [], console: [], dotnet: [], openclaw: false });+ expect(smoke).toEqual({ native: ['1.4.3/linux-x64-glibc'], musl: [], console: [], dotnet: [], openclaw: false });});test('native path changes, an empty list and docs-only diffs classify as expected', () => {@@ -213,7 +213,7 @@ esac// #4479: a local gate or VM on a different Bun than CI produced// runtime-only skew, so every single-version pin moves together.test('every single-version Bun pin matches the primary, and matrices keep the oldest supported version', () => {- const primary = '1.4.2';+ const primary = '1.4.3';const read = (path: string) => readFileSync(join(root, path), 'utf8');const workflows = ['test', 'e2e', 'heavy-tests', 'macos-validation', 'persistence-validation', 'release', 'native-locks'].map(name => read(`.github/workflows/${name}.yml`)).join('\n');diff --git a/test/scripts/data-safety-native-workflow.test.ts b/test/scripts/data-safety-native-workflow.test.tsindex f20e0cf582..774778a165 100644--- a/test/scripts/data-safety-native-workflow.test.ts+++ b/test/scripts/data-safety-native-workflow.test.ts@@ -38,7 +38,7 @@ describe('data-safety native CI coverage', () => {expect(job['timeout-minutes']).toBe(5);expect(job.strategy['fail-fast']).toBe(false);expect(job.strategy.matrix.runner).toEqual(['windows-2022', 'windows-11-arm']);- expect(job.strategy.matrix.bun).toEqual(['1.4.0', '1.4.2']);+ expect(job.strategy.matrix.bun).toEqual(['1.4.0', '1.4.3']);expect(job.steps.some(entry => entry.run === 'bun scripts/native/verify.ts')).toBe(true);const step = job.steps.find(entry => entry.name === 'Compare native hidden-window launch behavior');expect(step).toBeDefined();@@ -73,7 +73,7 @@ describe('data-safety native CI coverage', () => {expect(job['timeout-minutes']).toBe(5);expect(job.strategy['fail-fast']).toBe(false);expect(job.strategy.matrix.runner).toEqual(['windows-2022', 'windows-11-arm']);- expect(job.strategy.matrix.bun).toEqual(['1.4.0', '1.4.2']);+ expect(job.strategy.matrix.bun).toEqual(['1.4.0', '1.4.3']);expect(job.steps.some(entry => entry.run === 'bun scripts/native/verify.ts')).toBe(true);const step = job.steps.find(entry => entry.name === 'Compare cmdlet and direct dotnet ACL programs');expect(step).toBeDefined();diff --git a/test/scripts/native-lock-prebuilds.test.ts b/test/scripts/native-lock-prebuilds.test.tsindex 48b54f1b21..93dec79103 100644--- a/test/scripts/native-lock-prebuilds.test.ts+++ b/test/scripts/native-lock-prebuilds.test.ts@@ -91,7 +91,7 @@ describe('native lock distribution integrity', () => {continue;}const matrix = job.strategy.matrix;- expect(matrix.bun).toEqual(['1.4.0', '1.4.2']);+ expect(matrix.bun).toEqual(['1.4.0', '1.4.3']);const script = job.steps.map(step => step.run ?? '').join('\n');expect(script).toContain('bun install --frozen-lockfile --ignore-scripts');const lockTests = script.split('\n').find(line => /\bbun test\b/.test(line) && line.includes('test/native-lock.test.ts'));@@ -108,7 +108,7 @@ describe('native lock distribution integrity', () => {}}expect(pairs.sort()).toEqual(Object.keys(manifest.artifacts)- .flatMap(target => ['1.4.0', '1.4.2'].map(bun => `${target}/${bun}`)).sort());+ .flatMap(target => ['1.4.0', '1.4.3'].map(bun => `${target}/${bun}`)).sort());expect(new Set(pairs).size).toBe(16);});});diff --git a/test/sync-drain-connection.test.ts b/test/sync-drain-connection.test.tsindex f6f69ecd84..fcc28b42b7 100644--- a/test/sync-drain-connection.test.ts+++ b/test/sync-drain-connection.test.ts@@ -12,6 +12,7 @@* this process's own settle of a cancelled statement, the stall path).*/import { describe, expect, spyOn, test } from 'bun:test';+import { spawnSync } from 'node:child_process';import { CONNECTION_RETRY_MS, CONNECTION_STRIKES, drainJsonFields, drainNext, formatDrainSummary, isConnectionDrop, runDrain } from '../src/core/persistence/sync-drain.ts';import { isRetryableConnError } from '../src/core/retry-matcher.ts';import { ERROR_CATALOGUE } from '../src/core/error-catalogue.ts';@@ -100,6 +101,36 @@ describe('runDrain over a dropping connection', () => {expect(result.drain!.connection!.last_error).toBe('write ECONNABORTED <url>');});+ // #6586: on Bun 1.4.2 a drifted spawnSync loop made the drain's git reads return `spawnSync git ETIMEDOUT`; the drain+ // printed "database connection dropped", reconnected the database and counted a strike toward `connection_lost`.+ test('a timed-out child process is not a drop: no reconnect, no "database connection dropped" line, a transient retry', async () => {+ const child = spawnSync('sh', ['-c', 'sleep 5'], { timeout: 50 }).error!;+ expect(child).toMatchObject({ code: 'ETIMEDOUT', syscall: 'spawnSync sh' });+ const git = Object.assign(new Error('spawnSync git ETIMEDOUT'), { code: 'ETIMEDOUT', syscall: 'spawnSync git', errno: -110 });+ for (const error of [child, git, new Error('reading notes/a.md: spawnSync git ETIMEDOUT'), Object.assign(new Error('spawn git ENOENT'), { code: 'ENOENT', syscall: 'spawn git' })]) {+ expect(isConnectionDrop(error)).toBe(false);+ }+ expect(isConnectionDrop(dropped('ETIMEDOUT'))).toBe(true);+ let passes = 0;+ const reconnects: unknown[] = [];+ const err = captureStderr();+ try {+ const result = await runDrain({ announce: true, progressMs: 1, backoffMs: 2, reconnect: async error => { reconnects.push(error); },+ pass: async (_signal, onProgress) => {+ if (++passes <= 2) throw git;+ onProgress({ phase: 'managed_sync.page_committed', bankedFiles: 1, total: 1 });+ return { ...base, managedCursor: { index: 1, total: 1 } };+ } });+ expect(result.drain).toMatchObject({ outcome: 'synced', passes: 3 });+ expect(reconnects).toEqual([]);+ expect(err.lines.filter(line => line.includes('database connection dropped'))).toEqual([]);+ } finally { err.restore(); }+ passes = 0;+ await expect(runDrain({ backoffMs: 2, reconnect: async error => { reconnects.push(error); }, pass: async () => { passes++; throw git; } })).rejects.toBe(git);+ expect(reconnects).toEqual([]);+ expect(passes).toBeGreaterThan(1);+ });+test('a settle-discard code is not a drop: the drain ends with the error as before', async () => {const destroyed = Object.assign(new Error('write CONNECTION_DESTROYED'), { code: 'CONNECTION_DESTROYED' });await expect(runDrain({ backoffMs: 2, pass: async () => { throw destroyed; } })).rejects.toBe(destroyed);diff --git a/tests/docker/Dockerfile b/tests/docker/Dockerfileindex 3aa716c98a..225308cade 100644--- a/tests/docker/Dockerfile+++ b/tests/docker/Dockerfile@@ -6,7 +6,7 @@## BUN_IMAGE is overridable so the harness can track CI's pinned bun version# (see .github/workflows/heavy-tests.yml setup-bun) without editing this file.-ARG BUN_IMAGE=oven/bun:1.4.2+ARG BUN_IMAGE=oven/bun:1.4.3FROM ${BUN_IMAGE}# git drives the interview/render/repo phases; ca-certificates is build-timediff --git a/tests/docker/bootstrap-e2e.sh b/tests/docker/bootstrap-e2e.shindex 7c1e167655..f5e54564bb 100644--- a/tests/docker/bootstrap-e2e.sh+++ b/tests/docker/bootstrap-e2e.sh@@ -14,7 +14,7 @@# keyless verify on a temp PGLite brain.## Env knobs:-# GBRAIN_E2E_BUN_IMAGE base image override (default oven/bun:1.4.2 —+# GBRAIN_E2E_BUN_IMAGE base image override (default oven/bun:1.4.3 —# keep in step with heavy-tests.yml's bun-version)# GBRAIN_E2E_IMAGE_TAG image tag override (default gbrain-bootstrap-e2e:local)set -euo pipefail@@ -23,7 +23,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"INNER="$SCRIPT_DIR/bootstrap-e2e-inner.sh"DOCKERFILE="$SCRIPT_DIR/Dockerfile"-BUN_IMAGE="${GBRAIN_E2E_BUN_IMAGE:-oven/bun:1.4.2}"+BUN_IMAGE="${GBRAIN_E2E_BUN_IMAGE:-oven/bun:1.4.3}"IMAGE_TAG="${GBRAIN_E2E_IMAGE_TAG:-gbrain-bootstrap-e2e:local}"DRY_RUN=0