Skip to content
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

properly kill spawned node child processes #1732

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Conversation

hipstersmoothie
Copy link
Collaborator

@hipstersmoothie hipstersmoothie commented Jan 19, 2021

What Changed

Node's spawn with shell and detacted set to true will spawn child processes that aren't killed when killing the parent process. This PR attempts to kill all the children of the spawned process too.

Why

This hanging spawn was adding minutes of waiting time to the simplest auto use cases.

Change Type

Indicate the type of change your pull request is:

  • documentation
  • patch
  • minor
  • major

🐤 Download canary assets:

auto-linux-canary.1732.21269.gz
auto-macos-canary.1732.21269.gz
auto-win.exe-canary.1732.21269.gz

📦 Published PR as canary version: under canary scope @auto-canary@10.10.1-canary.1732.21269.0

✨ Test out this PR locally via:

npm install @auto-canary/bot-list@10.10.1-canary.1732.21269.0
npm install @auto-canary/auto@10.10.1-canary.1732.21269.0
npm install @auto-canary/core@10.10.1-canary.1732.21269.0
npm install @auto-canary/package-json-utils@10.10.1-canary.1732.21269.0
npm install @auto-canary/all-contributors@10.10.1-canary.1732.21269.0
npm install @auto-canary/brew@10.10.1-canary.1732.21269.0
npm install @auto-canary/chrome@10.10.1-canary.1732.21269.0
npm install @auto-canary/cocoapods@10.10.1-canary.1732.21269.0
npm install @auto-canary/conventional-commits@10.10.1-canary.1732.21269.0
npm install @auto-canary/crates@10.10.1-canary.1732.21269.0
npm install @auto-canary/docker@10.10.1-canary.1732.21269.0
npm install @auto-canary/exec@10.10.1-canary.1732.21269.0
npm install @auto-canary/first-time-contributor@10.10.1-canary.1732.21269.0
npm install @auto-canary/gem@10.10.1-canary.1732.21269.0
npm install @auto-canary/gh-pages@10.10.1-canary.1732.21269.0
npm install @auto-canary/git-tag@10.10.1-canary.1732.21269.0
npm install @auto-canary/gradle@10.10.1-canary.1732.21269.0
npm install @auto-canary/jira@10.10.1-canary.1732.21269.0
npm install @auto-canary/maven@10.10.1-canary.1732.21269.0
npm install @auto-canary/microsoft-teams@10.10.1-canary.1732.21269.0
npm install @auto-canary/npm@10.10.1-canary.1732.21269.0
npm install @auto-canary/omit-commits@10.10.1-canary.1732.21269.0
npm install @auto-canary/omit-release-notes@10.10.1-canary.1732.21269.0
npm install @auto-canary/pr-body-labels@10.10.1-canary.1732.21269.0
npm install @auto-canary/released@10.10.1-canary.1732.21269.0
npm install @auto-canary/s3@10.10.1-canary.1732.21269.0
npm install @auto-canary/slack@10.10.1-canary.1732.21269.0
npm install @auto-canary/twitter@10.10.1-canary.1732.21269.0
npm install @auto-canary/upload-assets@10.10.1-canary.1732.21269.0
npm install @auto-canary/vscode@10.10.1-canary.1732.21269.0
# or 
yarn add @auto-canary/bot-list@10.10.1-canary.1732.21269.0
yarn add @auto-canary/auto@10.10.1-canary.1732.21269.0
yarn add @auto-canary/core@10.10.1-canary.1732.21269.0
yarn add @auto-canary/package-json-utils@10.10.1-canary.1732.21269.0
yarn add @auto-canary/all-contributors@10.10.1-canary.1732.21269.0
yarn add @auto-canary/brew@10.10.1-canary.1732.21269.0
yarn add @auto-canary/chrome@10.10.1-canary.1732.21269.0
yarn add @auto-canary/cocoapods@10.10.1-canary.1732.21269.0
yarn add @auto-canary/conventional-commits@10.10.1-canary.1732.21269.0
yarn add @auto-canary/crates@10.10.1-canary.1732.21269.0
yarn add @auto-canary/docker@10.10.1-canary.1732.21269.0
yarn add @auto-canary/exec@10.10.1-canary.1732.21269.0
yarn add @auto-canary/first-time-contributor@10.10.1-canary.1732.21269.0
yarn add @auto-canary/gem@10.10.1-canary.1732.21269.0
yarn add @auto-canary/gh-pages@10.10.1-canary.1732.21269.0
yarn add @auto-canary/git-tag@10.10.1-canary.1732.21269.0
yarn add @auto-canary/gradle@10.10.1-canary.1732.21269.0
yarn add @auto-canary/jira@10.10.1-canary.1732.21269.0
yarn add @auto-canary/maven@10.10.1-canary.1732.21269.0
yarn add @auto-canary/microsoft-teams@10.10.1-canary.1732.21269.0
yarn add @auto-canary/npm@10.10.1-canary.1732.21269.0
yarn add @auto-canary/omit-commits@10.10.1-canary.1732.21269.0
yarn add @auto-canary/omit-release-notes@10.10.1-canary.1732.21269.0
yarn add @auto-canary/pr-body-labels@10.10.1-canary.1732.21269.0
yarn add @auto-canary/released@10.10.1-canary.1732.21269.0
yarn add @auto-canary/s3@10.10.1-canary.1732.21269.0
yarn add @auto-canary/slack@10.10.1-canary.1732.21269.0
yarn add @auto-canary/twitter@10.10.1-canary.1732.21269.0
yarn add @auto-canary/upload-assets@10.10.1-canary.1732.21269.0
yarn add @auto-canary/vscode@10.10.1-canary.1732.21269.0

@adierkens adierkens added the patch Increment the patch version when merged label Jan 19, 2021
@codecov
Copy link

codecov bot commented Jan 19, 2021

Codecov Report

Merging #1732 (a460ec1) into master (c708200) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1732   +/-   ##
=======================================
  Coverage   80.38%   80.38%           
=======================================
  Files          63       63           
  Lines        4890     4890           
  Branches     1068     1068           
=======================================
  Hits         3931     3931           
  Misses        656      656           
  Partials      303      303           
Impacted Files Coverage Δ
packages/core/src/utils/verify-auth.ts 85.71% <0.00%> (ø)
plugins/upload-assets/src/index.ts 90.56% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eea5bd4...a460ec1. Read the comment docs.

@hipstersmoothie hipstersmoothie merged commit 845c1ea into master Jan 19, 2021
@hipstersmoothie hipstersmoothie deleted the hanging-bug branch January 19, 2021 19:02
@adierkens
Copy link
Collaborator

🚀 PR was released in v10.10.1 🚀

@adierkens adierkens added the released This issue/pull request has been released. label Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants