-
Notifications
You must be signed in to change notification settings - Fork 1.4k
process.argv is getting clobbered for parallel test execution in Nightwatch v3 #4363
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
Comments
@jkretsch I looked into the issue, and it seems the problem is coming from how argv is handled in the WorkerTask class located in The WorkerTask class uses Piscina to run tasks in parallel across worker threads, specifically with this line: Here, Piscina is running the worker thread, which manages the task execution in parallel. The issue with missing arguments is happening because Piscina seems to modify or filter out some of the passed arguments (argv) when sending them to the worker thread. You can check the Piscina library in
2. Inside getHandler Function
3. Task Processing 4. Environment Variables |
Seems the root cause has been found. Thanks @ac-mmi. Question now is how/when will this be fixed? This is impacting our ability to run large test sets in parallel. |
Any update on this? |
This is a blocker. How can we get this resolved? |
Description of the bug/issue
When I run tests in parallel in Nightwatch v3, process.argv is getting clobbered. Here's process.argv in Nightwatch v2 ...
and here's process.argv in Nightwatch v3 ...
You can see that the command line options I supplied (--include-tag, --env, --test) are being removed when I run in Nightwatch v3.
Steps to reproduce
Sample test
Command to run
Verbose Output
Nightwatch Configuration
Nightwatch.js Version
3.11
Node Version
18.20.5
Browser
No response
Operating System
Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: