-
Notifications
You must be signed in to change notification settings - Fork 41
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
tweaking tests #257
tweaking tests #257
Conversation
log pod conditions while waiting in pod tests
Does that run a chance of the namespace not really being cleaned up by the time the next test runs and maybe tries to use the same namespace? All the other changes sound good but this one sounds potentially risky and doesn't seem like it would speed things up much anyway. |
I assume this is possible, yeah. As of now, each suite uses a different namespace:
if we keep it this way it should be fine. But I'm also pretty sure I can drop I'll test it later today. |
I changed the
I also tried reverting to If one day a test happens to use a namespace that another test has already used and deleted - worst case scenario is k8s will reject to create it because it's still deleting the previous one, or something like that. And in that case fixing that test will as easy as using a different namespace name. I vote 3x faster tests is worth the risk :). Another thing we can do is try to make the namespace names in the def defaultNamespace: String = resourceName.toLowerCase + "-"+ someGlobalCounter.inc().toString +make sure all tests are deriving the namespace names from the |
@yurique Looks good to me. Feel free to merge this. |
I merged it |
Nice! |
see my posts related to tests here: #223 (comment)
tldr; a few tweaks to make tests run faster -
alpine
instead ofdocker
imagePullPolicy=IfNotPresent
for test pods;terminationGracePeriodSeconds=0
to the test pods specification;propagationPolicy=Background
to the delete options when deleting namespaces inafterAll
Result: