-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix: add lock for kubernetesOpenAPIVersion #4967
fix: add lock for kubernetesOpenAPIVersion #4967
Conversation
Welcome @pmalek! |
Hi @pmalek. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
Hi @koba1t 👋 What we're trying to test here is a data race which is tricky to deterministically ensure in tests. I can submit a test that would spin 2 (or more?) goroutines which would call Line 36 in 4fc0249
Can you give some guidance on this? |
Hi @pmalek! That is the right line to edit the test flag.
I think we just edit the |
/ok-to-test |
d035931
to
5384da3
Compare
I've added a test that tests this (to an extent possible). I'm not particularly fond of this solution but hey! it helps with the data race problem. |
5384da3
to
d8cc1dd
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.
/approve
Thanks for adding a test! I confirmed that it fails pretty reliably on master; it just needs a real name, please. :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KnVerey, pmalek 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 |
d8cc1dd
to
43de3d9
Compare
/lgtm |
The test failures are unrelated and fixed by #4995 |
/lgtm Could you try to |
43de3d9
to
547462e
Compare
Done |
I'm so sorry, but an external change caused another failure on master that was fixed in #5004 . Can you please rebase one last time? I swear this isn't normal. 😅 |
547462e
to
f7c3fce
Compare
No worries 🙃 Done. |
/lgtm |
@pmalek why partially ? |
@emirot Partially because IMHO there should be no need to use globals. On top of that as I look at this now there are places where kustomize/kyaml/openapi/openapi.go Line 318 in ed09399
|
Ideally we'd introduce a fully fledged fix that avoids usage of globals but that might be more involved hence this simple fix.
Partially fixes: #4824.