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
Georgijs
350cc1178a
--watch and --hot on windows (#8607 )
...
* draft impl of windows watcher
* synchronous watcher
* working standalone watcher
* in progress changes to watcher
* make watcher non-global
* prepare watcher for windows impl
* add windows watcher scaffold and clean up imports
* fix inotify
* make watch code more generic over platforms
* fix visibility
* watcher starts without error
* printing changes works
* basic windows watching works
* handle process exit from watcher
* cleanup in process cloning
* clean up logging and panic handling
* fix hot reload test on windows
* misc cleanup around watcher
* make watch test actually useful
* [autofix.ci] apply automated fixes
* remove old files
* clean up watchers
* update .gitignore
* rework windows watcher into single watcher instance watching top level project dir
* use non-strict utf16 conversion
* change to contains
* fix mac and linux compile
* add baseline in crash report (#8606 )
* allow linking bins that do not exist. (#8605 )
* fix linux compile
* fix linux compile (again)
* remove outdated todo
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: dave caruso <me@paperdave.net >
2024-01-31 22:06:33 -08:00
dave caruso
345a061d3b
fix(windows): make process.env case-insensitive ( #8578 )
...
* yay!!!!!!
* [autofix.ci] apply automated fixes
* ok
* do not use reflect here
* ok
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-31 21:52:50 -08:00
Dylan Conway
c538bf87d1
fix(windows): transpiler cache and other test fixes ( #8471 )
...
* umask
* process args
* update reportError.test.ts
* file exists
* transpiler cache
* back to const
* remove failing comments
* [autofix.ci] apply automated fixes
* update comment
* debug assert and remmove branch
* oops
* escape
* path sep
* seekTo
* disable
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-01-29 15:17:23 -08:00
Jarred Sumner
cc8c371e01
Merge branch 'main' into jarred/process-change
2024-01-29 07:12:22 -08:00
Georgijs
08c9511acc
[windows] nodefs ( #8509 )
...
* 100 passing fs tests
* 111 fs tests passing
* 114 passing fs tests
* 115 passing (TODO: fix path normalization for windows ntCreateFile
* all fs tests passing
* [autofix.ci] apply automated fixes
* make windows path norm smarter, fix tests
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-26 20:07:33 -08:00
Jarred Sumner
91ad2d7229
Enable another test
2024-01-26 18:51:36 -08:00
Jarred Sumner
e3188c918a
use Biome to format Bun's codebase instead of Prettier ( #8494 )
...
* Ignore
* Create biome.json
* Ignore
* biome
* [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-01-25 19:15:26 -08:00
Jarred Sumner
47e7e004b1
Remove @known-failing-on-windows for tests which are no longer failing on windows
2024-01-24 21:03:32 -08:00