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

fix: add missing get-reference-base script for select-oci-auth #341

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

mmalina
Copy link
Contributor

@mmalina mmalina commented Dec 12, 2024

select-oci-auth stopped working when the oras image ref was updated to the latest one.

The select-oci-auth in the oras-container repo was refactored and part of the logic was moved to a new get-reference-base script, which it uses. So we need to add that script.

Related PR:
konflux-ci/oras-container#133

The push-disk-images internal task was updated to use the broken image and now it causes issues: hacbs-release/app-interface-deployments#256

`select-oci-auth` stopped working when the oras image ref
was updated to the latest one.

The `select-oci-auth` in the oras-container repo was refactored
and part of the logic was moved to a new `get-reference-base`
script, which it uses. So we need to add that script.

Related PR:
konflux-ci/oras-container#133

Signed-off-by: Martin Malina <[email protected]>
@mmalina mmalina requested a review from a team as a code owner December 12, 2024 12:02
Copy link
Member

@seanconroy2021 seanconroy2021 left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalina mmalina merged commit 597145c into konflux-ci:main Dec 12, 2024
5 checks passed
@mmalina mmalina deleted the select-auth-fix branch December 12, 2024 12:24
@mmalina
Copy link
Contributor Author

mmalina commented Dec 12, 2024

I can easily reproduce the issue in the latest image:

$ podman run -i -t --rm quay.io/konflux-ci/release-service-utils:latest /bin/bash
# select-oci-auth quay.io/redhat-pending/bla/bla
/usr/local/bin/select-oci-auth: line 26: get-reference-base: command not found

So once we get a new image from this merge, I will verify it's fixed and then update the image for the push-disk-images task

@mmalina
Copy link
Contributor Author

mmalina commented Dec 12, 2024

And now with the new image:

podman run -i -t --rm quay.io/konflux-ci/release-service-utils@sha256:62c621991cc4c804540bee9fc3f132ee6df3a87f69b8cfd51dc77a2fe1507f2c /bin/bash
# select-oci-auth quay.io/redhat-pending/bla/bla
Token not found for quay.io/redhat-pending/bla/bla
{"auths": {}}

Looking good.

mmalina added a commit to mmalina/app-interface-deployments that referenced this pull request Dec 12, 2024
The image was updated recently to get a fix for a missing
packaging python module:
hacbs-release#256

But the new image introduced a regression in the
select-oci-auth script. So now it's fixed in this new image:
konflux-ci/release-service-utils#341

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/app-interface-deployments that referenced this pull request Dec 12, 2024
The image was updated recently to get a fix for a missing
packaging python module:
hacbs-release#256

But the new image introduced a regression in the
select-oci-auth script. So now it's fixed in this new image:
konflux-ci/release-service-utils#341

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/app-interface-deployments that referenced this pull request Dec 12, 2024
The image was updated recently to get a fix for a missing
packaging python module:
hacbs-release#256

But the new image introduced a regression in the
select-oci-auth script. So now it's fixed in this new image:
konflux-ci/release-service-utils#341

Signed-off-by: Martin Malina <[email protected]>
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.

3 participants