Skip to content

wip use wrapper for managing process - #8456

Merged
Jarred-Sumner merged 462 commits into
mainfrom
jarred/process-change
Mar 11, 2024
Merged

Jarred-Sumner merged 462 commits into
mainfrom
jarred/process-change

Conversation

@Jarred-Sumner

@Jarred-Sumner Jarred-Sumner commented Jan 24, 2024 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

This adds bun.spawn.Process which is a reusable way to monitor spawned processes

Fixes: #8588
Fixes: #9211
Fixes: #8896
Fixes: #8917
Fixes: #8360
Fixes: #8357
Fixes: #8539

@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

Comment thread src/deps/uws.zig Resolved
Comment thread src/bun.zig Resolved
Comment thread src/deps/libuv.zig Resolved
Comment thread src/bun.js/api/bun/process.zig Resolved
Comment thread src/bun.js/api/bun/process.zig Resolved
Comment thread src/bun.js/api/bun/process.zig Resolved
@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jan 29, 2024 •

Copy link
Copy Markdown
Contributor

❌🪟 @Jarred-Sumner, there are 15 test regressions on Windows x86_64

  • test\cli\hot\hot.test.ts
  • test\cli\install\migration\migrate.test.ts
  • test\cli\run\env.test.ts
  • test\cli\run\run-eval.test.ts
  • test\cli\run\run-process-env.test.ts
  • test\cli\run\transpiler-cache.test.ts
  • test\js\bun\http\bun-server.test.ts
  • test\js\bun\http\fetch-file-upload.test.ts
  • test\js\bun\spawn\spawn.ipc.test.ts
  • test\js\node\dns\node-dns.test.js
  • test\js\third_party\jsonwebtoken\claim-private.test.js
  • test\js\web\fetch\fetch.unix.test.ts
  • test\js\web\fetch\body-stream.test.ts
  • test\js\web\websocket\websocket.test.js
  • test\js\web\workers\worker.test.ts

Full Test Output

Comment thread src/bun.js/bindings/bindings.zig Outdated

pub fn get(this: JSValue, global: *JSGlobalObject, property: []const u8) ?JSValue {
if (comptime bun.Environment.isDebug) {
if (bun.ComptimeEnumMap(BuiltinName).has(property)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@gvilums gvilums mentioned this pull request Feb 15, 2024
5 of 6 tasks
This was referenced Feb 15, 2024
@cirospaciari cirospaciari mentioned this pull request Feb 19, 2024
1 of 2 tasks
Jarred-Sumner and others added 5 commits March 10, 2024 00:40
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.
@Jarred-Sumner
Jarred-Sumner marked this pull request as ready for review March 11, 2024 15:23
@Jarred-Sumner
Jarred-Sumner merged commit c9fe57f into main Mar 11, 2024
@Jarred-Sumner
Jarred-Sumner deleted the jarred/process-change branch March 11, 2024 15:24
@Jarred-Sumner

Copy link
Copy Markdown
Collaborator Author

yay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

6 participants