-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
🌱 Better error message when metadata.yaml might be out of date. #11959
base: main
Are you sure you want to change the base?
🌱 Better error message when metadata.yaml might be out of date. #11959
Conversation
[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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @guettli. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions 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. |
/ok-to-test |
/area clusterctl |
@@ -110,7 +110,7 @@ func latestPatchRelease(ctx context.Context, repo Repository, major, minor *int3 | |||
} | |||
|
|||
if len(versionCandidates) == 0 { | |||
return "", errors.New("failed to find releases tagged with a valid semantic version number") | |||
return "", errors.New("failed to find releases tagged with a valid semantic version number (metadata.yaml up-to-date?)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not always out of date, it could be simply that this provider version is not compatible with the chosen capi version.
I'd guess the metadata misses the version thing only happens in one of these three cases? and the message might be misleading in the two cases where we would return it but its unrelated?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are new to that, then it is likely that you do not know about metadata.yaml.
What about just adding (metadata.yaml)
?
But overall it is now no longer very important for me. I just care for other people which are new to that topic.
We can close the PR, if we do not find a simple solution. Maybe this PR (even it is just closed and not merged) helps people to find the right answer :-)
What this PR does / why we need it:
If you do not update metadata.yaml, you might get a hard-to-understand error message in e2e tests (and other places):
Related: #10332 (comment)
This PR adds: