-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
tools: add more options to track flaky tests #43954
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
Conversation
|
Review requested:
|
|
Oh wow! You were quick to act on my suggestion! |
|
cc @nodejs/build |
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
tniessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach here looks like what I suggested, but I'd prefer if someone who's more familiar with make run-ci and tools/test.py takes a look, too.
|
The problem I see here is that it does not run tests on platforms where tests are flaky, for example arm or smartOS. |
If this PR lands, the config of the Jenkins runners can be updated to take advantage of these changes, and can be applied to arm and/or SmartOS. Or do you mean something else? |
|
If a test is flaky only a particular platform and we don't measure its flakiness on that particular platform how can we determine if it is flaky or broken? |
|
I might be missing something; my suggestion was to measure flakiness on any platform where tests are marked as flaky. |
|
That makes sense but from my understanding this uses only GHA platforms which is a small subset of the supported platforms. |
|
My understanding is that this is limited to GHA only because Jenkins config lives outside of the repo, and once this lands, Jenkins could be adapted accordingly. Is that correct @aduh95? |
|
Ah ok, I guess that's what @aduh95 wrote in #43954 (comment). |
tniessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be adapted:
Lines 1436 to 1438 in d29e78a
| if options.flaky_tests not in [RUN, SKIP, DONTCARE]: | |
| print("Unknown flaky-tests mode %s" % options.flaky_tests) | |
| return False |
|
Landed in 2e4bcfc |
Those changes only apply to GHA, Jenkins config is not on this repo AFAIK, and local runs are not affected as it doesn't change the defaults.
My hope is with such changes, we would be lenient on marking tests as flaky because the CI would check that are indeed flaky (currently, it would simply ignore its result).
Refs: #43929 (comment)
/cc @tniessen