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

Fix orphaned child process on Windows #2946

Closed
wants to merge 1 commit into from
Closed

Fix orphaned child process on Windows #2946

wants to merge 1 commit into from

Conversation

feryardiant
Copy link
Contributor

@feryardiant feryardiant commented Jul 11, 2021

Description

Quick fix while waiting upstream sindresorhus/execa#433 to be fixed, credit: FredKSchott/snowpack#1022

Motivation and Context

I came across the same issue as #2899, #2901 while I am learning to develop a monorepo using lerna. Means I'm not proficient enough about this stuff.

How Has This Been Tested?

It looks silly indeed, but there it is.

anpGx763oh

You could find the repo here, runs on:

OS Name:                   Microsoft Windows 10 Home Single Language
OS Version:                10.0.19043 N/A Build 19043
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
System Manufacturer:       ASUSTeK COMPUTER INC.
System Model:              UX303UB
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 78 Stepping 3 GenuineIntel ~2492 Mhz

Types of changes

Honestly I'm not sure, but will investigate it further

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes. (sort of)
  • All new and existing tests passed.

fixes #2899, #2901

@ghiscoding
Copy link

ghiscoding commented Sep 20, 2021

would that fix the issue #2841 I opened when v4 came out? I would assume, and hope, that the answer is probably yes!?

@abarke
Copy link

abarke commented Jan 6, 2022

Maintainers 👋 please merge 🙏

@MoeKasp
Copy link

MoeKasp commented Jan 6, 2022

Dear Maintainers, please merge!

@abarke
Copy link

abarke commented Jan 6, 2022

@evocateur could you please merge this as part of your next release!? That would be really great! Our teams relies heavily on Lerna and this small bug keeps popping up with many devs. We have reverted to lerna 3.22.1 that fixes the issue for now, but we would really like to keep up to date with Lerna releases.

@ghiscoding
Copy link

ghiscoding commented Feb 11, 2022

I can confirm that this PR fixes #2841 and I replicated this change in Lerna-Lite fork

@as-zlynn-philipps
Copy link

bump

@ghiscoding
Copy link

@as-zlynn-philipps sadly bumps aren't gonna help, Lerna is out of maintenance for well over a year now, see #3092. However this fix was applied in Lerna-Lite fork that I created, just in case you're interested.

Quick fix while waiting upstream sindresorhus/execa#433 to be fixed, credit: FredKSchott/snowpack#1022

Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Thanks for this @feryardiant!

We can get this merged and released as part of next week's 5.1 release if you can fix up the unit tests and get CI to a passing/green state.

@JamesHenry
Copy link
Member

@feryardiant unfortunately I do not have permission to push to your PR branch otherwise I would fix this for you.

All you need to do is apply the property to all the assertions in the spec file:

utils/npm-run-script/__tests__/npm-run-script.test.js

like so:

image

@JamesHenry
Copy link
Member

Hi @feryardiant and everyone else, in order to ensure this made it into the 5.1 release (happening today), I went ahead and reproduced the change but included the necessary test updates per my note above.

I applied @feryardiant as the author so full credit remains.

Thanks all!

@JamesHenry JamesHenry closed this Jun 7, 2022
@feryardiant
Copy link
Contributor Author

Thank you @JamesHenry

@feryardiant feryardiant deleted the fix-zombie-issue branch June 16, 2022 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lerna run {cmd} never ends in github action windows-latest
6 participants