Skip to content
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

Add missing imagestreams for Postgresql 16 #553

Merged
merged 4 commits into from
Mar 21, 2024

Conversation

phracek
Copy link
Member

@phracek phracek commented Mar 12, 2024

This pull request adds missing imagestreams for Postgresql16.

@phracek
Copy link
Member Author

phracek commented Mar 12, 2024

This pull request adds two missing imagestreams. Only running OpenShift tests are mandatory

[test-openshift]

@zmiklank
Copy link
Contributor

Hi, can we do this change with the generator?

I can do that if you want.

#549

@phracek
Copy link
Member Author

phracek commented Mar 12, 2024

you

Just let me know or write how.

Let's test integration with postgresql-15 that is already released

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Mar 12, 2024

[test-openshift]

@@ -18,6 +18,11 @@ function test_postgresql_integration() {
namespace_image="rhscl/postgresql-${VERSION}-rhel7"
else
namespace_image="${OS}/postgresql-${VERSION}"
# In case we test postgresql-16 that is not released yet
# let's use postgresql-15
if [ "${VERSION}" == "16" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we wait with adding imagestreams for v16 instead of introducing this fix?
There is high possibility we will forget about this in the future.
Or let's have the tests failing for a while, I am OK with it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, but nightly builds are failing. I check them each day or two. It is boring. For this reason, we can stop it.

Or I can file an issue to remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue here on sclorg's Github? If yes, then let's remove them in #549. It is only a simple change in the imagestream.yaml.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing from #549 is not the right way. I will try to explain where the trouble is.

We have to do two things for each new container version in the upstream repository.
First of all, add a new version here, and second, add a new version into imagestreams as well.

But this is a problem. When we test the newest version in OpenShift 4, like in this case registry.redhat.io/rhel8/postgresql-16, then the OpenShift tests fail because this imagestream does not exist yet. It is still not generally available

But OpenShift 4 team gets regularly all our imagestreams from our repositories to the newly developed OCP4 version, like OCP 4.16 now.
When the latest imagestreams are missing in our repositories, then these imagestreams are also missing in OpenShift developed versions, which is not expected.
We can of course test in our test suites if 'developed' version is present in devel_images file and then skip it.
This solution is feasible and realistic not only for this pull request but also for the later-on new images.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But until the image is out the imagestreams will not work for the OpenShift team too.

We can of course test in our test suites if 'developed' version is present in devel_images file and then skip it.
This solution is feasible and realistic not only for this pull request but also for the later-on new images.

Sounds sensible to me. I would also be OK with adding the imagestreams when the image is ready (the correct timing could be a problem here) OR let the tests fail until then. But I would rather avoid the option of testing imagestreams for pgsql16 with pgsql 15 images.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have fixed it by commit f8e6b12

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like everything is greeen.

@phracek phracek force-pushed the add_missing_imagestreams_16 branch from f11d3a6 to f8e6b12 Compare March 15, 2024 10:56
@phracek
Copy link
Member Author

phracek commented Mar 15, 2024

[test-openshift]

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek
Copy link
Member Author

phracek commented Mar 20, 2024

[test-openshift]

@phracek phracek merged commit ac721ae into master Mar 21, 2024
11 of 14 checks passed
@phracek phracek deleted the add_missing_imagestreams_16 branch March 21, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants