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
taylor.fish
07cd45deae
Refactor Zig imports and file structure (part 1) ( #21270 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 17:51:38 -07:00
pfg
83760fc446
Sort imports in all files ( #21119 )
...
Co-authored-by: taylor.fish <contact@taylor.fish >
2025-07-21 13:26:47 -07:00
Meghan Denny
875604a42b
safety: a lot more exception checker progress ( #20956 )
2025-07-16 00:11:19 -07:00
Jarred Sumner
285f708fe6
Implement more v8::Array::New overloads, v8::Object::{Get,Set}, v8::Value::StrictEquals, v8::Array::Iterate ( #20737 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jarred <jarred@bun.sh >
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Ben Grant <ben@bun.sh >
2025-07-13 04:27:43 -07:00
Meghan Denny
6c5b863530
safety: a lot more exception checker progress ( #20817 )
2025-07-10 15:34:51 -07:00
Jarred Sumner
8bf50cf456
Fix 2 differences in napi vs node ( #20761 )
...
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <Jarred-Sumner@users.noreply.github.com >
2025-07-02 22:11:21 -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
b58daf86da
Optimize napi_create_buffer ( #20614 )
2025-06-24 02:39:19 -07:00
Jarred Sumner
bc79a48ce4
Fix crash in NapiClass_ConstructorFunction due to incorrect handling of newTarget ( #20552 )
...
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2025-06-23 19:50:09 -07:00
Dylan Conway
1faeba01b9
remove ref count from napi_async_work ( #20597 )
2025-06-23 17:14:59 -07:00
Jarred Sumner
653c459660
Fix asan failure in napi_async_work caused by accessing napi_async_work after freed ( #20554 )
2025-06-21 23:56:40 -07:00
190n
346e97dde2
fix bugs found by exception scope verification ( #20285 )
...
Co-authored-by: 190n <7763597+190n@users.noreply.github.com >
2025-06-18 23:08:19 -07:00
Meghan Denny
6b4662ff55
zig: .jsUndefined -> .js_undefined ( #20377 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-06-13 16:14:57 -07:00
Meghan Denny
dedd433cbf
zig: prefer .jsUndefined() over .undefined for JSValue ( #20332 )
2025-06-12 13:18:46 -07:00
Meghan Denny
284de53f26
safety: audit and add missing exception checks to JSC::constructArray+constructEmptyArray ( #20119 )
2025-05-31 20:05:02 -07:00
Meghan Denny
ba78d5b2c3
ci: pass the src directory to 'zig fmt' ( #20114 )
...
Co-authored-by: nektro <5464072+nektro@users.noreply.github.com >
2025-05-31 18:52:18 -07:00
Jarred Sumner
3ea6133c46
CI: Remove unused top-level decls in formatter in zig ( #19879 )
...
Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-05-23 22:49:48 -07:00
chloe caruso
80aff24951
fix: require.extensions uses Strong instead of being clever ( #19231 )
2025-04-23 17:52:41 -07:00
chloe caruso
3349c995b5
no usingnamespace, organize jsc namespace, enable -fincremental ( #19122 )
...
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2025-04-22 16:34:15 -07:00
chloe caruso
4ec410e0d7
internal: make @import("bun") work in zig ( #19096 )
2025-04-17 12:32:47 -07:00
chloe caruso
c1dc5f1b73
remove some usingnamespaces ( #18765 )
2025-04-10 14:16:30 -07:00
Jarred Sumner
93855bd88c
Fix setImmediate slowness ( #18889 )
2025-04-09 20:03:26 -07:00
Dylan Conway
580e743ebd
followup #18825 ( #18834 )
2025-04-07 13:50:25 -07:00
Dylan Conway
340ae94d0f
napi_async_work fixes (#18825 )
2025-04-07 05:20:24 -07:00
Jarred Sumner
4806e84cc1
Revert "remove many usingnamespace, introduce new ref count and ref leak debugging tools ( #18353 )"
...
This reverts commit a199b85f2b . It does not compile on Windows.
2025-04-01 08:35:51 -07:00
chloe caruso
a199b85f2b
remove many usingnamespace, introduce new ref count and ref leak debugging tools ( #18353 )
2025-03-31 17:17:38 -07:00
Zack Radisic
5c0fa6dc21
Better error message for NAPI modules which access unsupported libuv functions ( #18503 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2025-03-26 23:57:10 -07:00
Kai Tamkun
f30ca39242
More node:http compatibility ( #18339 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2025-03-20 19:16:35 -07:00
Dylan Conway
c820b0c5e1
node:crypto: implement generatePrime(Sync) and checkPrime(Sync) (#18268 )
2025-03-18 11:48:24 -07:00
190n
cde668b54c
Better edge case handling in napi_value<->String conversion ( #18107 )
2025-03-12 18:15:00 -07:00
chloe caruso
4f58ff7933
changes to JSC.Strong, fix memory leaks in dev server ( #17738 )
2025-02-27 15:09:35 -08:00
190n
efabdcbe1f
Start fixing bugs discovered by Node.js's Node-API tests ( #14501 )
...
Co-authored-by: Kai Tamkun <kai@tamkun.io >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Ashcon Partovi <ashcon@partovi.net >
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: 190n <190n@users.noreply.github.com >
2025-02-26 22:11:42 -08:00
Meghan Denny
1574df835e
zig: make JSValue.toBunString use JSError ( #17648 )
2025-02-25 13:04:44 -08:00
190n
a8d159da22
Fix napi_is_buffer/napi_is_typedarray to match Node.js ( #17034 )
2025-02-03 21:49:27 -08:00
Jarred Sumner
a2f1a87f0d
Fix under-reporting string memory usage to GC ( #16426 )
2025-01-15 23:45:33 -08:00
Minsoo Choo
9019aaf7d4
fix: update username ( #16405 )
2025-01-14 21:15:23 -08:00
Jarred Sumner
2465ccae53
Re-sync our Mutex implementation with zig stdlib ( #16271 )
2025-01-08 21:09:27 -08:00
190n
72c9c2bc21
Set error code in Node-API functions ( #16223 )
2025-01-07 20:23:58 -08:00
190n
59e06b0df5
fix(napi): set lossless parameter in napi_get_value_bigint_{int64,uint64}, and trim leading zeroes in napi_create_bigint_words ( #15804 )
2024-12-17 17:38:12 -08:00
190n
3a4a9ae4e9
Add v8::api_internal::FromJustIsNothing ( #15583 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-12-04 17:57:40 -08:00
Jarred Sumner
9c1fde0132
Rewrite most of napi_threadsafe_function ( #15309 )
...
Co-authored-by: Ben Grant <ben@bun.sh >
2024-11-22 04:44:52 -08:00
Jarred Sumner
4ddb63e7e2
Try linker script ( #15158 )
2024-11-15 13:02:10 -08:00
dave caruso
32ddf343ee
bake: csr, streaming ssr, serve integration, safer jsvalue functions, &more ( #14900 )
...
Co-authored-by: paperdave <paperdave@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-11-13 18:19:12 -08:00
Meghan Denny
35513a9d6d
zig: remove JSValue.isEmpty ( #15128 )
2024-11-13 16:04:13 -08:00
190n
9647291d73
Implement NAPI type tagging ( #14915 )
2024-10-30 19:57:48 -07:00
Dylan Conway
5fd0a61ae2
CA support for bun install ( #14416 )
2024-10-11 13:16:26 -07:00
190n
50e9be0dc7
Fix napi_value<=>integer conversions and napi_create_empty_array ( #14479 )
2024-10-10 23:50:39 -07:00