doc: recommend node-stress-single-test for flaky tests#64223
Conversation
|
Review requested:
|
Add guidance to the collaborator guide and onboarding docs recommending node-stress-single-test when fixing flaky tests, so contributors verify stability under repeated runs. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
f20aca5 to
ef9208e
Compare
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
sxa
left a comment
There was a problem hiding this comment.
Suggest adding the hyperlink in, but approving regardless 👍🏻
| * If you are interested in helping out with CI reliability, check out the | ||
| [reliability repository][] and [guide on how to deal with CI flakes][]. | ||
| [reliability repository][] and [guide on how to deal with CI flakes][]. When | ||
| fixing a flaky test, it is recommended to run [`node-stress-single-test`][] |
There was a problem hiding this comment.
| fixing a flaky test, it is recommended to run [`node-stress-single-test`][] | |
| fixing a flaky test, it is recommended to run [`node-stress-single-test`][https://ci.nodejs.org/job/node-stress-single-test] |
There was a problem hiding this comment.
Mentioning the hyperlink in the bottom improves the source code readability, right?
It's done twice on line 289 for example.
[reliability repository][] and [guide on how to deal with CI flakes][].
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
|
It is not very useful if the flaky test is in |
The |
|
How about something like "When fixing a flaky test in |
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
I'll be honest I've found it to be good for parallel tests as well. Even though it's theoretically possible that we'd get issues with bad interactions/conflicts when running alongside other tests in the parallel suite I don't think I've personally come across a situation where the fact that it's a parallel test has caused it not to show up in the stress job so I would dispute the "not very reliable" suggestion here and definitely would not discourage people from using the stress job for parallel tests. Curious as to whether others people's experiences are different from mine. And if a test is flaky because it's in the parallel suite, then the solution is probably to move it to sequential. |
|
I've run into a lot of cases where
I disagree. In most cases it would only hide the underlying issue. |
Thanks - good to know that I've just been lucky! |
|
I think there are multiple uses for the stress test:
It is not inherently less reliable when you run it sequentially, it just means in that case you are not putting it under load and are merely sampling many runs, which is also a valid, reliable way to use it, just be aware that it's for a different purpose. One solution is to make -j configurable in Jenkins, I just added a workflow that allows stress testing with a configurable -j in #64118 for the same reason. |
Recommend
node-stress-single-testin the collaborator guide and onboardingdocs for validating fixes to flaky tests.
Refs: https://openjs-foundation.slack.com/archives/C03BJP63CH0/p1782716150521499