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(testing): close cypress web server correctly on windows #22125

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Mar 4, 2024

Current Behavior

Cypress fails to close the web server on Windows. It fails with Error: kill ESRCH (https://github.com/nrwl/nx/actions/runs/8135984708/job/22231576219#step:11:264). This happens because Node.js doesn't support killing process groups in Windows (https://nodejs.org/docs/latest-v20.x/api/process.html#processkillpid-signal) and because we're not spawning a detached process for Windows anyway.

Expected Behavior

Cypress should close the web server on Windows.

Successful run: https://github.com/nrwl/nx/actions/runs/8139220425/job/22242149713#step:11:201. There are unrelated failures on that run, but the failures specific to not closing the web server are addressed.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Mar 4, 2024
@leosvelperez leosvelperez requested a review from a team as a code owner March 4, 2024 10:04
Copy link

vercel bot commented Mar 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Mar 4, 2024 11:05am

@leosvelperez leosvelperez force-pushed the cypress/windows-kill-web-server-process branch from 20efc8f to 7b98632 Compare March 4, 2024 11:04
@FrozenPandaz FrozenPandaz merged commit 2d9ecfd into nrwl:master Mar 4, 2024
6 checks passed
@leosvelperez leosvelperez deleted the cypress/windows-kill-web-server-process branch March 5, 2024 08:59
FrozenPandaz pushed a commit that referenced this pull request Mar 8, 2024
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants