-
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
Conversation
❌ @Jarred-Sumner 5 files with test failures on bun-darwin-aarch64: |
❌ @Jarred-Sumner 5 files with test failures on linux-x64: |
❌ @Jarred-Sumner 3 files with test failures on linux-x64-baseline: |
❌ @Jarred-Sumner 4 files with test failures on bun-darwin-x64: |
❌🪟 @Jarred-Sumner, there are 15 test regressions on Windows x86_64
|
src/bun.js/bindings/bindings.zig
Outdated
@@ -4553,6 +4556,12 @@ pub const JSValue = enum(JSValueReprInt) { | |||
} | |||
|
|||
pub fn get(this: JSValue, global: *JSGlobalObject, property: []const u8) ?JSValue { | |||
if (comptime bun.Environment.isDebug) { | |||
if (bun.ComptimeEnumMap(BuiltinName).has(property)) { |
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.
nice
at least it compiles
…arred/process-change
…arred/process-change
…arred/process-change
…arred/process-change
src/which.zig
Outdated
@@ -15,6 +15,10 @@ fn isValid(buf: *bun.PathBuffer, segment: []const u8, bin: []const u8) ?u16 { | |||
// Like /usr/bin/which but without needing to exec a child process | |||
// Remember to resolve the symlink if necessary | |||
pub fn which(buf: *bun.PathBuffer, path: []const u8, cwd: []const u8, bin: []const u8) ?[:0]const u8 { | |||
if (bin.len == 0) return null; |
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
…les as if they were exes" This reverts commit da47cf8.
* wip * [autofix.ci] apply automated fixes * wip 2 * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <[email protected]>
cc @paperdave. Signals can be run from any thread. This causes an assertion failure when the receiving thread happens to not be the main thread. Easiest to reproduce on linux when you spawn 100 short-lived processes at once.
yay |
What does this PR do?
This adds
bun.spawn.Process
which is a reusable way to monitor spawned processesFixes: #8588
Fixes: #9211
Fixes: #8896
Fixes: #8917
Fixes: #8360
Fixes: #8357
Fixes: #8539