Skip to content

Conversation

phracek
Copy link
Member

@phracek phracek commented Jun 5, 2025

Adds testing RHEL10 imagestreams in python container.

This pull request is blocked by #743

@phracek phracek changed the title Add rhel10 imagestreams Add RHEL10 imagestreams Jun 5, 2025
Copy link

github-actions bot commented Jun 5, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
RHEL8 - OpenShift 4 - 3.11RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:43:1925min 30stest pipeline
RHEL9 - OpenShift 4 - 3.11RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:23:3726min 50stest pipeline
RHEL8 - OpenShift 4 - 3.9RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 09:07:0224min 48stest pipeline
RHEL9 - OpenShift 4 - 3.12RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:12:5227min 8stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.9RHEL-9.4.0-Nightlyx86_64❌ error11.06.2025 12:41:331h 21min 16stest pipeline
RHEL8 - OpenShift 4 - 3.12RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 09:37:5324min 11stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.11RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 08:42:1731min 33stest pipeline
RHEL9 - OpenShift 4 - 3.9RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 08:43:0727min 9stest pipeline
RHEL8 - PyTest - OpenShift 4 - 3.9RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 10:47:5528min 20stest pipeline
RHEL8 - PyTest - OpenShift 4 - 3.11RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:42:1730min 54stest pipeline
RHEL10 - PyTest - OpenShift 4 - 3.12-minimalRHEL-10-Nightlyx86_64✅ passed12.06.2025 11:41:2823min 38stest pipeline
RHEL8 - PyTest - OpenShift 4 - 3.12-minimalRHEL-8.10.0-Nightlyx86_64❌ error11.06.2025 10:20:0027min 9stest pipeline
CentOS Stream 9 - 3.11-minimalCentOS-Stream-9x86_64✅ passed12.06.2025 08:42:2718min 10stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.12-minimalRHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 08:42:1631min 15stest pipeline
Fedora - 3.12Fedora-latestx86_64✅ passed12.06.2025 08:42:2519min 32stest pipeline
RHEL10 - 3.12-minimalRHEL-10-Nightlyx86_64✅ passed12.06.2025 10:46:0023min 59stest pipeline
RHEL8 - PyTest - OpenShift 4 - 3.12RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:42:1628min 34stest pipeline
RHEL8 - 3.12RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:42:2628min 49stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.12RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 08:42:1631min 10stest pipeline
CentOS Stream 9 - 3.12CentOS-Stream-9x86_64✅ passed12.06.2025 10:47:4920min 21stest pipeline
CentOS Stream 10 - 3.12-minimalCentOS-Stream-10x86_64✅ passed12.06.2025 08:42:3117min 48stest pipeline
RHEL8 - 3.9-minimalRHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:42:4223min 43stest pipeline
RHEL8 - OpenShift 4 - 3.12-minimalRHEL-8.10.0-Nightlyx86_64✅ passed11.06.2025 10:50:2326min 23stest pipeline
Fedora - 3.13Fedora-latestx86_64✅ passed12.06.2025 08:42:2518min 52stest pipeline
CentOS Stream 10 - 3.12CentOS-Stream-10x86_64✅ passed12.06.2025 09:48:3420min 22stest pipeline
RHEL10 - OpenShift 4 - 3.12-minimalRHEL-10-Nightlyx86_64✅ passed12.06.2025 09:02:0522min 20stest pipeline
Fedora - 3.12-minimalFedora-latestx86_64✅ passed12.06.2025 09:33:0317min 8stest pipeline
RHEL9 - OpenShift 4 - 3.12-minimalRHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:21:3625min 42stest pipeline
CentOS Stream 9 - 3.9-minimalCentOS-Stream-9x86_64✅ passed12.06.2025 08:42:3417min 25stest pipeline
CentOS Stream 9 - 3.12-minimalCentOS-Stream-9x86_64✅ passed12.06.2025 09:26:2618min 26stest pipeline
RHEL8 - 3.12-minimalRHEL-8.10.0-Nightlyx86_64✅ passed11.06.2025 10:46:3223min 12stest pipeline
CentOS Stream 9 - 3.11CentOS-Stream-9x86_64✅ passed12.06.2025 08:42:3519min 28stest pipeline
CentOS Stream 9 - 3.9CentOS-Stream-9x86_64✅ passed12.06.2025 10:34:1019min 54stest pipeline
RHEL8 - 3.11-minimalRHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 09:56:2325min 9stest pipeline
RHEL8 - 3.9RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 09:54:0028min 42stest pipeline
RHEL9 - 3.12-minimalRHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:12:4426min 39stest pipeline
RHEL8 - 3.11RHEL-8.10.0-Nightlyx86_64✅ passed12.06.2025 08:42:2628min 23stest pipeline
RHEL9 - 3.12RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:14:4129min 11stest pipeline
RHEL9 - 3.9RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 08:42:2328min 59stest pipeline
RHEL9 - 3.11RHEL-9.4.0-Nightlyx86_64✅ passed12.06.2025 09:21:2929min 14stest pipeline

