Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
636 commits
Select commit Hold shift + click to select a range
9dc6c37
ci: quarantine worker transfer-terminate tests on ASAN; widen node-ne…
robobun Jul 19, 2026
3821241
http: prevent double final-result delivery after client failure (#32015)
robobun Jul 19, 2026
99fc2f8
redis: fix heap-use-after-free from refcount over-release (#34714)
robobun Jul 19, 2026
0b0d17a
Bun.serve(http3): fix heap use-after-free when client resets a stream…
robobun Jul 20, 2026
0a17ce6
test(bun:jsc): bound profile() workload by wall-clock so the sampler …
robobun Jul 20, 2026
bb095b3
Upgrade WebKit to 2603e9eb41f0 (#34373)
robobun Jul 20, 2026
b82a43f
Delete src/ptr/owned.rs (#34763)
robobun Jul 20, 2026
5c28061
Delete dead porting-era type aliases and stub modules (#34767)
robobun Jul 20, 2026
f64cade
Enable bun:ffi (TinyCC) on Windows ARM64 (#33696)
Jarred-Sumner Jul 20, 2026
02fde87
bun create: stop busy-waiting on the git futex (#34764)
robobun Jul 20, 2026
84452b8
node:path: fix win32.resolve buffer aliasing for drive-relative paths…
robobun Jul 20, 2026
a3b82c4
process.dlopen: return error instead of panicking on over-length path…
robobun Jul 20, 2026
86fc072
fix(timer): use monotonic QPC for Timespec::now on Windows (#34779)
robobun Jul 20, 2026
0278471
sys(windows): derive NtCreateFile disposition from O_TRUNC, not acces…
robobun Jul 20, 2026
f6c9474
no-orphans: implement the Windows arm (Job Object + parent-process wa…
robobun Jul 20, 2026
a9c7037
Delete more dead porting-era type aliases (#34778)
robobun Jul 20, 2026
01e913e
ci: annotate steps that fail before the runner/build reporter complet…
robobun Jul 20, 2026
57e841e
dns: drop unreachable Result<_, AllocError> from to_list/address_to_s…
robobun Jul 20, 2026
5f95eee
shell_parser: drop six redundant/tautological predicates (#34789)
robobun Jul 20, 2026
6f64d7d
js_parser: drop Result from infallible new_symbol/store_name_in_ref/f…
robobun Jul 20, 2026
c06ac56
js_printer: collapse redundant matches!() + match/unreachable!() into…
robobun Jul 20, 2026
a190372
semver: drop redundant store and two dead guards in the parser (#34804)
robobun Jul 20, 2026
5c15b1d
sql: drop redundant clamps and a zero-fill of a zero-initialized buff…
robobun Jul 20, 2026
505e8e3
Drop dead bumpalo dep and consolidate duplicate type-alias re-exports…
robobun Jul 20, 2026
822ef64
runtime/cli: drop redundant guards already implied by the enclosing b…
robobun Jul 20, 2026
8085db4
server: drop unreachable None re-checks after is_aborted_or_ended() a…
robobun Jul 20, 2026
1ff1454
rust: drop redundant cfg!(debug_assertions) wrappers around debug_ass…
robobun Jul 20, 2026
1f71ec3
Record the running CLI command in crash report trace strings (#31688)
robobun Jul 20, 2026
9f4682d
shell: make bare `cd` change to $HOME (#34822)
robobun Jul 20, 2026
76824e9
js_parser: skip constant folding of radix BigInt literals (#34823)
robobun Jul 20, 2026
3979cbe
windows: run Bun inside an AppContainer (lowbox token) (#33119)
dylan-conway Jul 20, 2026
7b1fb7f
node:http: reject Content-Length / Transfer-Encoding in request trail…
robobun Jul 20, 2026
6062448
node:http2: reject request header blocks that fail RFC 9113 8.3.1 (em…
robobun Jul 20, 2026
6b73f6b
Remove dead code from shell_parser and ini (#34837)
robobun Jul 20, 2026
fcaada4
http: drop no-op Vec::clear and dead Option branches in client state …
robobun Jul 20, 2026
4572110
standalone: route madvise hint logging through a scoped logger (#34807)
robobun Jul 20, 2026
f2f7da1
jsc/bindings: remove redundant null/type re-checks after guaranteed-n…
robobun Jul 20, 2026
5813d50
bundler: drop unreachable NonNull checks and duplicate lookup (#34791)
robobun Jul 20, 2026
bc73ed2
usockets: round epoll_pwait fallback timeout up and subtract elapsed …
robobun Jul 20, 2026
2720297
node:http: emit 'pause' on req.socket once an unread body fills the I…
robobun Jul 20, 2026
b18d5df
redis: encapsulate EventLoopTimer keep-alive refs in RefCountedTimer …
robobun Jul 20, 2026
b284bbb
resolver: guard tsconfig paths wildcard match against overlapping pre…
robobun Jul 20, 2026
cb1e825
win: high-resolution event-loop timer via waitable timer + IOCP (#34834)
robobun Jul 20, 2026
432ee31
node: per-stream console inspectOptions, connect error Local suffix, …
cirospaciari Jul 20, 2026
a4c1ddd
sys(windows): classify reparse points by tag; only follow name surrog…
robobun Jul 20, 2026
257a37d
module: validate enableCompileCache() arguments, fix _resolveFilename…
cirospaciari Jul 21, 2026
04708f7
install: coalesce TarballStream drain wakes on the HTTP thread (#34849)
robobun Jul 21, 2026
c3d184f
sql(postgres): make finish_request's per-class counter decrement idem…
robobun Jul 21, 2026
a3daa75
node:crypto: ML-DSA and ML-KEM key support (+7 tests) (#34549)
cirospaciari Jul 21, 2026
97935c2
perf_hooks: export the real performance object and fix entry prototyp…
cirospaciari Jul 21, 2026
aa21e21
test: audit ASAN quarantine lists; remove 77 stale entries (#34741)
robobun Jul 21, 2026
483bb32
node:http2: propagate the user's exception when a header value's toSt…
robobun Jul 21, 2026
5dbf95f
postgres: reject out-of-range base-10000 digit words in binary NUMERI…
robobun Jul 21, 2026
602db99
logger: count JS/TS/TOML diagnostic columns in UTF-16 code units (#34…
robobun Jul 21, 2026
c07aae7
install: fix streaming tarball extraction failing when first HTTP chu…
robobun Jul 21, 2026
4b868ee
shell: treat comma-less brace groups as literal instead of truncating…
robobun Jul 21, 2026
76a7700
shell: keep trailing empty variant when parsing nested brace groups (…
robobun Jul 21, 2026
667074a
cli(update -i): clamp header help-text budget for terminals narrower …
robobun Jul 21, 2026
2d6899d
yaml: reject NUL byte (U+0000) instead of silently truncating input (…
robobun Jul 21, 2026
3d9617a
boringssl: route OPENSSL_malloc to mimalloc on macOS and Windows (#34…
robobun Jul 21, 2026
e84164b
webcrypto: raise Node v26.3.0 compat to 57% of the upstream suite (13…
cirospaciari Jul 21, 2026
6e446d4
Remove dead code from bun_sourcemap (#34878)
robobun Jul 21, 2026
0550d4e
uws: cursor-based BackPressure buffer so erase() is a pointer bump (#…
robobun Jul 21, 2026
faa80b5
sys: hint POSIX_FADV_SEQUENTIAL on the copy-file read/write fallback …
robobun Jul 21, 2026
9e05560
test: enable stale todo tests that now pass (#34857)
robobun Jul 21, 2026
9aaa44e
strings: call highway_memmem directly on all platforms (#34820)
robobun Jul 21, 2026
13f5dec
node: +17 upstream Node v26.3.0 tests (duplexPair peer teardown, NODE…
cirospaciari Jul 21, 2026
e96821b
fs: wait for in-flight write before closing fd in WriteStream._destro…
robobun Jul 21, 2026
2b90109
test(shell): align brace.test.ts nested-empty-variant cases with bash…
robobun Jul 21, 2026
5b98630
util/types: fix isBigIntObject/isSymbolObject/isBoxedPrimitive for mo…
robobun Jul 21, 2026
e550f2c
ci: single arm64 debian-13 build host; ThinLTO everywhere; baseline-o…
robobun Jul 21, 2026
98fb0ac
bun:sqlite: re-check db handle after serialize() name coercion (#34962)
robobun Jul 21, 2026
b5036bc
clean up
Jarred-Sumner Jul 21, 2026
f759d1e
Fix formatting
Jarred-Sumner Jul 21, 2026
6593ca2
child_process: apply kernel backpressure to stdout/stderr pipes (#34971)
robobun Jul 21, 2026
f599a1b
Update upload-release.sh
Jarred-Sumner Jul 21, 2026
78186c6
process: reallyExit() should not emit 'exit' listeners (#34997)
robobun Jul 21, 2026
57fdd55
socket/websocket: guard the error-handler dispatch against re-enterin…
robobun Jul 21, 2026
512bebc
Deflake test/js/bun/http/serve-response-stream-sink-leak.test.ts
Jarred-Sumner Jul 21, 2026
22515d1
Update no-validate-exceptions.txt
Jarred-Sumner Jul 21, 2026
eb0f4bc
Delete unnecessary test
Jarred-Sumner Jul 21, 2026
0ec6fbc
Update no-validate-exceptions.txt
Jarred-Sumner Jul 21, 2026
48362e5
node:http2: remoteSettings/localSettings return {} while connecting, …
robobun Jul 21, 2026
85ddc95
Remove ~39k lines of dead Rust across the workspace (#35002)
Jarred-Sumner Jul 21, 2026
f0d2eaf
test(http): gate idle-WebSocket CPU check on the quietest sample, not…
robobun Jul 22, 2026
31a5f12
Bun.serve dev HTML route: frame the 405 response so non-GET requests …
robobun Jul 22, 2026
03eb4be
Bun.spawn: close stdout/stderr pipes after a timeout kill (#35012)
robobun Jul 22, 2026
45f21e5
WebSocket: reject ping()/pong() payloads over 125 bytes (client, Bun.…
robobun Jul 22, 2026
410abd3
Remove dead code from webcore C++ bindings (#35052)
robobun Jul 22, 2026
12b30c3
fetch: response.body.cancel() on an unread body aborts the transfer (…
robobun Jul 22, 2026
96e908f
Update REVIEW.md
Jarred-Sumner Jul 22, 2026
1ea0132
ci: stop requiring root in the release upload step
Jarred-Sumner Jul 22, 2026
5f68b3d
Bun.serve: throw RangeError for out-of-range port instead of silently…
robobun Jul 22, 2026
3a4369b
timer: assign epoch on heap insert so AbortSignal.timeout fires in cr…
robobun Jul 22, 2026
fdc63b7
build: split-debuginfo=unpacked for dev; add rust:timings profiler (#…
robobun Jul 22, 2026
4915f42
node:http: drain already-written response bytes when the peer half-cl…
robobun Jul 22, 2026
74c91fd
timers: O(n^2) GC sweep when many timers had their numeric id read (#…
robobun Jul 22, 2026
e43c793
Windows: handle uv_poll_init_socket failure in us_poll_start (#35028)
robobun Jul 22, 2026
3c77c5a
build: link internal JS module sources via .incbin instead of a 6 MB …
robobun Jul 22, 2026
1ebff2f
events: make addAbortListener resist stopImmediatePropagation (#33377)
robobun Jul 22, 2026
bbf0e3f
fetch: reject truncated compressed bodies on close-delimited response…
robobun Jul 22, 2026
47597ab
URL: defer searchParams href sync to next read (fix O(N^2) append) (#…
robobun Jul 22, 2026
ca1ddd7
deps: bump libuv for the win pipe FileModeInformation error-path fix …
robobun Jul 22, 2026
7e06b7f
Delete flaky GC-observation node tests (#35182)
Jarred-Sumner Jul 22, 2026
a1f6de1
cron: interpret Bun.cron.parse() and in-process schedules in local ti…
robobun Jul 22, 2026
f262074
Bun.serve: evaluate If-Match / If-Unmodified-Since on static and file…
robobun Jul 22, 2026
5999448
Remove dead code from bun_options_types and bun_http_types (#35152)
robobun Jul 22, 2026
35b9d31
spawn(windows): close uv.Pipe source in PipeReader::deinit regardless…
robobun Jul 22, 2026
80b9108
usockets: wait for the TLS spill at the HTTP close gates; drain a lar…
robobun Jul 22, 2026
d608ebf
test(fetch): assign url in beforeAll, not afterAll, in 'does not send…
robobun Jul 22, 2026
708525f
sql(postgres): decode 'infinity'::date/timestamp to the Number ±Infin…
robobun Jul 22, 2026
e4a42be
cli: gate bun init / update -i prompts on stdin isatty (#35165)
robobun Jul 22, 2026
fc19355
WebSocket client: re-arm the opening-handshake timeout after TCP conn…
robobun Jul 22, 2026
6c24213
More .gitignore
Jarred-Sumner Jul 22, 2026
c36479c
test(socket.io): drop 200ms guard timers in connection-state-recovery…
robobun Jul 22, 2026
f3bdc54
Bun.serve: don't panic reading server.address/port when getsockname()…
robobun Jul 22, 2026
7d913b4
windows_sys: gate #[link] behind cfg(windows) so non-Windows cargo te…
robobun Jul 22, 2026
68fcf0b
sql(postgres): pin DateStyle=ISO in StartupMessage so server defaults…
robobun Jul 22, 2026
0550f3f
test: retry UDP+TCP port pairing in dns-tcp-bidirectional-poll fixtur…
robobun Jul 22, 2026
2cc3658
http: compare URL scheme case-insensitively for proxy and redirect Lo…
robobun Jul 22, 2026
bf771c7
bun:ffi: decode double-encoded JSValues in JSVALUE_TO_INT32 (#34653)
robobun Jul 22, 2026
4b3329b
fetch: allow a request body on OPTIONS (#34920)
robobun Jul 22, 2026
2c05715
compile: seed inject() temp name with fast_random() to avoid cross-pr…
robobun Jul 22, 2026
4b72416
fetch: release the buffered response body and error the reader when a…
robobun Jul 22, 2026
c0497df
Cascade out dead items left behind by #35002 (#35019)
robobun Jul 22, 2026
e72299b
node:http: restore req 'error' ECONNRESET and res-before-req 'close' …
robobun Jul 22, 2026
52f1d6e
TextDecoder: reject primitive options per WebIDL dictionary conversio…
robobun Jul 22, 2026
0022c07
test(bun-serve-static-stress): cut ASAN iterations 12->4, add delta +…
robobun Jul 22, 2026
e8c0b94
test: batch syntax.test.ts fixtures into two driver processes (#35199)
robobun Jul 22, 2026
fd98aaf
test(node:http): cut node-http-uaf.test.ts ASAN workload, assert subp…
robobun Jul 23, 2026
44aeb62
watcher: return Err from start() when thread spawn fails instead of p…
robobun Jul 23, 2026
83436fe
WebSocket: reject unsupported proxy protocols instead of sending HTTP…
robobun Jul 23, 2026
750a510
Bun.CryptoHasher: reject odd-length hex in update() (#35188)
robobun Jul 23, 2026
cc40d78
node:tls: sync the test suite to Node v26.3.0 and fix the gaps it sur…
cirospaciari Jul 23, 2026
a1e6a45
bun test --reporter=junit: fix broken XML, double-escaped classname, …
robobun Jul 23, 2026
3a3f5d1
crash_handler: catch SIGABRT and SIGTRAP so native aborts and traps g…
robobun Jul 23, 2026
b5d5017
test(http): share one fixture server across serve-body-leak scenarios…
robobun Jul 23, 2026
e383be4
Update upload-release.sh
Jarred-Sumner Jul 23, 2026
3da0cc4
test: speed up bun-install-security-provider large-payload IPC test (…
robobun Jul 23, 2026
aaae06a
test: drop dlopen-non-object-exports.test.ts (duplicate of dlopen-dup…
robobun Jul 23, 2026
6bcc388
sql(postgres): enforce the Int32 message length as a frame boundary (…
robobun Jul 23, 2026
5ed042b
runtime: make CSS default export {} to match bun build (#35163)
robobun Jul 23, 2026
ca68362
spawn(windows): tear down stdio PipeReader when start_with_current_pi…
robobun Jul 23, 2026
2a9dc0a
FileReader: close the fd when an abandoned Bun.file().stream() reader…
robobun Jul 23, 2026
1812844
Bun.serve: drain a tryEnd response tail before closing on peer FIN (#…
robobun Jul 23, 2026
df2c89b
Remove dead code from bun_hash (#35225)
robobun Jul 23, 2026
feee846
build: trace exact function entries for the symbol order file, and or…
robobun Jul 23, 2026
4e5e9cd
node:tls,node:net: follow-ups from the v26.3.0 review (error routing,…
cirospaciari Jul 23, 2026
4ce04b8
fs: add 23 Node v26.3.0 tests (node:fs 95.0% → 97.5%), Utf8Stream, an…
cirospaciari Jul 23, 2026
f4d3cb3
deps(win): pick up libuv error-propagation fixes (oven-sh/libuv#11) (…
robobun Jul 23, 2026
892b1da
crash_handler(windows): walk the fault CONTEXT via RtlVirtualUnwind (…
robobun Jul 23, 2026
a22f771
ServerWebSocket: subscribe/unsubscribe return false on closed socket …
robobun Jul 23, 2026
9e799f5
windows: make us_loop_pump poll IOCP for unref'd handles (POSIX parit…
robobun Jul 23, 2026
0870c7c
bundler: BFS the code-splitting reachability walk for O(V+E) on share…
robobun Jul 23, 2026
f133f9d
Remove dead code from bun_semver and bun_semver_jsc (#35293)
robobun Jul 23, 2026
79ee451
crash_handler(windows): let foreign first-chance AVs reach SEH via JS…
robobun Jul 23, 2026
53eaebf
blob(windows): fix segfault in Bun.write when source file does not ex…
robobun Jul 23, 2026
773be9d
FileSink: reject the pending write() when the deferred auto-flush hit…
robobun Jul 23, 2026
c08d509
http3: stop one dead peer from stalling the shared fetch client engin…
robobun Jul 23, 2026
b39a270
child_process: don't leak the abort listener on options.signal when s…
robobun Jul 23, 2026
43372bd
Bun.Glob: preserve leading `**` as globstar under `!` negation (#33759)
robobun Jul 23, 2026
b57c7ae
test_runner: honor negated concurrentTestGlob patterns and key file i…
robobun Jul 24, 2026
5cd3590
encoding: drop stale base64url TODO and share the encoder with Buffer…
robobun Jul 24, 2026
c910234
glob: collapse MatchResult enum to {matches, negated} struct (#35339)
robobun Jul 24, 2026
253e4cd
compile_target: make define_values exhaustive over OS/arch/libc (#35330)
robobun Jul 24, 2026
0000696
install: replace Zig stage1 `did_set` workaround with plain `break` (…
robobun Jul 24, 2026
8134993
yaml: replace `TokenScalar.{multiline, is_quoted}` with `ScalarStyle`…
robobun Jul 24, 2026
22a4802
napi: derive napi_make_callback status from pending exception, not re…
robobun Jul 24, 2026
904139a
css: propagate custom at-rule block parse errors instead of panicking…
robobun Jul 24, 2026
7144ce0
jsc: finish arguments_old -> arguments_as_array migration and delete …
robobun Jul 24, 2026
79acf26
watcher(kqueue): drop per-cycle Vec, two-phase init, and raw libc::ke…
robobun Jul 24, 2026
32c3b62
Bun.spawn: reject timeout: NaN and killSignal: 0 (#35348)
robobun Jul 24, 2026
5f2082e
sys: make SystemError own its strings via OwnedString (#35335)
robobun Jul 24, 2026
3be1405
FileSink: deliver a failed end() to the pending write's promise inste…
cirospaciari Jul 24, 2026
f220536
Make dotenv::Loader own its Map; forbid unsafe in bun_ini (#35320)
robobun Jul 24, 2026
992d6c7
test: close the /proc FileHandle in test-fs-promises-file-handle-read…
robobun Jul 24, 2026
e9e9885
spawn(windows): release StaticPipeWriter start() ref when buffer-stdi…
robobun Jul 24, 2026
cd5f03b
fetch: isomorphic-encode latin-1 request header values on the wire (#…
robobun Jul 24, 2026
81f2b38
resolver: return None for empty/non-absolute DirInfo paths instead of…
robobun Jul 24, 2026
8d324e3
Bun.serve: validate the WebSocket opening handshake in server.upgrade…
robobun Jul 24, 2026
2bc1598
test(proxy-stress): hold deadPort() bound so concurrent listen(0) can…
robobun Jul 24, 2026
21b593c
Remove $vm from release builds (#35359)
Jarred-Sumner Jul 24, 2026
2609fa8
Ban <iostream> from release builds and drop it from bun-uws (#35256)
robobun Jul 24, 2026
d978f40
http(h3): defer the request to on_write so the TLS Finished is packet…
robobun Jul 24, 2026
98c0f18
cli: fix UpdateInteractiveCommand crash-report char collision with Un…
robobun Jul 24, 2026
051952d
node:test: run(), expectFailure, and Node v26.3.0 skip/todo semantics…
cirospaciari Jul 24, 2026
5461e9d
util: node v26.3.0 compat — styleText hex/validateStream, getCallSite…
cirospaciari Jul 24, 2026
50bb3bd
webcrypto: ML-DSA + ML-KEM, ChaCha20-Poly1305, raw-secret/raw-public,…
cirospaciari Jul 24, 2026
df84f8d
Remove dead code from analytics, perf, clap, picohttp, exe_format, cr…
robobun Jul 24, 2026
db170d9
perf: drop per-iteration heap allocs at 7 reshaped-for-borrowck sites…
robobun Jul 24, 2026
8ce55d6
install: delete dead peer-skip block in enqueue_dependency_list (#35392)
robobun Jul 24, 2026
e935630
http: remove lifetime-launder workarounds in client body/buffer and R…
robobun Jul 24, 2026
1d46220
borrowck cleanup C8: eliminate 10 one-file raw-pointer/alloc workarou…
robobun Jul 24, 2026
028f7a3
FileSink: settle the pending write()'s promise in every synchronous c…
robobun Jul 24, 2026
27b2df9
bundler: don't emit `export {}` inside unbraced if/while/do bodies (#…
robobun Jul 24, 2026
ae4b17d
bun:sqlite: keep empty-name columns; gate row-returning on sqlite3_co…
robobun Jul 25, 2026
762cefb
node:quic on lsquic — Node v26 compat, HTTP/3 (#32602)
cirospaciari Jul 25, 2026
1960936
node:repl: replace the stub with Node v26.3.0's REPL — v26 readline s…
cirospaciari Jul 25, 2026
fdac5e7
ci: add comment-cop action to flag multi-line comments in claude PRs …
robobun Jul 25, 2026
65f3fe3
node:http: fix M-SEARCH method token in process.binding("http_parser"…
robobun Jul 25, 2026
b321f82
Blob: purify NaN when boxing lastModified so deserialized files never…
robobun Jul 25, 2026
85f22bb
tls: close_notify on end(), injected-socket upgrades, reject-handshak…
cirospaciari Jul 25, 2026
7c49f0d
node:inspector: implement Profiler precise coverage and inspector.ope…
cirospaciari Jul 25, 2026
df6c7ee
Update comment-cop.yml
Jarred-Sumner Jul 25, 2026
d3cfcea
install: run postinstall when auto node-gyp rebuild is injected (#35748)
robobun Jul 25, 2026
04bb5c4
verify-baseline-static: treat RTM as data-in-.text; regroup CRT strsp…
robobun Jul 25, 2026
916492f
verify-baseline-static: blanket-pass the CRT strspn family; drop stal…
robobun Jul 25, 2026
44f6469
Report module.children and module._compile in heap snapshots (#34440)
Jarred-Sumner Jul 25, 2026
43d60f6
ci: refresh builder images (#35996)
Jarred-Sumner Jul 26, 2026
bc9cb1c
Remove dead code from react_compiler, sql_jsc, parsers (#36053)
robobun Jul 27, 2026
c7233fb
ServerWebSocket: send Blob bytes instead of "[object Blob]" (#36032)
robobun Jul 27, 2026
2d96969
Bun.spawn: throw AbortError for an already-aborted signal instead of …
robobun Jul 27, 2026
bcdf88e
node:dns: keep the c-ares timeout timer armed for queries past the 32…
robobun Jul 27, 2026
027716a
stdin: apply highwater backpressure to the pipe FileReader source (#3…
robobun Jul 27, 2026
a137a84
js_parser: make assigning to an import a run-time error outside the b…
robobun Jul 27, 2026
4516fbb
http: send RFC 7617 Proxy-Authorization when either proxy URL usernam…
robobun Jul 27, 2026
6c12afd
child_process: make spawn() ignore options.encoding like Node (#36050)
robobun Jul 27, 2026
783d2a9
Bun.serve: apply TCP backpressure to a request body the handler reads…
robobun Jul 27, 2026
f93a5dc
test(sql): reuse postgres_tls container and proxy-drop instead of doc…
robobun Jul 27, 2026
6fb430d
shell: dispatch ShellYesTask so captured-stdout yes does not abort (#…
robobun Jul 27, 2026
bfd1e92
refactor: drop Zig-shadowing underscore affixes from Rust fn names (#…
robobun Jul 27, 2026
07279a1
js_parser: fix error location for rest-default and parenthesized bind…
robobun Jul 27, 2026
e77f5a9
Remove dead code from js_printer, bundler, js_parser, patch, shell, h…
robobun Jul 27, 2026
7c92467
DecompressionStream("zstd"): decode concatenated frames instead of re…
robobun Jul 27, 2026
29c3914
fix(build): rename AnyResponse::resume_() callers to resume() (#36072)
robobun Jul 27, 2026
4eb6f99
source-lints: add node_fs.rs to dead-code escape inventory (#36073)
robobun Jul 27, 2026
9c5542c
codegen: lay out builtin module sources in dependency order (#36101)
Jarred-Sumner Jul 28, 2026
b650f55
build: order smoke_test and dsymutil after strip (#36139)
robobun Jul 28, 2026
2a5855b
fetch: implement Body.textStream() (#33825)
robobun Jul 28, 2026
b22e0e6
test(serve): fix darwin flake in the respond-without-reading-body bac…
robobun Jul 28, 2026
d549845
fetch: keep textStream() pulling when a native chunk decodes to nothi…
robobun Jul 28, 2026
0341a4e
test(fetch): cover textStream() empty-decode stall edges (#36182)
robobun Jul 28, 2026
d042b30
test: convert tempDirWithFiles callers to `using tempDir` (#36194)
Jarred-Sumner Jul 28, 2026
9b678b4
Remove spurious debug log
Jarred-Sumner Jul 28, 2026
be5c92a
ci: run the fast, non-flaky test files as one `bun test --parallel` b…
Jarred-Sumner Jul 28, 2026
789be97
fetch: error the response body stream when a fully-buffered response …
robobun Jul 28, 2026
e532ad9
ci(runner): cap parallel test width at 4 on macOS (x64 and arm64) (#3…
robobun Jul 28, 2026
e820221
ci: detect stalled test batches by silence; fix worker panic under --…
Jarred-Sumner Jul 29, 2026
0316b6f
npm(bun-release): prefer musl package first on musl hosts (#36283)
robobun Jul 29, 2026
59242d6
bake: keep WatcherAtomics alive while a hot-reload task is still queu…
robobun Jul 29, 2026
4926963
JSSink: skip JS onClose/onPull when the VM has a pending termination …
robobun Jul 29, 2026
564e723
http: return owning HTTPResponseMetadata from send_sync instead of le…
robobun Jul 29, 2026
cb2fd4d
compile: honor --windows-hide-console by setting the PE subsystem to …
robobun Jul 29, 2026
b5c65a8
bun patch: fix --commit path handling from workspace packages (#36290)
robobun Jul 29, 2026
6c04f4b
dns: fix RFC 8305 address-family interleave so blackholed IPv6 doesn'…
robobun Jul 29, 2026
6c7fba9
test(node:http): deflake numeric-header.test.ts (#36354)
robobun Jul 29, 2026
b4ee407
sql(mysql,postgres): reject duplicate auth requests; make connectionT…
robobun Jul 29, 2026
079d1d3
install: update catalog definitions on non-interactive `bun update` (…
robobun Jul 29, 2026
2298b56
bundler: restore the module.exports = {…} → ESM named-exports conversion
crishoj Jul 3, 2026
962c31b
bundler: de-opt module.exports = {…} inside unbraced if/while/do bodies
crishoj Jul 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
515 changes: 277 additions & 238 deletions .buildkite/ci.mjs

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/usr/bin/env bash
# Fallback Buildkite annotation for infra failures.
#
# `scripts/runner.node.mjs` (test steps) and `scripts/build/ci.ts` (build steps)
# post their own failure annotations, then set build meta-data key
# `reported-$BUILDKITE_JOB_ID` via markBuildkiteStepReported() just before
# exiting. Anything that kills the step before that marker is written (agent
# command-hook failures such as a tart guest that never boots, artifact
# download failures, `node` missing, the runner/build script itself crashing)
# leaves the job red with nothing in the build's annotation list, so the
# failure is only discoverable by opening the raw log. This repository pre-exit
# hook posts a generic annotation for any such job so it shows up alongside
# test/build failures.
#
# The marker is build meta-data, which is server-side and so remains visible
# here even when the reporter ran inside an ephemeral VM (the darwin tart
# agents forward the Job API socket into the guest). Repository hooks run on
# every posix agent, and on Windows via Git Bash. Never exits non-zero.

set -uo pipefail

status="${BUILDKITE_COMMAND_EXIT_STATUS:-0}"
[ "$status" = "0" ] && exit 0
[ -n "${BUILDKITE_JOB_ID:-}" ] || exit 0

# Skip canceled/timed-out jobs: on cancel the agent SIGTERMs then SIGKILLs the
# command, so the reporter had no chance to set the marker, and a canceled
# build annotating every running job is noise, not signal. The agent's
# Executor.Cancel() sets BUILDKITE_JOB_CANCELLED=true in the shell env
# (buildkite/agent@3ab8ab31, v3.94.0+), and additionally
# BUILDKITE_JOB_TIMED_OUT=true when the cancel was a job-level timeout.
if [ "${BUILDKITE_JOB_CANCELLED:-}" = "true" ]; then exit 0; fi
# TODO(ci): the exit-code fallback below is only needed while agents older than
# v3.94.0 remain in the fleet (as of 2026-07: the linux queue=ci image is still
# on v3.87.0 and several bare-metal darwin boxes are on v3.87.0/v3.94.0;
# scripts/bootstrap.sh already pins 3.114.0, those images just need rebaking).
# -1 is the posix agent-killed code, 3221225786 is Windows STATUS_CONTROL_C_EXIT,
# both observed on cancel in build 76127. Delete this `case` once every agent is
# v3.94.0+.
case "$status" in -1|3221225786) exit 0 ;; esac

if buildkite-agent meta-data exists "reported-${BUILDKITE_JOB_ID}" 2>/dev/null; then
exit 0
fi

label="${BUILDKITE_LABEL:-${BUILDKITE_STEP_KEY:-job}}"
job_url="${BUILDKITE_BUILD_URL:-}#${BUILDKITE_JOB_ID}"

# darwin tart agents redirect `tart run` to /tmp/{bk,sc}-<job-id>.log on the
# host. A guest that booted and was cleanly stopped writes only
# `Stopping VM...`; anything else is tart reporting why it exited.
detail=""
for log in "/tmp/bk-${BUILDKITE_JOB_ID}.log" "/tmp/sc-${BUILDKITE_JOB_ID}.log"; do
[ -s "$log" ] || continue
# Cap per-log output so a pathological tart dump cannot push the shared
# `--append`ed annotation past Buildkite's 1 MiB body limit.
body=$(grep -v '^Stopping VM\.\.\.' "$log" 2>/dev/null | head -c 2048 || true)
[ -n "$body" ] && detail+="${detail:+$'\n'}${log##*/}: ${body}"
done
[ -n "$detail" ] || detail="see the job log for output"

# Match escapeCodeBlock() in scripts/runner.node.mjs: the body renders inside a
# ```terminal fence, so only backticks need escaping.
preview=$(printf '%s' "$detail" | sed 's/`/\\`/g')

printf '<details><summary><a><code>step failed outside runner</code></a> - exit %s on <a href="%s">%s</a></summary>\n\n```terminal\n%s\n```\n\n</details>\n\n' \
"$status" "$job_url" "$label" "$preview" \
| buildkite-agent annotate --append --style error --context step-failed-outside-runner --priority 5 2>&1 \
|| echo "pre-exit: buildkite-agent annotate failed (non-fatal)"

exit 0
228 changes: 183 additions & 45 deletions .buildkite/scripts/upload-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,115 @@ function assert_sentry() {
function run_command() {
set -x
"$@"
{ set +x; } 2>/dev/null
{ local status=$?; set +x; } 2>/dev/null
return "$status"
}

# Zips are read with unzip and written with cmake. Not one tool for both:
# `cmake -E tar xf` streams, so it exits 0 on a truncated archive and leaves a
# corrupt file behind where unzip exits 9, and `zip` is not on the agent image
# (which has no root to install it). cmake is what wrote these zips in the
# first place — scripts/build/ci.ts makeZip.
function assert_archive_tools() {
for tool in "unzip" "cmake"; do
if ! command -v "$tool" &> /dev/null; then
echo "error: Cannot find $tool"
echo ""
echo "hint: the agent image is supposed to have it; see scripts/bootstrap.sh"
exit 1
fi
done
}

# Tools this script installs go to a writable directory on PATH instead of
# /usr/local/bin, which needs root on most agents.
function ensure_tools_bin() {
if [ -n "$TOOLS_BIN" ]; then
return
fi
TOOLS_DIR="${HOME:-}/.cache/bun-release-tools"
if [ -z "$HOME" ] || ! mkdir -p "$TOOLS_DIR/bin" 2> /dev/null; then
TOOLS_DIR="$(mktemp -d)"
mkdir -p "$TOOLS_DIR/bin"
fi
TOOLS_BIN="$TOOLS_DIR/bin"
export PATH="$TOOLS_BIN:$PATH"
}

function install_gh_linux() {
local arch
case "$(uname -m)" in
x86_64 | amd64) arch="amd64" ;;
aarch64 | arm64) arch="arm64" ;;
*) echo "error: Unsupported architecture: $(uname -m)"; exit 1 ;;
esac
# Resolve the version from the releases/latest redirect, not the REST API: the API is rate
# limited to 60 req/hour per IP (GITHUB_TOKEN is not exported yet), and piping curl into a
# short-circuiting reader such as `grep -m1` makes curl exit 23 (EPIPE) under pipefail.
local url version
url="$(curl -fsSLI -o /dev/null -w '%{url_effective}' "https://github.com/cli/cli/releases/latest")"
version="${url##*/tag/v}"
if [ -z "$version" ] || [ "$version" == "$url" ]; then
echo "error: Cannot determine latest gh release version from: $url"
exit 1
fi
local dir
dir="$(mktemp -d)"
run_command curl -fsSL "https://github.com/cli/cli/releases/download/v${version}/gh_${version}_linux_${arch}.tar.gz" -o "$dir/gh.tar.gz"
run_command tar -xzf "$dir/gh.tar.gz" -C "$dir" --strip-components=1
ensure_tools_bin
run_command install -m 0755 "$dir/bin/gh" "$TOOLS_BIN/gh"
rm -rf "$dir"
}

function install_aws_linux() {
local dir
dir="$(mktemp -d)"
run_command curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "$dir/awscliv2.zip"
run_command unzip -q "$dir/awscliv2.zip" -d "$dir"
ensure_tools_bin
run_command "$dir/aws/install" --update -i "$TOOLS_DIR/aws-cli" -b "$TOOLS_BIN"
rm -rf "$dir"
}

function install_sentry_cli_linux() {
# The installer drops a single static binary into INSTALL_DIR.
ensure_tools_bin
run_command bash -c "curl -fsSL https://sentry.io/get-cli/ | INSTALL_DIR='$TOOLS_BIN' sh"
}

function assert_command() {
local command="$1"
local package="$2"
local help_url="$3"
if command -v "$command" &> /dev/null; then
return
fi
echo "warning: $command is not installed, installing..."
if command -v brew &> /dev/null; then
HOMEBREW_NO_AUTO_UPDATE=1 run_command brew install "$package"
elif [ "$(uname -s)" == "Linux" ]; then
case "$command" in
gh) install_gh_linux ;;
aws) install_aws_linux ;;
sentry-cli) install_sentry_cli_linux ;;
*) echo "error: Don't know how to install $command on Linux"; exit 1 ;;
esac
else
echo "error: Cannot install $command, please install it"
if [ -n "$help_url" ]; then
echo ""
echo "hint: See $help_url for help"
fi
exit 1
fi
if ! command -v "$command" &> /dev/null; then
echo "warning: $command is not installed, installing..."
if command -v brew &> /dev/null; then
HOMEBREW_NO_AUTO_UPDATE=1 run_command brew install "$package"
else
echo "error: Cannot install $command, please install it"
if [ -n "$help_url" ]; then
echo ""
echo "hint: See $help_url for help"
fi
exit 1
echo "error: Failed to install $command"
if [ -n "$help_url" ]; then
echo ""
echo "hint: See $help_url for help"
fi
exit 1
fi
}

Expand Down Expand Up @@ -135,34 +225,43 @@ function download_buildkite_artifact() {
fi
}

function upload_github_asset() {
local version="$1"
local tag="$(release_tag "$version")"
local file="$2"
run_command gh release upload "$tag" "$file" --clobber --repo "$BUILDKITE_REPO"

# Sometimes the upload fails, maybe this is a race condition in the gh CLI?
while [ "$(gh release view "$tag" --repo "$BUILDKITE_REPO" | grep -c "$file")" -eq 0 ]; do
echo "warn: Uploading $file to $tag failed, retrying..."
sleep "$((RANDOM % 5 + 1))"
run_command gh release upload "$tag" "$file" --clobber --repo "$BUILDKITE_REPO"
done
function upload_github_assets() {
local tag="$(release_tag "$1")"
run_command gh release upload "$tag" "${@:2}" --clobber --repo "$BUILDKITE_REPO"
}

function update_github_release() {
local version="$1"
local tag="$(release_tag "$version")"
if [ "$tag" == "canary" ]; then
sleep 5 # There is possibly a race condition where this overwrites artifacts?
run_command gh release edit "$tag" --repo "$BUILDKITE_REPO" \
--notes "This release of Bun corresponds to the commit: $BUILDKITE_COMMIT"
fi
}

function upload_s3_file() {
local folder="$1"
local file="$2"
run_command aws --endpoint-url="$AWS_ENDPOINT" s3 cp "$file" "s3://$AWS_BUCKET/$folder/$file"
# S3 is a mirror; `bun upgrade` and install.sh read the GitHub release. A
# canary that made it to GitHub but not S3 has shipped, so don't fail it.
function upload_s3_files() {
local version="$1"
local files=("${@:2}")
local commit_folder="releases/$BUILDKITE_COMMIT"
if [ "$version" == "canary" ]; then
commit_folder="$commit_folder-canary"
fi
local status=0 file
for file in "${files[@]}"; do
run_command aws --endpoint-url="$AWS_ENDPOINT" s3 cp "$file" "s3://$AWS_BUCKET/$commit_folder/$file" || status=1
run_command aws --endpoint-url="$AWS_ENDPOINT" s3 cp "$file" "s3://$AWS_BUCKET/releases/$version/$file" || status=1
done
if [ "$status" -eq 0 ]; then
return 0
fi
if [ "$version" == "canary" ]; then
echo "warn: Some S3 uploads failed, ignoring since this is a canary release"
return 0
fi
echo "error: Some S3 uploads failed"
exit 1
}

function send_discord_announcement() {
Expand Down Expand Up @@ -200,6 +299,7 @@ EOF
function create_release() {
assert_main
assert_buildkite_agent
assert_archive_tools
assert_github
assert_aws
assert_sentry
Expand All @@ -214,14 +314,10 @@ function create_release() {
bun-linux-aarch64-profile.zip
bun-linux-x64.zip
bun-linux-x64-profile.zip
bun-linux-x64-baseline.zip
bun-linux-x64-baseline-profile.zip
bun-linux-aarch64-musl.zip
bun-linux-aarch64-musl-profile.zip
bun-linux-x64-musl.zip
bun-linux-x64-musl-profile.zip
bun-linux-x64-musl-baseline.zip
bun-linux-x64-musl-baseline-profile.zip
bun-linux-aarch64-android.zip
bun-linux-aarch64-android-profile.zip
bun-linux-x64-android.zip
Expand All @@ -232,32 +328,74 @@ function create_release() {
bun-freebsd-x64-profile.zip
bun-windows-x64.zip
bun-windows-x64-profile.zip
bun-windows-x64-baseline.zip
bun-windows-x64-baseline-profile.zip
bun-windows-aarch64.zip
bun-windows-aarch64-profile.zip
)

function upload_artifact() {
# x64 ships one nehalem binary under the plain name. Re-zip it under the
# historical `-baseline` name (inner dir renamed) so older `bun upgrade`
# clients that still request `-baseline` extract correctly.
function alias_baseline_artifact() {
local artifact="$1"
download_buildkite_artifact "$artifact"
if [ "$tag" == "canary" ]; then
upload_s3_file "releases/$BUILDKITE_COMMIT-canary" "$artifact" &
else
upload_s3_file "releases/$BUILDKITE_COMMIT" "$artifact" &
fi
upload_s3_file "releases/$tag" "$artifact" &
upload_github_asset "$tag" "$artifact" &
wait
case "$artifact" in
bun-darwin-x64.zip) echo "bun-darwin-x64-baseline.zip" ;;
bun-darwin-x64-profile.zip) echo "bun-darwin-x64-baseline-profile.zip" ;;
bun-linux-x64.zip) echo "bun-linux-x64-baseline.zip" ;;
bun-linux-x64-profile.zip) echo "bun-linux-x64-baseline-profile.zip" ;;
bun-linux-x64-musl.zip) echo "bun-linux-x64-musl-baseline.zip" ;;
bun-linux-x64-musl-profile.zip) echo "bun-linux-x64-musl-baseline-profile.zip" ;;
bun-windows-x64.zip) echo "bun-windows-x64-baseline.zip" ;;
bun-windows-x64-profile.zip) echo "bun-windows-x64-baseline-profile.zip" ;;
*) echo "" ;;
esac
}

# Repack `$src_zip` (inner dir = basename of $src_zip) as `$dst_zip` with the
# inner dir renamed to match `$dst_zip`'s basename, which is what install.sh
# extracts. Not done in the build step's makeZip, where the staging dir is
# already in hand: the Windows zips are re-uploaded by the signing step, so
# an alias built there would carry the unsigned binary. Runs in a fresh
# mktemp dir so a caller-CWD change can't collide with the extracted names.
function rezip_as() {
local src_zip="$1" dst_zip="$2"
local src_dir="${src_zip%.zip}" dst_dir="${dst_zip%.zip}"
local abs_src="$PWD/$src_zip" abs_dst="$PWD/$dst_zip"
local work; work="$(mktemp -d)"
run_command unzip -q -d "$work" "$abs_src"
run_command mv "$work/$src_dir" "$work/$dst_dir"
(cd "$work" && run_command cmake -E tar cf "$abs_dst" --format=zip "$dst_dir")
run_command rm -rf "$work"
}

# Fetch everything up front so the GitHub release can take all assets in one
# `gh release upload`; per-file uploads raced on the same release.
local files=() pids=() artifact
for artifact in "${artifacts[@]}"; do
upload_artifact "$artifact"
download_buildkite_artifact "$artifact" & pids+=("$!")
files+=("$artifact")
done
# Per-pid: a bare `wait` returns 0 however the children exited.
local pid status=0
for pid in "${pids[@]}"; do
wait "$pid" || status=1
done
if [ "$status" -ne 0 ]; then
echo "error: Failed to download one or more Buildkite artifacts"
exit 1
fi
for artifact in "${artifacts[@]}"; do
local alias="$(alias_baseline_artifact "$artifact")"
if [ -n "$alias" ]; then
rezip_as "$artifact" "$alias"
files+=("$alias")
fi
done

upload_github_assets "$tag" "${files[@]}"
update_github_release "$tag"
create_sentry_release "$tag"
send_discord_announcement "$tag"
upload_s3_files "$tag" "${files[@]}"
}

function assert_canary() {
Expand Down
20 changes: 20 additions & 0 deletions .buildkite/update-test-durations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Regenerates test/expected-durations.json from recent Buildkite runs and
# uploads it as a build artifact. Attach a weekly schedule to this pipeline in
# the Buildkite UI (it is not wired into ci.mjs so it never runs on PRs).
#
# The runner uses the checked-in copy for sharding; refresh that copy by
# downloading this artifact and committing it when the shard balance drifts.
steps:
- label: ":stopwatch: update-test-durations"
if: build.source == "schedule" || build.source == "ui"
agents:
queue: build-linux
command: |
node scripts/update-test-durations.mjs --builds 5
node scripts/update-parallel-allowlist.mjs --builds 300
buildkite-agent artifact upload test/expected-durations.json
buildkite-agent artifact upload test/parallel-allowlist.json
env:
# The script reads BUILDKITE_API_TOKEN; the agent environment hook
# already exports a read-scoped token under this name.
BUILDKITE_API_TOKEN: "$BUILDKITE_API_TOKEN"
1 change: 1 addition & 0 deletions .claude/commands/upgrade-boringssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ In the bun repo:

- `scripts/build/deps/boringssl.ts` — set `BORINGSSL_COMMIT` to `$NEW_SHA`.
- `test/js/node/process/process.test.js` — update the `boringssl:` entry in `expectedVersions` to `$NEW_SHA`.
- `src/js/node/tls.ts` — three hand-maintained mirrors of BoringSSL tables must be re-derived from the new pin (a test pins the current set, but cannot see upstream additions on its own): `SUPPORTED_ECDH_GROUPS` ← `ssl/ssl_key_share.cc` `kNamedGroups` (every `name` and non-empty `alias`), `_VALID_CIPHERS_SET` ← `ssl/ssl_cipher.cc` `kCiphers`, `CIPHER_LIST_SELECTORS` ← `ssl/ssl_cipher.cc` `kCipherAliases`.
- Regenerate the source lists (the file's header comment has the exact one-liner). Only `gen/sources.json` is authoritative — diff old vs new and apply the delta:

```sh
Expand Down
Loading
Loading