-
Notifications
You must be signed in to change notification settings - Fork 545
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
[WIP] 🌱 cleanup/e2e-fixtures #3310
[WIP] 🌱 cleanup/e2e-fixtures #3310
Conversation
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.
Trying to understand this, so posted a bunch of questions.
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
New changes are detected. LGTM label has been removed. |
04e2e3d
to
741dbc9
Compare
d95676f
to
3dd1ff6
Compare
c226fcd
to
3cbb56a
Compare
b9112b8
to
ca39bec
Compare
Signed-off-by: Per Goncalves da Silva <[email protected]>
e21f2d7
to
09fd438
Compare
09fd438
to
a46e149
Compare
a46e149
to
a346cb9
Compare
Signed-off-by: Per Goncalves da Silva <[email protected]>
Signed-off-by: Per Goncalves da Silva <[email protected]>
a346cb9
to
d6b61ca
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.
Overall all looks good to me, but this made me wondering - can we do something so we are not dependent on quay.io for tests? Maybe something like we do with OLMv1 where we have a local registry? Just to clarify: not asking to do this as part of this PR.
pkg/lib/image/image.go
Outdated
// Ensure test registry images are pulled only if needed | ||
// These will normally be loaded through kind load docker-image | ||
// This is also helps support the e2e fixture image re-build flow (see e2e GHA) | ||
if strings.HasPrefix(image, "quay.io/olmtest/") { | ||
return corev1.PullIfNotPresent | ||
} |
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.
I'm not a big fan of having a special cases for tests. Is there a way to avoid this?
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.
Same - the only other way I could think of is by threading another command line arg down the stack - idwtdt
I figured this isn't so bad, since the pattern should only ever match our registry. So, there shouldn't be any hidden surprises.
But, yeah, I don't like it either. But anything else that I could think of felt like too many changes T_T
🤔 let me see if I can programmatically grab the sha from the image:tag - I think we already have a dependency on the docker client anyway
Yeah, that'd be heaps better! The current approach relies on kind loading. Maybe the right way is to just as v1. Get rid of quay.io/olmtest and just rebuild against a local registry for the tests. I've created an issue to track this: #3315 |
No luck. Doesn't seem to find the image on the node by its sha - so kind load didn't work. Maybe we'll have to look at a local registry...=S |
/hold exploring registry option |
Signed-off-by: Per Goncalves da Silva <[email protected]>
d6b61ca
to
442c42d
Compare
94e5712
to
279ff33
Compare
Signed-off-by: Per Goncalves da Silva <[email protected]>
93d971b
to
195720d
Compare
Signed-off-by: Per Goncalves da Silva <[email protected]>
195720d
to
17d51c3
Compare
PR needs rebase. 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-sigs/prow repository. |
Description of the change:
Our e2e tests cover the case of serving a catalog whose content was extracted (i.e. not using the bundled opm + being able to ship just content). The problem is that we were using the official operatorhub io image. This image is not versioned (it only has the latest tag). Because this registry's cache is built with a newer version of opm, it is breaking tests in older versions of the product.
In this PR:
The new e2e flow is:
build:
e2e:
publish-e2e-fixtures: