-
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
Flakes in the machine pools unit tests #4068
Comments
/area testing |
@fabriziopandini: The provided milestone is not valid for this repository. Milestones in this repository: [ Use 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/test-infra repository. |
@CecileRobertMichon @detiber @vincepri I could use some help here. "Timeout: failed waiting for *v1alpha4.MachinePool Informer to sync" happens only sometimes. MachinePool CRDs is registered in testenv together with the other CAPI CRDs, so the fact that this error only happens for this kind is driving me to assume the problem is in However, the only thing a little bit odd that I can find in the MachinePool types is t that they are disabling conversions, but I don't have the full context here
Does anything above triggers some bell? |
Is the error coming from the |
@vincepri, yes the error is from StartManager, and the test is run My current assumption is that the test is too fast, and test env is stopped even before StartManager is completed (which is something that can happen given that most of the initialization stuff happens in goroutines, so it is not blocking). However, I don't know yet how can we tackle this... |
/reopen |
@faiq: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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/test-infra repository. |
Hey folks, just wanted to register that I'm currently experiencing this problem as well. To me it seems like this is occurring because the files are never installed.
I think this can be solved by using this method to write the files to disk in this method in the envtest helper. cluster-api/test/helpers/envtest.go Line 222 in 2ea6cfb
|
@faiq do you mind to move your comment to a new issue, so we can track this problem without being confused by the previous discussion thread |
What steps did you take and what happened:
While investigating some unit test failures I some this error happen sometimes:
The error seems to be in the tear-down sequence, not in the test itself 🤔
Environment:
/kind bug
The text was updated successfully, but these errors were encountered: