pfg
0bd73b4363
Fix toIncludeRepeated ( #21366 )
...
Fixes #12276 : toIncludeRepeated should check for the exact repeat count
not >=
This is a breaking change because some people may be relying on the
existing behaviour. Should it be feature-flagged for 1.3?
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-25 22:22:04 -07:00
190n
1ab76610cf
[STAB-861] Suppress known-benign core dumps in CI ( #21321 )
...
### What does this PR do?
- for these kinds of aborts which we test in CI, introduce a feature
flag to suppress core dumps and crash reporting only from that abort,
and set the flag when running the test:
- libuv stub functions
- Node-API abort (used in particular when calling illegal functions
during finalizers)
- passing `process.kill` its own PID
- core dumps are suppressed with `setrlimit`, and crash reporting with
the new `suppress_reporting` field. these suppressions are only engaged
right before crashing, so we won't ignore new kinds of crashes that come
up in these tests.
- for the test bindings used to test the crash handler in
`run-crash-handler.test.ts`, disables core dumps but does not disable
crash reporting (because crashes get reported to a server that the test
is running to make sure they are reported)
- fixes a panic when printing source code around an error containing
`\n\r`
- updates the code where we clone vendor tests to checkout the right tag
- adds `vendor/elysia/test/path/plugin.test.ts` to
no-validate-exceptions
- this failure was exposed by starting to test the version of elysia we
have been intending to test. the crash trace suggests it may be fixed by
#21307 .
- makes dumping core or uploading a crash report count as a failing test
- this ensures we don't realize a crash has occurred if it happened in a
subprocess and the main test doesn't adequately check the exit code. to
spawn a subprocess you expect to fail, prefer `expect(code).toBe(1)`
over `expect(code).not.toBe(0)`. if you really expect multiple possible
erroneous exit codes, you might try `expect(signal).toBeNull()` to still
disallow crashes.
### How did you verify your code works?
Running affected tests on a Linux machine with core dumps set up and
checking no new ones appear.
https://buildkite.com/bun/bun/builds/21465 has no core dumps.
2025-07-25 16:22:04 -07:00
pfg
cb2887feee
Fix Bun.resolve() returning a promise throwing a raw exception instead of an Error ( #21302 )
...
I haven't checked all uses of tryTakeException but this bug is probably
not the only one.
Caught by running fuzzy-wuzzy with debug logging enabled. It tried to
print the exception. Updates fuzzy-wuzzy to have improved logging that
can tell you what was last executed before a crash.
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-25 12:46:33 -07:00
190n
a1f756fea9
Fix running bun test on multiple node:test tests ( #19354 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-24 11:48:55 -07:00
Ciro Spaciari
e4dd780c2a
fix(s3) ref before calling unlink ( #21317 )
...
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-23 22:23:58 -07:00
Dylan Conway
f90a007593
[PKG-513, ENG-19757] bun install: fix non-ascii edge case and simplify task lifetimes ( #21320 )
2025-07-23 19:23:54 -07:00
Dylan Conway
1a9bc5da09
fix(install): isolated install aliased dependency name fix ( #21138 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-19 01:59:52 -07:00
Meghan Denny
cc4f840e8b
test: remove accidental uses of test.only ( #20097 )
2025-07-16 23:07:23 -07:00
Zack Radisic
45a0559374
Fix some shell things ( #20649 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Zack Radisic <zackradisic@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: robobun <robobun@oven.sh >
2025-07-16 19:46:31 -07:00
Meghan Denny
4be43e2c52
de-flake spawn.test.ts
2025-07-15 17:18:46 -07:00
Ciro Spaciari
93cc51c974
fix(s3) handle slashs at end and start of bucket name ( #20997 )
2025-07-15 16:52:47 -07:00
Jarred Sumner
33fac76763
Delete flaky test that made incorrect assumptions about the event loop
...
We cannot assume that the next event loop cycle will yield the expected outcome from the operating system. We can assume certain things happen in a certain order, but when timers run next does not mean kqueue/epoll/iocp will always have the data available there.
2025-07-14 23:58:37 -07:00
Jarred Sumner
40970aee3b
Delete flaky test that made incorrect assumptions about the event loop
...
We cannot assume that the next event loop cycle will yield the expected outcome from the operating system. We can assume certain things happen in a certain order, but when timers run next does not mean kqueue/epoll/iocp will always have the data available there.
2025-07-14 23:53:12 -07:00
Jarred Sumner
2e02d9de28
Use ReadableStream.prototype.* in tests instead of new Response(...).* ( #20937 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Alistair Smith <hi@alistair.sh >
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-14 00:47:53 -07:00
Jarred Sumner
d6d7251352
Fixes #14988 ( #20928 )
...
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-12 18:22:54 -07:00
Jarred Sumner
55a9cccac0
bun.sh -> bun.com ( #20909 )
2025-07-10 00:10:43 -07:00
Ciro Spaciari
75902e6a21
fix(s3) fix loading http endpoint from env ( #20876 )
2025-07-07 19:24:32 -07:00
Adam
7ba4b1d01e
Fix: deprecated goo.gl links in snapshots raised in issue #20086 ( #20424 )
2025-07-05 00:58:42 -07:00
Jarred Sumner
27c979129c
Introduce Bun.randomUUIDv5 ( #20782 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: Meghan Denny <meghan@bun.sh >
2025-07-02 22:47:14 -07:00
190n
172aecb02e
[publish images] Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 (v2) ( #20772 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-07-02 12:06:08 -07:00
Ben Grant
ea57037567
Revert "Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]"
...
This reverts commit 80309e4d59 . It breaks the Windows CI.
2025-07-02 09:40:32 -07:00
Jarred Sumner
80309e4d59
Upgrade self-reported Node.js version from 22.6.0 to 24.3.0 ( #20659 ) [publish images]
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Meghan Denny <meghan@bun.sh >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: pfg <pfg@pfg.pw >
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ben Grant <ben@bun.sh >
2025-07-02 00:03:05 -07:00
Jarred Sumner
fbe405fb89
Fail the test when no tests match the filter ( #20749 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-07-01 16:03:19 -07:00
pfg
3223da2734
ReadableStream .text(), .json(), .arrayBuffer(), .bytes() ( #20694 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-28 00:27:57 -07:00
Ciro Spaciari
964f2a8941
fix(fetch/s3) Handle backpressure when upload large bodies ( #20481 )
...
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
2025-06-27 20:52:46 -07:00
Jarred Sumner
1d48f91b5e
Enable ReadableStream as stdin for Bun.spawn ( #20582 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: pfg <pfg@pfg.pw >
2025-06-27 19:42:03 -07:00
Zack Radisic
0a3ac50931
Refactor shell to use AllocationScope and fix memory issues ( #20531 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-06-23 22:29:48 -07:00
Meghan Denny
2081e5b656
test: update spawn.test.ts for ci on windows ( #20600 )
2025-06-23 19:40:53 -07:00
Jarred Sumner
4cc61a1b8c
Fix NODE_PATH for bun build ( #20576 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-22 20:51:45 -07:00
Jarred Sumner
633f4f593d
Ahead-of-time frontend bundling support for HTML imports & bun build ( #20511 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-20 19:55:52 -07:00
Zack Radisic
41d10ed01e
Refactor shell and fix some bugs ( #20476 )
2025-06-19 18:47:00 -07:00
Meghan Denny
b62f70c23a
inspect-error-leak.test.js: add a slightly higher asan margin
2025-06-19 15:02:38 -07:00
Meghan Denny
a445b45e55
empty commit to trigger formatting ci ( #20378 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-06-13 15:18:28 -07:00
Christian Rishøj
82b34bbbdd
feat(sqlite): Add columnTypes and declaredTypes to Statement ( #20232 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-13 19:48:37 +02:00
190n
c6deb4527c
Fix crash when FFI pointers are encoded as ints ( #20351 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-06-13 19:46:26 +02:00
Ciro Spaciari
631e674842
fix(FileRoute) fix eof handling, fix max size handling, fix onReaderError behavior ( #20317 )
...
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: cirospaciari <6379399+cirospaciari@users.noreply.github.com >
2025-06-11 20:34:52 -07:00
Jarred Sumner
8750f0b884
Add FileRoute for serving files ( #20198 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-06-10 19:41:21 -07:00
Jarred Sumner
2801cb1f4a
Fix TOML parser to handle inline tables and table arrays correctly ( #20291 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
2025-06-09 18:52:30 -07:00
190n
ea05de59b3
Fix #20283 ( #20287 )
2025-06-09 16:50:24 -07:00
Jarred Sumner
c9761d4aa6
Fixes flaky test-http-pipeline-requests-connection-leak.js ( #20248 )
2025-06-07 05:19:11 -07:00
Jarred Sumner
27abb51561
Add fallback for ADDRCONFIG like Chrome's, avoid glibc UDP port 0 hangs ( #19753 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2025-06-05 20:20:00 -07:00
pfg
bd3abc5a2a
Fix calc bug ( #20174 )
2025-06-03 22:08:51 -07:00
Ali
90dda8219f
Fixed: radians rewritten to degrees without converting ( #19848 )
2025-06-03 04:06:05 -07:00
Ali
885979644d
Fixed : bun:ffi new CString() ignores byteOffset argument if byteLength is not provided ( #19819 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-06-03 04:05:04 -07:00
Joel Shepherd
13c5b0d9cb
Added rapidhash algorithm ( #20163 )
2025-06-03 03:34:35 -07:00
Jarred Sumner
390798c172
Fix memory leak in Bun.spawn ( #20095 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-05-31 20:06:22 -07:00
Meghan Denny
e0852fd651
fix memory leak when pipe Bun.spawn stdio is never read repeatedly ( #20102 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-31 11:16:49 -07:00
Meghan Denny
809992229f
node:net rework ( #18962 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-28 17:04:37 -07:00
pfg
bf02d04479
Don't validate cookie strings passed in the CookieMap constructor ( #19945 )
...
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com >
2025-05-27 20:14:21 -07:00
Alistair Smith
31980bc151
perf_hooks.Histogram ( #19920 )
2025-05-26 21:18:22 -07:00