Skip to content

Update tests to work with UBI10 images#47

Merged
judovana merged 5 commits intorh-openjdk:mainfrom
pmikova:UBI10_tests_update
Apr 1, 2026
Merged

Update tests to work with UBI10 images#47
judovana merged 5 commits intorh-openjdk:mainfrom
pmikova:UBI10_tests_update

Conversation

@pmikova
Copy link
Copy Markdown
Contributor

@pmikova pmikova commented Mar 31, 2026

Co-authored-by: Bob (AI Assistant)

Co-authored-by: Bob (AI Assistant)
@pmikova pmikova requested review from jmtd and vieiro March 31, 2026 20:43
@pmikova pmikova self-assigned this Mar 31, 2026
Comment thread containersQa/testlib.bash
Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
Copy link
Copy Markdown
Collaborator

@vieiro vieiro left a comment

Choose a reason for hiding this comment

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

I submitted some ideas that may be good (or totally wrong :-( ).

Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
Comment thread containersQa/testlib.bash Outdated
@pmikova pmikova force-pushed the UBI10_tests_update branch from 8b0dfcd to 7823448 Compare April 1, 2026 09:17
Comment thread containersQa/testlib.bash Outdated
@judovana
Copy link
Copy Markdown
Collaborator

judovana commented Apr 1, 2026

Btw, what had Co-authored-by: Bob (AI Assistant) to do with this????

@pmikova
Copy link
Copy Markdown
Contributor Author

pmikova commented Apr 1, 2026

Btw, what had Co-authored-by: Bob (AI Assistant) to do with this????

This is what you are expected to write to a commit message if you use code assist tools.

Comment thread containersQa/testlib.bash
Comment on lines +44 to +50
if [[ "$ARG_JDK" == *"quay.io"* ]] && [[ "$ARG_JDK" != *"/v2/"* ]]; then
# Parse: quay.io/repo/path/image@sha256:digest
# Convert to: https://quay.io/v2/repo/path/image/manifests/sha256:digest
QUAY_REPO=$(echo "$ARG_JDK" | sed 's|quay.io/||' | sed 's|@.*||')
QUAY_DIGEST=$(echo "$ARG_JDK" | grep -oP '@\K.*')
QUAY_REF="https://quay.io/v2/${QUAY_REPO}/manifests/${QUAY_DIGEST}"
echo "Converted Quay.io reference to v2 API URL: $QUAY_REF"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please extract it to function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can do that, but is that necessary? It is 8 lines of code which aren't reused anywhere else

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is single purposed block of code which have clear input and output. Also it needed there liens of comments. I belive this deserves named block - function.

Comment thread containersQa/testlib.bash Outdated
@judovana
Copy link
Copy Markdown
Collaborator

judovana commented Apr 1, 2026

Btw, what had Co-authored-by: Bob (AI Assistant) to do with this????

This is what you are expected to write to a commit message if you use code assist tools.

I know. I'm asking what parts of the code it wrote. And if they are used as they were suggested or amended

Comment thread containersQa/testlib.bash Outdated
Copy link
Copy Markdown
Collaborator

@judovana judovana left a comment

Choose a reason for hiding this comment

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

Please elaborate on that 401

Copy link
Copy Markdown
Collaborator

@vieiro vieiro left a comment

Choose a reason for hiding this comment

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

Thanks Alice!

Copy link
Copy Markdown
Member

@jmtd jmtd left a comment

Choose a reason for hiding this comment

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

LGTM!

@judovana judovana self-requested a review April 1, 2026 17:42
Copy link
Copy Markdown
Collaborator

@judovana judovana left a comment

Choose a reason for hiding this comment

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

AI explained off-list

@judovana judovana merged commit e0102cd into rh-openjdk:main Apr 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants