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
test_runner: fix it concurrency
#43757
test_runner: fix it concurrency
#43757
Conversation
|
CC @aduh95 |
238a705
to
ba13d84
Compare
|
Hum it looks like it makes |
@aduh95 I suggest waiting for the fix to land, then rebase and make sure test is stable in this branch |
2964c88
to
8d66424
Compare
|
I'm surprised by this, is it actually expected to run |
|
I don't think it is - jest runs files in parallel (as does mocha, i believe), but i'm not aware of anything that runs individual |
|
perhaps this should be a feature that is off by default? |
Not to derail this PR: that sounds an XY problem: either the test is bad or the technical design of the implementation being tested is flawed. In 20 years of engineering, the root-cause of these kinds of problems has always been one of those. |
|
Even Node.js |
I just want to point out that the scope of this discussion should also cover |
I'll open a separate PR to add a Sorry, thank you for the fix @MoLow. |
We are going off-topic but I don't see the need for it. |
I think everyone wants control over concurrency. the question is whether it should be opt-in or opt-out. |
|
My personal opinion is that within a single test file, things should happen serially by default. The CLI runner should execute files in parallel by default. Additional parallelism should be opt-in. |
I think you misread/misunderstood my comment. I didn't propose removing the integer option. I proposed adding a
It doesn't have to be a binary choice ;)
I'm working on it #43784 I just need this PR's fix ;) |
|
A |
|
Ok I probably misunderstood. It was not clear that you wanted to add |
|
Since this PR conflicts |
8d66424
to
5eccc6b
Compare
|
so the current implementation in this PR works this way:
node/lib/internal/test_runner/test.js Lines 43 to 44 in 5eccc6b
|
The code still looks like it runs all tests in parallel with unlimited concurrency, also the |
the default is currently 1, see #43757 (comment) |
I am not sure if timeout is needed in |
|
Landed in a3766bc |
PR-URL: nodejs/node#43757 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jacob Smith <jacob@frende.me> (cherry picked from commit a3766bc8a84bcd375372a0a5c8c9174dadb6817d)
No description provided.