-
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
🐛 regression - extracommands require a valid PROJECT file again #2126
🐛 regression - extracommands require a valid PROJECT file again #2126
Conversation
Welcome @jmrodri! |
Hi @jmrodri. 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/test-infra repository. |
@estroz I'm having trouble creating a test for this. I need a way to pass in an invalid PROJECT file. I started adding a |
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.
I don't think that omitting the error is the best approach, as this will not set the CLI's project-version, thus trying to obtain it from --project-version
(which would probably be not provided) and then trying to resolve it automatically from the list of plugins, which may not be possible, and thus still resulting in an error. I think that we should probably set CLI's project-version to 3 if 3-alpha is encountered inside the switch
statement I mention below.
/ok-to-test |
Just a small note that was commented during the triage meeting. As this variable is used for plugin resolution, I nice approach could be once a version is not found and seeing that the version is unstable (alpha/beta), if the corresponding stable version exists, set that so that plugin resolution can still work properly. |
The result of using this PR with the SDK is:
|
3a6040d
to
2a1ff46
Compare
2a1ff46
to
d2a5b6d
Compare
/test pull-kubebuilder-e2e-k8s-1-16-15 |
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.
👍
d2a5b6d
to
5c61117
Compare
5c61117
to
6beb9d5
Compare
|
UPDATE: we agreed that |
9588ee0
to
c10fa17
Compare
93eaf29
to
898c685
Compare
898c685
to
02dceb7
Compare
* Handle failing on 3-alpha configs * Set project version to stable version if the it is registered * Added IsRegistered command to registry * Add unit test for buildCmd * Add unit test for IsRegistered * Fix typo in test name: resgitry_test -> registry_test Signed-off-by: jesus m. rodriguez <jesusr@redhat.com>
02dceb7
to
2442aa7
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, camilamacedo86, jmrodri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ignore UnsupportedVersion error to allow extra commands to be able to actually run.
Fixes: #2125