-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Enable race detector for main module unit tests #11207
🌱 Enable race detector for main module unit tests #11207
Conversation
/hold Just testing at the moment |
9ddc956
to
de4ec2c
Compare
de4ec2c
to
3181c75
Compare
6f57021
to
696315e
Compare
d3abb54
to
c32af73
Compare
/test pull-cluster-api-test-main |
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.
overall sgmt, just few nits
ping me when it is ready for a final pass
bootstrap/kubeadm/types/upstreamv1beta4/conversion_no_fuzz_test.go
Outdated
Show resolved
Hide resolved
bootstrap/kubeadm/types/upstreamv1beta4/conversion_no_fuzz_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Stefan Büringer [email protected]
c32af73
to
6d4c3db
Compare
@fabriziopandini Thx, fixed! /hold cancel |
/test pull-cluster-api-e2e-main |
/assign @fabriziopandini @chrischdi |
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.
/approve
Checked, the usual MP flake .. /override pull-cluster-api-e2e-main |
@sbueringer: Overrode contexts on behalf of sbueringer: pull-cluster-api-e2e-main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Nice |
LGTM label has been added. Git tree hash: c0fb8f027d1adf1db4f5223c14ffe4febb97f45e
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi, fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@kubernetes-sigs/cluster-api-release-team I ran this a few times, and I think I fixed all the race conditions we had. But please let me know if the periodic test job gets flaky with issues reported by the race detector. Happy to take a look / help to fix them! :) |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Took the part for the unit tests of the main module from #10899.
I want to get the race detector for this part of our code base ASAP.
This PR:
make test
&make junit-test
make junit-test
uses-json
, because of that I had to make sure a proper logger is used in envtest unit tests, otherwise we hit a race condition when writing/reading os.Stderrgo build !race
. Additional test executions have been added tomake test
andmake test-junit
to ensure the tests in these files are still executed (the!race
tag means that these files are entirely ignored when running tests with-race
)Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #