-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip use wrapper for managing process #8456
Merged
Merged
Changes from 1 commit
Commits
Show all changes
462 commits
Select commit
Hold shift + click to select a range
e28d379
WIP sync close (shows ref count bug in stream)
cirospaciari 0aeb500
fix closing on PipeWriter and PipeReader
cirospaciari 5d26789
remove old todos
cirospaciari 65b1477
join
cirospaciari 7cd9af1
Some shell changes
zackradisic dc09803
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic e44fc06
fix some compile errors
cirospaciari 11c6288
fix ref/unref server on windows
cirospaciari a626bf6
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
cirospaciari 30951d7
actually use the ref count in this places
cirospaciari a329375
make windows compile again
cirospaciari 411c787
more tests passing
cirospaciari 3ee74c4
Make shell compile again
zackradisic 893d2f0
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
2092e99
Slowly remove some `@panic("TODO SHELL")`
zackradisic c6df32d
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
436621e
Eliminate `@panic("TODO SHELL")` for BufferedWriter
zackradisic b166e8a
Holy cleansing of `@panic("TODO SHELL")`
zackradisic afbc997
Okay now the shell compiles, but segfaults
zackradisic 2d71bce
Merge branch 'main' into jarred/process-change
Jarred-Sumner dfab13e
Fix compiler errors
Jarred-Sumner 0a42ac0
more stable stream and now Content-Range pass
cirospaciari fe01d9b
make windows compile again
cirospaciari a70d0df
revert stuff until the fix is actually ready
cirospaciari 8694668
revert onDone thing
zackradisic e2ef561
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic f56c625
Fix buffered writer for shell
zackradisic d8646a0
Fix buffered writer + shell/subproc.zig and windows build
zackradisic a687eb1
Fix for #8982 got lost in the merge
zackradisic d0ee302
Actually buffer subproc output
zackradisic c367ce1
Fix some stuff shell
zackradisic 6d22838
oops
cirospaciari 85b6320
fix context deinit
cirospaciari dcbb8d9
fix renderMissing
cirospaciari 2a8bfbe
shell: Fix array buffer
zackradisic bcf7b16
more stable streams (#9053)
cirospaciari 4c3598f
wip
cirospaciari 008a3c6
Remove `@panic("TODO")` on shell event loop tasks and Redirect open …
zackradisic 23e9eef
Support redirects
zackradisic 468b21f
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic c954be2
Merge branch 'main' into jarred/process-change
Jarred-Sumner 17a46e5
fixes
Jarred-Sumner 2f1550d
Update ReadableStreamInternals.ts
Jarred-Sumner 67e89fe
Fix spurious error
Jarred-Sumner ebce8e8
Update stream.js
Jarred-Sumner 1900656
leak
Jarred-Sumner 56d936b
Merge branch 'main' into jarred/process-change
Jarred-Sumner 49e1c5c
Fix UAF
Jarred-Sumner abf3dcc
Fix memory leaks
Jarred-Sumner ee6f2c8
HOLY FUCK big refactor
zackradisic 379abb4
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic 021b185
misc cleanup
Jarred-Sumner f3c494f
Merge branch 'main' into jarred/process-change
Jarred-Sumner f653963
shell: Fix a bunch of tests
zackradisic 6fd8d13
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic dc78bb6
clean up
Jarred-Sumner 7200d34
Merge branch 'main' into jarred/process-change
Jarred-Sumner d1035a0
gitignore: fix ending newline
nektro bce7f82
get windows compiling again
nektro 955d139
tidy
nektro ee650fa
hide linker warn with icu
nektro 3812335
closeIfPossible
Jarred-Sumner baa6f54
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic ec07710
Better leak test
Jarred-Sumner 11c7265
Fix forgetting to decrement reference count
zackradisic 0b27f74
Merge branch 'jarred/process-change' of github.com:oven-sh/bun into j…
zackradisic a0030cf
Update stdio.zig
Jarred-Sumner bf3dbda
Fix shell windows build
zackradisic 639e972
Merge branch 'main' into jarred/process-change
Jarred-Sumner 52b8f84
Merge branch 'main' into jarred/process-change
Jarred-Sumner 2223b4a
Stupid unreachable
zackradisic 703d6fc
Merge branch 'main' into jarred/process-change
Jarred-Sumner 4fe0bfd
Woops
Jarred-Sumner 435b68e
basic echo hi works on windows
zackradisic 6901640
Fix flaky test on Windows
Jarred-Sumner 607facb
Fix windows regression in Bun.main (#9156)
Jarred-Sumner 16814cd
Make this test less flaky on Windows
Jarred-Sumner 8b51b08
Merge branch 'main' into jarred/process-change
Jarred-Sumner dd884ce
Fixup
Jarred-Sumner 1609bb9
Cygwin
Jarred-Sumner ce63926
Support signal codes in subprocess.kill(), resolve file path
Jarred-Sumner 69d9759
Treat null as ignore
Jarred-Sumner bd6ea2c
Ignore carriage returns
Jarred-Sumner 9f3623f
Fixup
Jarred-Sumner 3382305
shell: Fix IOWriter bug
zackradisic 604272b
shell: Use custom `open()`/`openat()`
zackradisic 1fb2329
windows shell subproc works
zackradisic 3a63e77
zack commit
zackradisic f50996e
I think I understand WindowsStreamingWriter
zackradisic dd67995
fix thing
zackradisic 27aa8d6
Merge branch 'main' into jarred/process-change
Jarred-Sumner cd438a2
why were we doing this in tests
Jarred-Sumner feb61af
shell: Fix rm
zackradisic af41de4
shell: Add rm -rf node_modules/ test
zackradisic acb25ab
shell: use `.runAsTest()` in some places to make it easier to determi…
zackradisic 0265b92
Merge branch 'jarred/process-change' of https://github.com/oven-sh/bu…
zackradisic 071c3ca
[autofix.ci] apply automated fixes
autofix-ci[bot] 13ab463
woopsie
zackradisic 713f36f
Various changes
Jarred-Sumner b67db00
Fix
Jarred-Sumner 7b595f9
shell: abstract output task logic
zackradisic 8656c80
shell: mkdir builtin
zackradisic 10ec437
fixup
Jarred-Sumner 694fcf5
Merge remote-tracking branch 'origin/main' into jarred/process-change
Jarred-Sumner 7fcb133
stuff
zackradisic d19f44e
shell: Make writing length of 0 in IOWriter immediately resolve
zackradisic 9de29bd
shell: Implement `touch`
zackradisic 8cac8ba
shell: basic `cat` working
zackradisic 31ae6fb
Make it compile on windows
zackradisic 34c0cfb
shell: Fix IOReader bug
zackradisic 24c44c6
Merge branch 'main' into jarred/process-change
Jarred-Sumner 3edb632
[autofix.ci] apply automated fixes
autofix-ci[bot] c57afe9
fix windows kill on subprocess/process
cirospaciari d6ad653
fix dns tests to match behavior on windows (same as nodejs)
cirospaciari 3234d52
Merge branch 'main' into jarred/process-change
Jarred-Sumner 8fc9f32
fix windows ci
Jarred-Sumner f47a59b
again
Jarred-Sumner f79f0d0
move `close_handle` to flags in `PipeWriter` and fix shell hanging
zackradisic 719c2f1
Fix `ls` not giving non-zero exit code on error
zackradisic d69398d
Handle edgecase in is_atty
Jarred-Sumner 32310ed
Fix writer.flush() when there's no data
Jarred-Sumner ef9c800
Fix some tests
Jarred-Sumner 9a17dcb
Disable uv_unref on uv_process_t on Windows, for now.
Jarred-Sumner e532014
fix writer.end
cirospaciari d1f799c
fix stdout.write
cirospaciari 247d82d
fix child-process on win32
cirospaciari a96a744
Make this test less flaky on Windows
Jarred-Sumner c37afe0
Add assertion
Jarred-Sumner 1c9d2be
Merge branch 'main' into jarred/process-change
Jarred-Sumner 133c809
Make these the same
Jarred-Sumner a934592
Make it pass on windows
Jarred-Sumner c5f6f26
Don't commit
Jarred-Sumner fed091f
Log the test name
Jarred-Sumner 4ce5506
Make this test less flaky on windows
Jarred-Sumner 76ed325
Make this test less flaky on windows
Jarred-Sumner f64b1cf
Print which test is taking awhile in the runner
Jarred-Sumner b8a2ef8
Merge branch 'main' into jarred/process-change
Jarred-Sumner b9ceca7
fixups
Jarred-Sumner 09e7aaa
Fixups
Jarred-Sumner 0eadf40
Add some assertions
Jarred-Sumner 746b3f7
Bring back test concurrency
Jarred-Sumner 7c7d5f0
shell: bring back redirect stdin
zackradisic f280a69
make it compile again cc @zackradisic
cirospaciari 335c957
initialize env map with capacity
zackradisic b113490
some fixes
cirospaciari dd50fe5
cleanup
cirospaciari ce82aec
oops
cirospaciari 28e2fd7
fix leak, fix done
cirospaciari eac1765
fix unconsumedPromises on events
cirospaciari 0f223cb
always run expect
cirospaciari 2c0e8c9
Merge branch 'main' into jarred/process-change
Jarred-Sumner f601c39
Update child_process.test.ts
Jarred-Sumner 0584306
fix reading special files
paperdave 20bb1c2
Fix a test
Jarred-Sumner 2f76619
Deflake this test
Jarred-Sumner 2236f15
Make these comparisons easier
Jarred-Sumner e067d99
Won't really fix it but slightly cleaner
Jarred-Sumner 7cd3507
Update serve.test.ts
Jarred-Sumner bdc94aa
Make the checks for if the body is already used more resilient
Jarred-Sumner 3e5f6b1
Move this to the harness
Jarred-Sumner 12ed874
Make this test not hang in development
Jarred-Sumner b2cc1a9
Fix this test
Jarred-Sumner 7ca1139
Make the logs better
Jarred-Sumner 0f48e4a
zero init some things
Jarred-Sumner 5027877
Make this test better
Jarred-Sumner 4235e2f
Fix readSocket
Jarred-Sumner d2968ee
Parallelize this test
Jarred-Sumner a74c44b
Handle EPipe and avoid big data
Jarred-Sumner 7a26d18
This was a mistake
Jarred-Sumner abdedcb
Fix a bunch of things
Jarred-Sumner c83002c
Fix memory leak
Jarred-Sumner 9fe8844
Avoid sigpipe + optimize + delete dead code
Jarred-Sumner 1ef9879
Make this take less time
Jarred-Sumner 73890cb
Make it bigger
Jarred-Sumner 16a9ea8
Remove some redundant code
Jarred-Sumner e0af083
Update process.zig
Jarred-Sumner ad13b04
Merge and hopefully don't breka things along teh way
Jarred-Sumner 69c2a9b
Silence build warning
Jarred-Sumner e29a54b
Uncomment on posix
Jarred-Sumner 53792f3
Skip test on windows
Jarred-Sumner 28259ca
windows
Jarred-Sumner 3106aef
Cleanup test
Jarred-Sumner 7367d76
Update
Jarred-Sumner 76e6141
Deflake
Jarred-Sumner f8aceb1
always
Jarred-Sumner 3300e9d
less flaky test
cirospaciari ee4602b
Merge branch 'main' into jarred/process-change
Jarred-Sumner e1bbb1e
[autofix.ci] apply automated fixes
autofix-ci[bot] 819b9b4
logs
zackradisic fe8b034
fix uaf on shell IOReader
zackradisic 005be7c
stuff to make it work with mini event loop
zackradisic f64470e
fix 2 double free scenarios, support redirections on windows
zackradisic 32f4a1e
shell: Make `1>&2` and `2>&1` work with libuv
zackradisic 1934f1f
yoops
zackradisic 5398208
Merge remote-tracking branch 'origin/main' into jarred/process-change
paperdave f253d89
Partial fix
Jarred-Sumner f03e374
Partial fix
Jarred-Sumner f11ff13
fix build
paperdave 071771e
fix build
paperdave cecea3d
ok
paperdave e69e7e9
Make a couple shell tests pass
Jarred-Sumner 5913d71
More logging
Jarred-Sumner d14c2f8
Merge branch 'main' into jarred/process-change
dylan-conway a559f02
fix
Jarred-Sumner acd9c7f
fix
Jarred-Sumner d897bb4
Fix build issue
Jarred-Sumner 234155a
more tests pass
Jarred-Sumner f72bfa8
Deflake
Jarred-Sumner 0b27a64
Deflake
Jarred-Sumner eb5c1e1
Use Output.panic instead of garbled text
Jarred-Sumner 8d07bd9
Formatting
Jarred-Sumner b4318ed
Introduce `bun.sys.File`, use it for `Output.Source.StreamType`, fix …
Jarred-Sumner 6d7a63c
Fix closing undefined memory file descriptors in spawn
Jarred-Sumner 7d9ba47
pause instead of close
Jarred-Sumner f3e4912
Fix poorly-written test
Jarred-Sumner e3d0f0c
We don't need big numbers for this test
Jarred-Sumner 2f2fcd0
sad workaround
Jarred-Sumner 05d3d3e
fixup
Jarred-Sumner cd72100
Clearer error handling for this test
Jarred-Sumner c555ea0
Fix incorrect test
Jarred-Sumner 530cb8d
Fix build
Jarred-Sumner fa12b00
Remove known failing on windows
Jarred-Sumner 49bcae6
Deflake
Jarred-Sumner 94341f7
Mark no longer failing
Jarred-Sumner f0ba2bb
show all the failing tests
Jarred-Sumner a82d610
Sort the list of tests
Jarred-Sumner 5b3c504
fix argument handling
paperdave 466428d
dont show "posix_spawn" as an error code on windows
paperdave 935b3c0
make bun-upgrade.test.ts pass on windows
paperdave 5b37133
fix bunx and bun create again sorry
paperdave c75304e
a
paperdave da47cf8
fix invalidexe because we should not be running javascript files as i…
paperdave 4213f65
Concurrency in test runner + better logging
Jarred-Sumner cb4e009
Revert "fix invalidexe because we should not be running javascript fi…
Jarred-Sumner f2a69ef
WIP: Unix fixes (#9322)
cirospaciari 7da411a
Merge branch 'main' into jarred/process-change
Jarred-Sumner 6c7bd40
Merge branch 'main' into jarred/process-change
Jarred-Sumner 74ce523
Update runner.node.mjs
Jarred-Sumner 7a63a15
Update runner.node.mjs
Jarred-Sumner 0555cce
Document some environment variables
Jarred-Sumner 978752a
Merge branch 'main' into jarred/process-change
Jarred-Sumner dddfc5f
shell: Make `Response` work with builtins
zackradisic c1804b1
Make it compile
zackradisic 9f38973
make pwd test pass
zackradisic fcbf196
[autofix.ci] apply automated fixes
autofix-ci[bot] 8e91bbe
Fix printing garbage for source code previews
Jarred-Sumner 30f4b9d
Update javascript.zig
Jarred-Sumner 2c71bb2
Fix posix test failures
Jarred-Sumner 17311f2
Fix signal dispatch
Jarred-Sumner efb9a86
windows
Jarred-Sumner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this diff seems to be incorrect