Commit Graph

9356 Commits

Author SHA1 Message Date
Jarred Sumner
cd72100e90 Clearer error handling for this test 2024-03-08 04:31:36 -08:00
Jarred Sumner
05d3d3ecf6 fixup 2024-03-08 04:31:07 -08:00
Jarred Sumner
2f2fcd0a2e sad workaround 2024-03-08 04:30:49 -08:00
Jarred Sumner
e3d0f0cb07 We don't need big numbers for this test 2024-03-08 04:30:20 -08:00
Jarred Sumner
f3e4912301 Fix poorly-written test 2024-03-08 04:29:39 -08:00
Jarred Sumner
7d9ba47590 pause instead of close 2024-03-08 04:28:29 -08:00
Jarred Sumner
6d7a63ca26 Fix closing undefined memory file descriptors in spawn
cc @zackradisic
2024-03-08 04:27:43 -08:00
Jarred Sumner
b4318ed39b Introduce bun.sys.File, use it for Output.Source.StreamType, fix nested Output.scoped() calls, use Win32 ReadFile API for reading when it's not a libuv file descriptor.
This lets us avoid the subtle usages of `unreachable` in std.os when writing to stdout/stderr.

Previously, we were initializing the libuv loop immediately at launch due to checking for the existence of a bun build --compile'd executable. When the file descriptor is not from libuv, it's just overhead to use libuv

cc @paperdave, please tell me if Iany of that is incorrect or if you think this is a bad idea.
2024-03-08 04:26:17 -08:00
Jarred Sumner
8d07bd9218 Formatting 2024-03-08 04:17:20 -08:00
Jarred Sumner
eb5c1e18a1 Use Output.panic instead of garbled text 2024-03-08 04:17:00 -08:00
Jarred Sumner
0b27a646a3 Deflake 2024-03-08 04:16:26 -08:00
Jarred Sumner
f72bfa8287 Deflake 2024-03-08 04:16:08 -08:00
Jarred Sumner
234155aac7 more tests pass 2024-03-07 21:06:02 -08:00
Jarred Sumner
d897bb445e Fix build issue 2024-03-07 20:40:59 -08:00
Jarred Sumner
acd9c7f2d3 fix 2024-03-07 19:51:13 -08:00
Jarred Sumner
a559f021b9 fix 2024-03-07 19:50:12 -08:00
Dylan Conway
d14c2f8a2b Merge branch 'main' into jarred/process-change 2024-03-07 19:47:42 -08:00
Dylan Conway
d37fbbd4e0 fix(install): lifecycle script changes (#8943)
* empty trustedDependencies

* tests

* handle edgecases with default trusted dependencies

* could be zero length

* --trusted and skipped scripts

* resolver too

* second run --trusted

* --trust, better formatting

* more tests

* --trusted applies to dep deps, more tests

* progress

* fix build

* fix crash, make it look good, comments

* alphabetize, verbose log

* feature flag

* update lockfile

* update skipped text

* check update requests first

* be more careful with inline strings

* only with scripts

* fix tests, todo tests

* fix another test

* fix merge

* fix fix merge

* check binding.gyp for tarball and git resolutions

* remove dead code

* debug assert

* move newline printing

* use enum for `__has_install_script`

* oops

* clone packages

* Update src/install/install.zig

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2024-03-07 19:22:21 -08:00
Jarred Sumner
5913d71895 More logging 2024-03-07 19:04:49 -08:00
dave caruso
a927340ce3 fix: bun.serve crash due to ExceptionRef (#9309)
* fix bun.serve crash due to ExceptionRef

* add test
2024-03-07 18:54:15 -08:00
Robert Burke
7fc97fcf9c Fix sqlite benchmark setup when sh isn't bash (#9303)
Prevent deno from making noisy output

Co-authored-by: Robert Burke <robert.burke@ltcm.lol>
2024-03-07 17:32:23 -08:00
Meghan Denny
ea5354fc85 handle invalid URL in Location header for fetch() (#9305) 2024-03-07 17:32:05 -08:00
Jarred Sumner
e69e7e96b9 Make a couple shell tests pass 2024-03-07 17:10:10 -08:00
dave caruso
cecea3da88 ok 2024-03-07 16:52:34 -08:00
dave caruso
071771e94d fix build 2024-03-07 15:53:48 -08:00
dave caruso
f11ff138fe fix build 2024-03-07 15:53:48 -08:00
Jarred Sumner
f03e37427b Partial fix 2024-03-07 15:40:51 -08:00
Jarred Sumner
f253d8989f Partial fix 2024-03-07 15:40:23 -08:00
dave caruso
53982084a3 Merge remote-tracking branch 'origin/main' into jarred/process-change 2024-03-07 15:23:36 -08:00
dave caruso
3b13f7f998 fix: large bunx changes, mostly for better windows support (#9143)
* make bun-debug properly override `bun` in path

* windows path

* fix more issues with bunx

* sync

* stuff

* stuff

* f

* stuff

* further work

* a

* [autofix.ci] apply automated fixes

* okay

* fix building on posix systems

* ok

* make it so bun create cant crash + review

* docuemnt why return false is ok

* .

* cache bust

* merge

* yeah

* yea

* Update src/install/install.zig

* review results

* this will probably fix hardlink issue on windwo

* okay

* how did that work before

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-07 14:20:39 -08:00
Zack Radisic
1934f1fbf3 yoops 2024-03-07 13:22:15 -08:00
Zack Radisic
32f4a1e9e4 shell: Make 1>&2 and 2>&1 work with libuv 2024-03-07 13:22:14 -08:00
Zack Radisic
f64470ea55 fix 2 double free scenarios, support redirections on windows 2024-03-07 13:22:14 -08:00
Zack Radisic
005be7cc0c stuff to make it work with mini event loop 2024-03-07 13:22:14 -08:00
Zack Radisic
fe8b034284 fix uaf on shell IOReader 2024-03-07 13:22:14 -08:00
Zack Radisic
819b9b4994 logs 2024-03-07 13:22:14 -08:00
autofix-ci[bot]
e1bbb1e11b [autofix.ci] apply automated fixes 2024-03-07 21:21:11 +00:00
Jarred Sumner
ee4602b4ca Merge branch 'main' into jarred/process-change 2024-03-07 13:19:58 -08:00
cirospaciari
3300e9de65 less flaky test 2024-03-07 15:47:51 -03:00
Ashcon Partovi
806dec7a35 fix: child_process.spawn({ timeout }) exiting too early (#9280) 2024-03-07 09:36:54 -08:00
Jarred Sumner
f8aceb1e8d always 2024-03-07 04:59:48 -08:00
Jarred Sumner
76e6141235 Deflake 2024-03-07 13:09:53 +01:00
Jarred Sumner
7367d76105 Update 2024-03-07 12:51:13 +01:00
Meghan Denny
5a8830fdcc NODE_ENV=test should load .env.test even when .env.production exists (#9291) 2024-03-07 03:36:09 -08:00
dave caruso
e8374ebd82 feat: implement util.styleText (#9287)
* feat: implement util.styleText

* i forgot to test
2024-03-07 03:20:08 -08:00
Jarred Sumner
3106aefbd3 Cleanup test 2024-03-07 03:15:14 -08:00
Jarred Sumner
28259ca903 windows 2024-03-07 03:11:05 -08:00
Jarred Sumner
53792f3c05 Skip test on windows 2024-03-07 03:10:43 -08:00
Jarred Sumner
e29a54bfc5 Uncomment on posix 2024-03-07 03:09:49 -08:00
Jarred Sumner
69c2a9bd73 Silence build warning 2024-03-07 03:09:27 -08:00