Skip to content

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented May 21, 2025

This PR fixes an issue where running nx e2e <proj> on Windows does not kill the underlying dev/preview server when the e2e task ends.

Repro:

  1. npx create-nx-workspace@latest repro --preset=react-monorepo --e2eTestRunner=playwright --appName=demo
  2. cd repro && npx nx e2e demo-e2e

This will leave the preview server running on port 4300, and you have to netstat -ano | findstr :4300 to find the PID and kill it.

https://www.loom.com/share/fcbea53cdff543a98f4d4c8377027ee0

Current Behavior

Continuous task does not kill the process correctly once discrete task ends.

Expected Behavior

Processes are killed correctly once task is done running.

Related Issue(s)

Fixes #31235

@jaysoo jaysoo requested a review from a team as a code owner May 21, 2025 12:45
@jaysoo jaysoo requested a review from leosvelperez May 21, 2025 12:45
Copy link

vercel bot commented May 21, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 21, 2025 4:45pm
Copy link
Contributor

nx-cloud bot commented May 21, 2025

View your CI Pipeline Execution ↗ for commit b493916.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 6m 31s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-21 16:54:25 UTC

@jaysoo jaysoo force-pushed the fix/windows-process-kill branch from 459fdfc to 35ea15f Compare May 21, 2025 15:54
@jaysoo jaysoo force-pushed the fix/windows-process-kill branch from 35ea15f to b493916 Compare May 21, 2025 16:43
@jaysoo jaysoo merged commit 7e0719c into master May 21, 2025
6 checks passed
@jaysoo jaysoo deleted the fix/windows-process-kill branch May 21, 2025 17:09
Copy link
Contributor

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 May 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants