-
Notifications
You must be signed in to change notification settings - Fork 472
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
ci also runs unit tests with -race enabled, but conditionally skips flaky tests #2705
Conversation
I'm a little hesitant to introduce a mechanism to skip racy tests (or any tests, for that matter):
I think we'd get better results long term if we direct efforts at fixing the racy tests and enable Curious how the other maintainers feel about it though. |
|
100% agree in principle.
I don't agree with this assertion per se. If we run the full suite without
If we don't run any unit tests in CI/CD with
This might not be possible due to the differences between test binaries built with
|
90ceaea
to
1f66324
Compare
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.
Thanks for this, @zmt. We discussed this in our maintainer sync and the consensus was that this was a fine short-term fix while we get all the racy tests sorted and that we could remove it once that was accomplished.
Just a few comments :)
Hey @zmt, just checking in since there hasn't been movement on this PR in the last couple weeks. Do you think you'll have time to address the comments in the next week or two? If not, I would request we close the PR for now and reopen when this is ready for review. |
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
I didn't see this until I was already gearing up to start on it again. I thought leaving it in draft status would be OK. I've picked it back up now and hope to make quick work of it. I will be leaving it in draft mode until ready. |
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
Signed-off-by: Zack Train <ztrain@uber.com>
@@ -345,7 +345,7 @@ func TestConfigureWindows(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestAidAttestationFailiures(t *testing.T) { |
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.
A little noise, but this test had been flaky when I started and the typo worked against me, so I decided to leave it a little better than I found it.
msg := "Skip only allowed with associated issue. " | ||
msg += "%q does not appear to be an issue. " | ||
msg += "File an issue and specify it to skip a test under race detector." |
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.
Perhaps this could use some additional wordsmithing...
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 is looking great. I like the enforcement that the skipped test be justified by providing an issue we track. That's a nice touch. Just one small comment on the name of the CI job and I think we're off to the races!
Co-authored-by: Andrew Harding <azdagron@gmail.com> Signed-off-by: Zack Train <ztrain@uber.com>
Apparently we have a flaky test even without the race detector which failed on macos :-( |
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.
Thanks, @zmt!
Pull Request check list
Affected functionality
Enable running the unit tests with race detector in CI/CD for PRs and releases as an additional github workflow.
Often fixing racy tests can be difficult and time-consuming. Some tests can hit negative interaction with the additional runtime overhead of the race detector, which can be impossible to resolve. To facilitate always running the majority of tests under the race detector:
ci-race-test
target inMakefile
to setSKIP_FLAKY_TESTS_UNDER_RACE_DETECTOR
and-race
run_unit_tests_under_race_detector.sh
and associated workflow configuration to runci-race-test
Description of change
Add github workflow to run tests with race detector on PRs and releases. Add utility to skip specific tests during CI/CD with the race detector and associate the skip with a github issue.
Which issue this PR fixes
Fixes #2379.