You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
childProcess.kill() kills process instantly on GitHub Actions
Locally, this works:
$ bun index.ts
1718467629038 childProcess1 started with PID 32286
1718467629046 Sleeping for 2 seconds...
1718467630077 childProcess1 exited with exit code 1
1718467630077 Waiting for stdoutPromise to resolve (hangs on CI)...
1718467630077 childProcess2 started with PID 32293
1718467630078 childProcess2 exited with exit code 143
What do you see instead?
childProcess.kill() does not kill the process on GitHub Actions
On GitHub Actions, it hangs on waiting for the promise
$ bun index.ts
1718467554080 childProcess1 started with PID 1828
1718467554083 Sleeping for 2 seconds...
1718467555094 childProcess1 exited with exit code 1
1718467555094 Waiting for stdoutPromise to resolve (hangs on CI)...
Error: The action 'Run script' has timed out after 1 minutes.
Additional information
I found some issues which relate to some of the same things over here:
What version of Bun is running?
1.1.13+bd6a60512
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
index.ts
index.ts
, create ayarn run dev
child process withspawn()
and use.kill()
on that child processReproduction repo with GitHub Actions workflow:
What is the expected behavior?
childProcess.kill()
kills process instantly on GitHub ActionsLocally, this works:
What do you see instead?
childProcess.kill()
does not kill the process on GitHub ActionsOn GitHub Actions, it hangs on waiting for the promise
Additional information
I found some issues which relate to some of the same things over here:
.read()
ing a buffered stdout causes bun to remain open. #1498Also, some discussion about how GitHub Actions terminates child processes differently:
The text was updated successfully, but these errors were encountered: