From 37550ccb9aca50c1949365405da4df24114faac1 Mon Sep 17 00:00:00 2001 From: KB Date: Wed, 22 Jul 2026 10:42:20 +0530 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20bump=20Bun=201.3.5=20=E2=86=92=201?= =?UTF-8?q?.3.14=20to=20fix=20CI=20SIGILL=20segfault?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI's Test job (bun test) has crashed on every run since ~2026-07-11 with a Bun panic, not a test failure: Bun v1.3.5 (1e86cebd) · Linux Kernel v6.17.0 · glibc v2.39 panic(main thread): Segmentation fault at address 0x18 oh no: Bun has crashed. This indicates a bug in Bun, not your code. error: script "test" terminated by signal SIGILL (Illegal instruction) The GitHub runner image now ships kernel 6.17.0, on which the pinned Bun 1.3.5 build hits an illegal-instruction crash before any test assertion runs. It is environment-wide, not code-specific: an unrelated dependabot PR (github_actions bump, zero source changes) crashes with the identical signature. Bump the pinned toolchain (packageManager + @types/bun catalog) to the latest stable 1.3.14. Validated locally on 1.3.14: full backend suite 1162 pass / 0 fail, forced (no-cache) typecheck 7/7. --- bun.lock | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bun.lock b/bun.lock index 2529b34f..2e88c728 100644 --- a/bun.lock +++ b/bun.lock @@ -317,7 +317,7 @@ "@tailwindcss/vite": "4.1.11", "@tsconfig/bun": "1.0.9", "@tsconfig/node22": "22.0.2", - "@types/bun": "1.3.5", + "@types/bun": "1.3.14", "@types/luxon": "3.7.1", "@types/node": "22.13.9", "@types/semver": "7.7.1", @@ -908,7 +908,7 @@ "@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="], - "@types/bun": ["@types/bun@1.3.5", "", { "dependencies": { "bun-types": "1.3.5" } }, "sha512-RnygCqNrd3srIPEWBd5LFeUYG7plCoH2Yw9WaZGyNmdTEei+gWaHqydbaIRkIkcbXwhBT94q78QljxN0Sk838w=="], + "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], "@types/compression": ["@types/compression@1.8.1", "", { "dependencies": { "@types/express": "*", "@types/node": "*" } }, "sha512-kCFuWS0ebDbmxs0AXYn6e2r2nrGAb5KwQhknjSPSPgJcGd8+HVSILlUyFhGqML2gk39HcG7D1ydW9/qpYkN00Q=="], @@ -1046,7 +1046,7 @@ "bun-pty": ["bun-pty@0.4.4", "", {}, "sha512-WK4G6uWsZgu1v4hKIlw6G1q2AOf8Rbga2Yr7RnxArVjjyb+mtVa/CFc9GOJf+OYSJSH8k7LonAtQOVeNAddRyg=="], - "bun-types": ["bun-types@1.3.5", "", { "dependencies": { "@types/node": "*" } }, "sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw=="], + "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], diff --git a/package.json b/package.json index 480e3413..8f9a3b81 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "AI-powered CLI for ML research and development workflows", "private": true, "type": "module", - "packageManager": "bun@1.3.5", + "packageManager": "bun@1.3.14", "scripts": { "dev": "bun run --cwd backend/cli --conditions=browser src/index.ts", "dev:local": "SYNSC_API_BASE=http://localhost:8001 SYNSC_AUTH_URL=http://localhost:8001/auth/cli bun run --cwd backend/cli --conditions=browser src/index.ts", @@ -26,7 +26,7 @@ "tooling/sdk/js" ], "catalog": { - "@types/bun": "1.3.5", + "@types/bun": "1.3.14", "@octokit/rest": "22.0.0", "@hono/zod-validator": "0.4.2", "ulid": "3.0.1", From 254241e3bb524a669eefb725f8ac09d413cc23b3 Mon Sep 17 00:00:00 2001 From: KB Date: Wed, 22 Jul 2026 10:58:16 +0530 Subject: [PATCH 2/2] ci: pin Test job to ubuntu-24.04 instead of bumping Bun Revert the Bun 1.3.5 -> 1.3.14 bump from the previous commit and fix the root cause instead: ubuntu-latest moved to a kernel-6.17 image on which 'bun test' misbehaves (1.3.5 SIGILLs, 1.3.14 mis-resolves an ESM export from @modelcontextprotocol/sdk). Every other CI job passes on 1.3.5 on the same image; only the test runner on kernel 6.17 is affected, and an unrelated dependabot PR crashed identically. Pin the Test job to ubuntu-24.04, keeping the tested Bun 1.3.5 toolchain unchanged. Net change vs main is the single runs-on line. --- .github/workflows/ci.yml | 5 ++++- bun.lock | 6 +++--- package.json | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d0ba64d..431b416a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,10 @@ jobs: test: name: Test - runs-on: ubuntu-latest + # Pinned off ubuntu-latest: its image moved to kernel 6.17, on which + # `bun test` SIGILLs (Bun 1.3.5) / mis-resolves ESM (1.3.14). The 24.04 + # image runs the pinned toolchain cleanly. See #200. + runs-on: ubuntu-24.04 timeout-minutes: 20 steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 diff --git a/bun.lock b/bun.lock index 2e88c728..2529b34f 100644 --- a/bun.lock +++ b/bun.lock @@ -317,7 +317,7 @@ "@tailwindcss/vite": "4.1.11", "@tsconfig/bun": "1.0.9", "@tsconfig/node22": "22.0.2", - "@types/bun": "1.3.14", + "@types/bun": "1.3.5", "@types/luxon": "3.7.1", "@types/node": "22.13.9", "@types/semver": "7.7.1", @@ -908,7 +908,7 @@ "@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="], - "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], + "@types/bun": ["@types/bun@1.3.5", "", { "dependencies": { "bun-types": "1.3.5" } }, "sha512-RnygCqNrd3srIPEWBd5LFeUYG7plCoH2Yw9WaZGyNmdTEei+gWaHqydbaIRkIkcbXwhBT94q78QljxN0Sk838w=="], "@types/compression": ["@types/compression@1.8.1", "", { "dependencies": { "@types/express": "*", "@types/node": "*" } }, "sha512-kCFuWS0ebDbmxs0AXYn6e2r2nrGAb5KwQhknjSPSPgJcGd8+HVSILlUyFhGqML2gk39HcG7D1ydW9/qpYkN00Q=="], @@ -1046,7 +1046,7 @@ "bun-pty": ["bun-pty@0.4.4", "", {}, "sha512-WK4G6uWsZgu1v4hKIlw6G1q2AOf8Rbga2Yr7RnxArVjjyb+mtVa/CFc9GOJf+OYSJSH8k7LonAtQOVeNAddRyg=="], - "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], + "bun-types": ["bun-types@1.3.5", "", { "dependencies": { "@types/node": "*" } }, "sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw=="], "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], diff --git a/package.json b/package.json index 8f9a3b81..480e3413 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "AI-powered CLI for ML research and development workflows", "private": true, "type": "module", - "packageManager": "bun@1.3.14", + "packageManager": "bun@1.3.5", "scripts": { "dev": "bun run --cwd backend/cli --conditions=browser src/index.ts", "dev:local": "SYNSC_API_BASE=http://localhost:8001 SYNSC_AUTH_URL=http://localhost:8001/auth/cli bun run --cwd backend/cli --conditions=browser src/index.ts", @@ -26,7 +26,7 @@ "tooling/sdk/js" ], "catalog": { - "@types/bun": "1.3.14", + "@types/bun": "1.3.5", "@octokit/rest": "22.0.0", "@hono/zod-validator": "0.4.2", "ulid": "3.0.1",