-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
system tests: refactor registry code #19106
system tests: refactor registry code #19106
Conversation
41a9e8d
to
b76dd8a
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.
LGTM
I feel slight uncomfortable to have the registry run all the time though. Pushing images etc. has side effects on other tests.
But it's a tremendous improvement. Thank you!
#19092 includes this PR now ✔️ |
LGTM |
I would like to understand this concern better. My thinking was that there is little cost to a registry running idle, it's just another background |
They maybe do some garbage collection and listen for incoming requests but I don´t expect this to cause noise.
My main concern is that tests share the same resource. So one test can influence another. For instance, pushing to this registry could break another test using the same image or searching on it. It's a purely hypothetical scenario at the moment. I am not that worried about it now. |
b76dd8a
to
bbf855d
Compare
One clean CI run, no flakes. Re-pushing for confidence. |
bbf855d
to
9f570c2
Compare
7dbd182
to
54ef708
Compare
The podman-login tests have accumulated much cruft over the years, because that's the only place where we run a local registry, and the process was crufty: we actually start/stopped the registry as the first & last tests of the file. Meaning, you couldn't do 'hack/bats 150:just-one-test' because that would skip the registry start. And just now, a completely unrelated test has had to be shoved into the login file. This PR revamps the whole thing, by adding a new registry helper module that can be used anywhere. And, once the registry is started, it just stays running until the end of tests. (This requires BATS 1.7 or greater). Signed-off-by: Ed Santiago <[email protected]>
54ef708
to
ba1355b
Compare
Four CI runs with no system-test flakes. I think this is good to go. |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, vrothberg 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 |
The podman-login tests have accumulated much cruft over the
years, because that's the only place where we run a local
registry, and the process was crufty: we actually start/stopped
the registry as the first & last tests of the file. Meaning,
you couldn't do 'hack/bats 150:just-one-test' because that
would skip the registry start. And just now, a completely
unrelated test has had to be shoved into the login file.
This PR revamps the whole thing, by adding a new registry helper
module that can be used anywhere. And, once the registry is
started, it just stays running until the end of tests. (This
requires BATS 1.7 or greater).
Signed-off-by: Ed Santiago [email protected]