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
fix(cli): resolve port conflicts in parallel test execution (#11363)
* fix(cli): resolve port conflicts in parallel test execution
Fixes EADDRINUSE errors when running rspack-cli tests in parallel by:
1. Auto-assigning random ports to serve commands that don't specify --port
2. Using Jest worker ID to ensure unique port ranges per worker (similar to e2e tests)
3. Preventing multiple test workers from competing for default port 8080
This resolves flaky test failures in tests/serve/basic/serve-basic.test.ts
and other serve tests when run concurrently.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* docs: improve getRandomPort function documentation
Add comprehensive JSDoc explaining the port allocation strategy
and how it prevents EADDRINUSE conflicts in parallel test execution.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
0 commit comments