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
Ciro Spaciari
5df59cb02b
[windows] fix(fs.watch) ( #8746 )
...
* clean fixes
* [autofix.ci] apply automated fixes
* more tests passing
* EPERM instead of AccessDenied
* [autofix.ci] apply automated fixes
* fix test on windows
* cleanup
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-07 15:44:07 -08:00
Georgijs
a9a4bbcd24
remap 0.0.0.0 to localhost on windows ( #8770 )
2024-02-07 15:17:24 -08:00
Georgijs
2bd4fe578e
Make HTTP shutdowns more robust, speed up connection to localhost ( #8730 )
...
* http use arraylist to handle shutdowns
* on windows use wsaconnectbyname to speed up localhost connections
* use arbitrary port
* close socket on setsockopt error
* use null timeout in wsaconnectbyname
* Update src/http.zig
* fix zig compile
* update hostname on linux
* [autofix.ci] apply automated fixes
* fix getpeername failing after connecting with socket
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-07 12:19:41 -08:00
Ciro Spaciari
651d5699a0
[windows] fix(fs.watchFile) ( #8735 )
...
* fix fs.watchFile
* oopsie
* fix bigint and persistent
* use repeat to make watchFile tests more reliable
* [autofix.ci] apply automated fixes
* follow the pattern
* add increment
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-06 18:10:28 -08:00
Meghan Denny
d0d4d8bf85
windows: enable more passing tests ( #8711 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-02-06 16:08:49 -08:00
Ciro Spaciari
53814dda00
[windows] fix(http2) ( #8734 )
...
* fix win http2
* add includes
* cleanup
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-06 15:37:39 -08:00
dave caruso
e366921e90
fix(windows): make fs.symlink normalize forward slashes to backslashes ( #8710 )
...
* fix fs.symlink()
* update comment
* .
* add todo
2024-02-05 16:09:50 -08:00
Ashcon Partovi
264142e756
Add isWindows and related helpers to test harness
2024-02-05 12:47:52 -08:00
Jarred Sumner
96454078bf
Merge branch 'main' into jarred/process-change
2024-02-05 10:38:49 -08:00
Jarred Sumner
1f0c1c81e9
Fix test
2024-02-04 00:42:40 -08:00
Jarred Sumner
1009b07807
Implement server.unref() and server.ref() ( #8675 )
...
* Implement server.ref() and server.unref()
* Update dns_resolver.zig
* Update server.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-03 23:57:34 -08:00
Georgijs
1a695f13bf
Async file copying on windows ( #8649 )
...
* rework and simplify file opening in windows
* fix tests
* symlink tests pass
* update error handling
* remove outdated normalization check
* fix mac build
* apply suggested fixes
* fix path tests
* remove debug print
* fix windows compile
2024-02-03 22:33:35 -08:00
Jarred Sumner
2c0c562d1d
Fixes #4746 ( #8661 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-03 03:38:59 -08:00
Jarred Sumner
683a03d8c7
Set a default value for Error.prepareStackTrace to align with Node ( #8657 )
...
* Set a default value for `Error.prepareStackTrace` to align with Node
* Ensure we never set negative line/column numbers in error.stack (#8656 )
* fix(windows): fix macros (#8653 )
* fix macro tests
* path format options
* remove failing comment
* fix buffer toString memcpy length
* Ensure we never set negative line/column numbers in error.stack
---------
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com >
2024-02-03 02:04:58 -08:00
Dylan Conway
5934b17f00
fix(windows): fix a few more tests ( #8644 )
...
* fix regression tests
* fix fs.test.ts bigintstats
* enable transpiler cache lol
* remove failing
* fix filesystem router
* update
* fix run-unicode test
* update comment
* add updated snapshot
* fix remaining node-module-module tests
* fixup
* [autofix.ci] apply automated fixes
* fix tty tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-02 18:58:16 -08:00
Jarred Sumner
4caf58f27d
Merge branch 'main' into jarred/process-change
2024-02-01 21:39:53 -08:00
Meghan Denny
3a7df3f6c7
windows: add more passing test ( #8615 )
2024-02-01 13:45:47 -08:00