-
Notifications
You must be signed in to change notification settings - Fork 263
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
feat: Add aliases to commands #1041
Conversation
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.
@arghya88: 0 warnings.
In response to this:
Description
Adds aliases to commands
Reference
Fixes #940
/lint
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.
92f24b5
to
837efda
Compare
/retest |
2 similar comments
/retest |
/retest |
/retest
|
/retest |
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.
Thanks ! Looks good, but could you please add some tests ? This shouldn't be hard by either copying already existing tests or modifying some of the existing tests to use an alias instead of the original command.
I'd suggest to add additional test for the unit tests (possible wrapping existing tests into a loop). This does not have to be done every, some tests are fine (as I think we can confident if the alias resolution worked once that it then works everywhere)
For the integration tests please modify some of the existing tests to use aliases, too, so that you have a mix of tests. The reason why I would like to avoid to add additional e2e tests is, that this would add to the overall time for the e2e test suite, which I think is not needed for just testing that aliases are resolved properly.
/retest |
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.
Thanks for contribution. An integration tests that mixes aliases and non-alias commands would be nice.
/approve |
ee2a66e
to
798bd02
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.
+1 to the point raised by @danielhelfand , but can be done in a subsequent PR once we know what preventing cobra to document that. Lets get this in today (release day), just a minor nit to follow the alias hint for command group as well.
/retest |
/retest |
+1 for adding this now and adding the testing + doc tuning after this PR got merged |
/retest |
1 similar comment
/retest |
@navidshaikh tests passed finally..PTAL |
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
/approve
thanks @arghya88 !
The CI flakes should be solved in upcoming patch release.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arghya88, maximilien, navidshaikh 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 |
logged #1045 to track the auto doc for aliases |
Description
Adds aliases to commands
Reference
Fixes #940
/lint