@phracek phracek force-pushed the add_rhel10_imagestreams branch from 579b8a6 to 4d755e5 Compare June 6, 2025 09:00
@phracek

This comment was marked as outdated.

@phracek
Copy link
Member Author

phracek commented Jun 6, 2025

let's test it again as PR #743 was merged
[test-all]

@phracek

This comment was marked as outdated.

@phracek

This comment was marked as outdated.

@phracek

This comment was marked as outdated.

@phracek phracek force-pushed the add_rhel10_imagestreams branch from 4f1f147 to 48e6307 Compare June 11, 2025 10:18
@phracek
Copy link
Member Author

phracek commented Jun 11, 2025

The latest commit 4f1f147 fixes proper detection json file.

[test-all]

@@ -62,7 +62,7 @@ function test_python_imagestream() {
django-postgresql.json \
django-postgresql-persistent.json"
for template in $TEMPLATES; do
ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS%[0-9]*}.json" \
ct_os_test_image_stream_quickstart "${THISDIR}/imagestreams/python-${OS//[0-9]/}.json" \
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this change, could you please explain?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, in case OS=rhel8 or rhel9, then the expression ${OS%[0-9]*} converts to rhel and result file is python-rhel.json, that exists.
But in case OS=rhel10 then the origin expression convers to rhel1 and the file python-rhel1.json does not exist.

Copy link
Member

@befeleme befeleme Jun 11, 2025

Choose a reason for hiding this comment

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

Aach, I see. // replaces all matches of digits with nothing (after /). % removes the suffix from the end. The same effect would have an expression ${OS%%[0-9]*} with double % sign to indicate the removal of the longest match from the end of the string. I have no opinion on what's better, but I learned something new today :)

phracek added 5 commits June 11, 2025 14:16
Signed-off-by: Petr "Stone" Hracek <[email protected]>
Signed-off-by: Petr "Stone" Hracek <[email protected]>
Fix regular expression for geting 'rhel' name from OS variable

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the add_rhel10_imagestreams branch from e439b45 to 4f3123a Compare June 11, 2025 12:19
@phracek
Copy link
Member Author

phracek commented Jun 11, 2025

Rebased commits so they are easy to review.

[test-all]

@befeleme
Copy link
Member

CentOS Stream 9 with 3.9 and 3.11 fails but I have no idea why - couldn't find anything relevant in the logs. Do you know why it's failing?

The commits themselves look good to me.

Do not update in function ct_pull_or_import_postgresql

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the add_rhel10_imagestreams branch from 173b964 to edef67d Compare June 12, 2025 08:16
@phracek
Copy link
Member Author

phracek commented Jun 12, 2025

Do not use CentOS 7 image for Postgresql that is a bit old. And let's use CentOS Stream 8 image that is a bit fresh.
Locally all tests have passed for RHEL8 as for OpenShift-4 as for PyTest OpenShift-4

[test-all]

Copy link
Member

@befeleme befeleme left a comment

Choose a reason for hiding this comment

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

LGTM.

@phracek phracek merged commit edd2b54 into master Jun 13, 2025
39 checks passed
@phracek phracek deleted the add_rhel10_imagestreams branch June 13, 2025 07:01
@frenzymadness
Copy link
Member

Thank you @befeleme

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.

3 participants