bumper: Verify new release image exist#2632
Conversation
Currently when a components release is issued, it take time for the image to upload to the registry. The result is the auto-bumper posting bump PR but the image is not available yet. To workaround this check that the component new release image exist before posting a PR. Extent components.yaml to contain the container image base tag. The check assume the new image tag match the 'metadata' field. Signed-off-by: Or Mergi <ormergi@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
you have my buy-in to this. Let's just see CI passing :) |
|
|
@ormergi thank you for tackling this! My 2cents: Skopeo is flaky sometimes, why not just check if the output images are valid? |
I didn't manage to implement this check using curl/wget and keep in agnostic to the target registry. Did you mean to utilize container runtime for this? Where does skopeo falls that makes it flaky? Do you think some retrying mechanism would stabilize it? |
|
The new check relay on the fact the new release image tag is the same as the release tag. This PR may not work for Kubemacpool as expected: Possible workaround would to address this on kubemacpool release process side. I updated the PR description with this finding. |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hey @ormergi thanks for this change, but the fact that some components follow latest branch commits kinda makes it harder to predict (like KMP as you mentioned). Please consider a different approach, like checking the images vars. |



What this PR does / why we need it:
Currently when a components release is issued, it take time for the image to upload to the registry.
The result is the auto-bumper posting bump PR but the image is not available yet.
To workaround this check that the component new release image exist before posting a PR.
Extent components.yaml to contain the container image base tag.
The check assume the new image tag match the 'metadata' field.
Special notes for your reviewer:
The new check relay on the fact the new release image tag is the same as the release tag.
For example, ipam-ext release is
v0.6.0-rc1, the release container image tag will beghcr.io/kubevirt/ipam-controller:v0.6.0-rc1.This PR may not work for Kubemacpool as expected:
Kubemacpool release tags doesnt equal to the release image tag, for example:
release tag -
v0.50.0-25-g5727cd1-https://github.com/kubevirt/cluster-network-addons-operator/blob/main/components.yaml#L19
container image tag -
v0.50.0-25-g5727cd18https://quay.io/repository/kubevirt/kubemacpool?tab=tags&tag=%20v0.50.0-25-g5727cd18
It seems that the container tag missing containing one extra character (from the commit SHA).
Possible workaround would to address this on kubemacpool release process side.
Release note: