fix(docker-bun): strip Node SQLite addon from runtime - #11482
Merged
diegosouzapw merged 1 commit intoAug 25, 2026
Merged
Conversation
TheDemonTuan
force-pushed
the
fix/bun-runtime-strip-native
branch
from
August 25, 2026 08:36
f2bdf14 to
1513500
Compare
diegosouzapw
force-pushed
the
fix/bun-runtime-strip-native
branch
from
August 25, 2026 23:33
1513500 to
4e2bb5c
Compare
diegosouzapw
merged commit Aug 25, 2026
7b7196f
into
diegosouzapw:release/v3.8.51
4 of 7 checks passed
diegosouzapw
pushed a commit
that referenced
this pull request
Aug 25, 2026
…e Webpack fallback (#11471) Validated in a combined 4-PR batch worktree off release/v3.8.51 tip (last of the Bun-native cluster; conflicted against the already-merged #11482's Dockerfile.bun hunk in the shared worktree — resolved by taking this PR's configurable ARG/ENV shape, which is exactly what it's designed to replace, and pushed the same resolution to this branch). - Focused test: resolve-next-build-bundler-flag.test.mjs — 3/3 pass, part of batch's 5/5 node:test run - typecheck:core, file-size, changelog-integrity, complexity, cognitive-complexity — all OK - Full-repo lint: 228 pre-existing dashboard react-hooks/* findings, unrelated to this diff Thanks for validating with both node --test and bun test — good practice given the dual-runtime surface this touches.
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.
Summary
better-sqlite3package into the Bun runnerbetter-sqlite3copy after standalone assemblybetter_sqlite3.nodebinary remainsRoot cause
An ARM64 Bun container reached
bun:sqlite, then aborted during startup withNAPI FATAL ERROR: Error::New napi_get_last_error_info. Isolated probes against the exact failed image showed onlybetter-sqlite3reproduced the native abort;keytar,onnxruntime-node,sqlite-vec,tls-client-node,wreq-js, andsharpall imported successfully. A JavaScripttry/catchcannot recover from this process-level abort.This PR is intentionally Bun-only. It does not change Node source compatibility or unrelated deployment/Caddy automation. It complements #11468 and #11470 by ensuring no additional standalone copy can still be loaded after the Bun-native SQLite startup path is selected.
Validation
node --test tests/unit/build/bun-runtime-native-addon.test.mjs/healthzpassed, and blue/green deployment completed withoutNAPI FATAL ERROR