Skip to content

Moved the logic into a function#48

Merged
judovana merged 1 commit intorh-openjdk:mainfrom
pmikova:UBI_10_final_fix
Apr 2, 2026
Merged

Moved the logic into a function#48
judovana merged 1 commit intorh-openjdk:mainfrom
pmikova:UBI_10_final_fix

Conversation

@pmikova
Copy link
Copy Markdown
Contributor

@pmikova pmikova commented Apr 1, 2026

This also fixes an overlooked issue with image verification for non-quay images.

This also fixes an overlooked issue with image verification for non-quay
images
@pmikova pmikova self-assigned this Apr 1, 2026
@pmikova pmikova requested review from jmtd, judovana and vieiro April 1, 2026 20:25
@judovana
Copy link
Copy Markdown
Collaborator

judovana commented Apr 2, 2026

Thanks for bringing it out. I wanted to fill a slightly different issue - what about moving this logic completely out of suite?

The suite expects correct and working URI. If it do not work, it halts (the 200 check and friends). From my previous experiments, the original URI was working (I was running podman run -ti "quay.io/path1/path2/pkgname@sha256:hash", and it worked. Not sure why ot do not work out of the box. Can you please recall why the conversion was needed?
I have two possibilities in mind - to not do any conversions here at all, and simply expect working url. Do a check, and do the conversion only if needed.

Although preferred, The first one is probably bringing to much troubles, as the providers of url are quite dummy and out of control. Also it seems that the the state of URL depends on host. So what about the second one?

Anyway merging this, as having it reusable is much better for any upcoming actions. But please, lets continue a discussion.

oh, Our internal runner is doing something like

   REPO_TAG=`jq...`
   export TEST_DIGEST=`jq ...`
   echo "The Container Image under test is: $REPO_TAG"
   echo "The Container Test_Digest is: $TEST_DIGEST"
   # persist the container to be tested.
   echo $REPO_TAG > image_under_test
   # Set the $TEST_IMAGE value to the $REPO_HASH
   TEST_IMAGE=$REPO_TAG

Maybe you should amend (if exists) or create this file, with adjusted value (unless it is used elsewhere). Or maybe copy it if it exists and recreate so there is vlaid value, but original is possible to locate? (taht would need jenkins job archiver modification)

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.

thanks a lot. Merging now. But the fate of the function shold be please discussed further.

@judovana judovana self-requested a review April 2, 2026 07:38
@judovana judovana merged commit 100173b into rh-openjdk:main Apr 2, 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.

2 participants