-
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
Can't run tests multiple times using "go test -count N" when finding flaky tests #4183
Comments
Tried this locally, and I get a single error:
Did you get anything else? |
IIUC, when you scroll up, I can also find:
And:
Perhaps running it per package would be easier to trace them down. |
Found some of them, (didn't get the stack trace / panic). The main issue is that these are not only unit tests, but also integration tests which spin up a local Kubernetes api-server and etcd. There are parts of the codebase that aren't using random names, and therefore there are going to be conflict. Given that controllers are eventually consistent (backed by a cache), this might happen more often than not. Not sure if we can nail down all of the cases, but we can try to make things a little bit more resilient. |
/milestone v0.4.0 |
@fabriziopandini: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
/priority backlog |
/milestone Next |
Supporting I have a branch where I've tried to hack around this by ensuring namespace and cluster names don't collide, but that's not sufficient. AFAICT each While it's suggested that the ginkgo author might implement It seems unrealistic either to abandon Ginkgo entirely or to expect |
@mboersma We're actually in the process (almost there!) to move away from Ginkgo in favor of using just plain go tests + envtest |
Awesome--I think this will be a non-problem once we have moved away from Ginkgo. |
/close |
@fabriziopandini: Closing this issue. 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. |
Hi! if there is any plan to moved away from Ginkgo for k/k? |
What steps did you take and what happened:
It seems
make test TEST_ARGS='-count 2'
always fails for me when running on bfc1498What did you expect to happen:
make test TEST_ARGS='-count 2'
should always pass.Anything else you would like to add:
I was getting at least 3 different errors when trying that, so I'm not sure if it make sense to post them here.
Environment:
kubectl version
):/etc/os-release
):/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: