Jarred Sumner
27aa8d66f0
Merge branch 'main' into jarred/process-change
2024-02-29 18:23:10 -08:00
Meghan Denny
2fb6733eeb
windows: pass test/js/node/process/process.test.js ( #9161 )
2024-02-28 20:25:05 -08:00
Jarred Sumner
ce63926249
Support signal codes in subprocess.kill(), resolve file path
2024-02-28 19:45:52 -08:00
Cameron Haley
bfdad44460
Fix issue where process.stdin is ended too early ( #9155 )
...
* Fix issue wherein process.stdin is ended too early
* [autofix.ci] apply automated fixes
* test: Generate prisma client on 'big' schema
* Update test/js/third_party/prisma/helper.ts
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-28 19:03:08 -08:00
Jarred Sumner
16814cdddb
Make this test less flaky on Windows
2024-02-28 17:17:22 -08:00
Jarred Sumner
27a0deab5f
Make this test less flaky on Windows
2024-02-28 17:03:00 -08:00
Jarred Sumner
52b8f84a19
Merge branch 'main' into jarred/process-change
2024-02-28 14:23:03 -08:00
Jarred Sumner
dc6af25b54
Fix ownKeys issue ( #9154 )
2024-02-28 14:22:25 -08:00
Jarred Sumner
f3c494f9c0
Merge branch 'main' into jarred/process-change
2024-02-27 16:02:33 -08:00
Jarred Sumner
fd6fd78f0f
Fixes #9120 ( #9128 )
...
* Fixes #9120
* Update buffer.test.js
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-26 19:15:28 -08:00
Jarred Sumner
56d936b36f
Merge branch 'main' into jarred/process-change
2024-02-26 18:56:37 -08:00
Jarred Sumner
57eb04f6f4
[internal] Switch back to prettier ( #9109 )
...
* Switch back to prettier
* wip
* Update .prettierignore
* Update .prettierignore
* ignores
* Update .prettierignore
* Rest
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-26 11:13:02 -08:00
Jarred Sumner
c954be2ae3
Merge branch 'main' into jarred/process-change
2024-02-25 19:26:35 -08:00
Jarred Sumner
92dec0a871
Implement util.types.isKeyObject ( #9091 )
...
* Implement util.types.isKeyObject
* just use inherits
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-25 14:30:05 -08:00
Cameron Haley
2333c94f8e
Fix prisma generate by emitting readable event on EoF ( #9101 )
...
* Add test for ensuring the 'readable' event is emitted on end
* Run emitReadable on nextTick instead of as microtask
* perf: Store intermediate variables
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-25 13:01:07 -08:00
Jarred Sumner
4ba1d4d7c8
Add missing fdatasync ( #9092 )
...
* Add missing fdatasync
* don't use /tmp/ since it might not support fdatasync on linux
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-24 15:47:14 -08:00
Meghan Denny
ed339b367d
improve Bun.stringWidth's algorithm ( #9022 )
...
* improve Bun.stringWidth's algorithm
* add a bunch more tests from string-width package
* make typescript happy
* undo typescript changes
* use better #define check for debug mode
* properly handle latin1 width tests
* support grapheme clusters
* fix trailing newline
* visibleUTF16WidthFn- add fast path for leading ascii
* add firstNonASCII16IgnoreMin
* fix firstNonASCII16CheckMin
* vectorize visibleUTF16WidthFn
* support emoji variation selector
* expose stringWidth in release mode too
* vectorize visibleLatin1Width
* support ambiguousIsNarrow option
* add typescript definition for stringWidth
2024-02-22 19:16:17 -08:00
Jarred Sumner
2d71bce242
Merge branch 'main' into jarred/process-change
2024-02-21 21:02:49 -08:00
Jarred Sumner
2c6cd24393
Implement expect().toBeOneOf(), fix small memory leaks in expect matchers ( #9043 )
...
* Add .toBeOneOf
* Fix memory leaks in .toContain(), .toInclude(), toContainKeys(), toBeTypeOf(), toEqualIgnoringWhitespace
* Handle exception
* Ignore non-bool
* Propagate errors when the message callback throws
* fixups
* Update preload.ts
* Update jest-extended.test.js
* Update expect.zig
* comments
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-21 18:31:14 -08:00
Jarred Sumner
6184542682
Add BUN_DEBUG flag to control where debug logs go ( #9019 )
...
* Add `BUN_DEBUG` flag to control where debug logs go
* Update all the actions
* Configure temp
* use spawn instead of rm
* Use CLOSE_RANGE_CLOEXEC
* Make some tests more reproducible
* Update hot.test.ts
* Detect file descriptor leaks and wait for stdout
* Update runner.node.mjs
* Update preload.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-21 14:13:43 -08:00
Jarred Sumner
78291af8de
[child_process] Fix neglecting to drain stdout/stderr pipes
...
cc @jdalton @paperdave
2024-02-20 16:16:52 -08:00
Jarred Sumner
b201cc3aed
Use socket instead of pipe
2024-02-19 19:33:28 -08:00
Jarred Sumner
27bdf3a11d
Merge branch 'main' into jarred/process-change
2024-02-19 16:32:25 -08:00
Yannik Schröder
182d052d4b
events.on: Add compatibility with readline module (#8885 )
...
* fix: make event.on work with for...await of readline module
* fix: queueing events before next() call and multiple event vals
* test: add tests for events.on and readline for await...of
* style, docs
* [autofix.ci] apply automated fixes
* refactor: use removeListeners instead of check for done
* test: merge test files
* test: remove todo comment
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-19 11:44:09 -08:00
Meghan Denny
141140ef7c
windows: pass more tests ( #8938 )
...
* windows: implement bun.isWritable
* windows: pass test/cli/run/as-node.test.ts
C:\Users\dave\AppData\Local\Temp\bun-node-a2ae984c3\node.exe is a hardlink on windows so it will not resolve to C:\bun\build\bun-debug.exe
skip the first param since that is not the behavior this test is supposed to be testing
* windows: pass test/js/node/dns/node-dns.test.js
* windows: pass test/js/node/process/process.test.js
* windows: pass test/js/web/streams/streams.test.js
* windows: pass test/js/workerd/html-rewriter.test.js
Closes #8459
* windows: fix node:util.inspect
* windows: these pass now
* windows: pass test/js/node/stream/node-stream.test.js
* disable http sendfile on windows
* use url.origin here
* more sendfile removal
* windows: pass test/js/web/websocket/websocket.test.js
* test/js/deno/performance/performance.test.ts is flaky, come back to it
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-19 10:23:31 -08:00
Jarred Sumner
c8a5fc3dcf
Merge branch 'main' into jarred/process-change
2024-02-17 02:44:16 -08:00
Jarred Sumner
f9b12300d4
Make shell errors slightly better ( #8945 )
...
* Make shell errors slightly better
* Update shell.ts
* Fix the failing tests
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-16 20:43:42 -08:00
Dmitri
fe8ec29f1f
Add fs.exists[util.promisify.custom] ( #8936 )
...
* Add fs.exists[util.promisify.custom]
fs.exists doesn't follow the error-first-callback convention, so it
needs a custom implementation for util.promisify.
* Simplify
---------
Co-authored-by: John-David Dalton <john.david.dalton@gmail.com >
2024-02-16 18:24:04 -08:00
John-David Dalton
17e01a284b
Add url unit tests with failing tests TODO commented-out ( #8933 )
...
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-02-16 11:32:08 -08:00
Georgijs Vilums
213ef4eedf
remove wrong (?) asserts, skip watermark tests, update Bun.file streaming test
2024-02-15 15:51:31 -08:00
Georgijs Vilums
a502015e52
fix process.release test
2024-02-15 10:44:22 -08:00
autofix-ci[bot]
1fb11bdb1a
[autofix.ci] apply automated fixes
2024-02-15 13:59:33 +00:00
Jarred Sumner
b5f12b02f0
Many fixes
2024-02-15 14:58:05 +01:00
Jarred Sumner
826db5f80c
Merge branch 'main' into jarred/process-change
2024-02-14 23:04:47 -08:00
dave caruso
e8dff7b029
chore: random acts of cleanup to tests ( #8915 )
...
* random acts of cleanup to tests
* nerf the watchFile test, is CI slow?
* more things
* [autofix.ci] apply automated fixes
* a
* remove a log
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-14 22:40:50 -08:00
Jarred Sumner
039769d603
Merge branch 'main' into jarred/process-change
2024-02-14 20:09:03 -08:00
argosphil
0714b3a06b
fix: throw on gunzipSync/inflateSync error ( #8901 )
...
* fix: zlib functions should throw an error if appropriate
Fixes #8887 .
* Tests for #8887
* fix: drive-by fix to avoid unreachable code being reached on error
2024-02-14 18:01:05 -08:00
Jarred Sumner
53156f1755
Make this test faster
2024-02-14 00:09:38 -08:00
dave caruso
04a6ebaa17
fix: allow opening win32 device files in node:fs and bun.file ( #8801 )
...
* support opening device files in node:fs and bun.file
* tidy tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-13 18:24:14 -08:00
Jarred Sumner
2bc1c124e9
Merge branch 'main' into jarred/process-change
2024-02-13 04:35:07 -08:00
Jarred Sumner
fdb432321e
Fix broken test
2024-02-13 03:33:36 -08:00
John-David Dalton
96e7227087
feat: Add win32 path.toNamespacedPath and align rest of node:path with Node ( #8469 )
2024-02-12 14:27:26 -08:00
Jarred Sumner
b8226b97b4
Tweak this test slightly
2024-02-12 01:29:29 -08:00
Jarred Sumner
0aece0d6ec
Tweak this test slightly
2024-02-12 01:29:16 -08:00
Jarred Sumner
2391faa724
Merge branch 'main' into jarred/process-change
2024-02-09 01:17:21 -08:00
cirospaciari
58d22b063c
Unmark tests that are now passing on Windows
2024-02-08 23:02:32 -03:00
dave caruso
2d7df726fd
fix: get bun build working on window ( #8712 )
...
* work on bundler
* a
* YAAAAYYAYAYAYYAYA
* get some more bundler tests working
* Update src/bundler/bundle_v2.zig
* rev
* ok
* i converted the cmakelists into LF
* personal review
* we didnt win
* okey they pass
* revert :(
* a
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-08 17:56:26 -08:00
dave caruso
8680641c23
make process.test.js pass ( #8798 )
2024-02-08 16:54:09 -08:00
Ashcon Partovi
8624a86eba
Unmark tests that are now passing on Windows
2024-02-08 13:42:13 -08:00
Jarred Sumner
9e657a9587
Merge branch 'main' into jarred/process-change
2024-02-07 22:32:13 -08:00