Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@klihub
Copy link
Contributor

@klihub klihub commented Feb 1, 2022

What type of PR is this?

/kind bug

What this PR does / why we need it:

Commands with a single quote (') in their usage string cause syntactically incorrect zsh completion generation. This patchset aims to fix that, while it also reformats the generated zsh completions for easier diffing with less contextual noise in the future.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix zsh completion generation.

@klihub klihub requested review from mrunalp and runcom as code owners February 1, 2022 09:23
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. labels Feb 1, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 1, 2022

Hi @klihub. Thanks for your PR.

I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 1, 2022
@codecov
Copy link

codecov bot commented Feb 1, 2022

Codecov Report

Merging #5586 (e5dad09) into main (293de81) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main    #5586      +/-   ##
==========================================
+ Coverage   43.23%   43.24%   +0.01%     
==========================================
  Files         123      123              
  Lines       12214    12218       +4     
==========================================
+ Hits         5281     5284       +3     
- Misses       6425     6426       +1     
  Partials      508      508              

@klihub klihub force-pushed the devel/diff-friendly-completions branch 4 times, most recently from 4357671 to d25d457 Compare February 1, 2022 13:19
@haircommander
Copy link
Member

/ok-to-test
/approve

LGTM, thanks @klihub

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 1, 2022
@klihub
Copy link
Contributor Author

klihub commented Feb 1, 2022

/test integration_cgroupv2

@haircommander
Copy link
Member

@cri-o/cri-o-maintainers PTAL

@klihub
Copy link
Contributor Author

klihub commented Feb 1, 2022

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 1, 2022

@klihub: The following commands are available to trigger required jobs:

  • /test ami_fedora
  • /test ami_rhel
  • /test critest_fedora
  • /test critest_rhel
  • /test e2e-agnostic
  • /test e2e-gcp
  • /test e2e_crun
  • /test e2e_features_fedora
  • /test e2e_features_rhel
  • /test e2e_fedora
  • /test e2e_rhel
  • /test images
  • /test integration_crun
  • /test integration_fedora
  • /test integration_rhel
  • /test kata-containers

The following commands are available to trigger optional jobs:

  • /test e2e_cgroupv2
  • /test integration_cgroupv2

Use /test all to run the following jobs that were automatically triggered:

  • kata-containers-2-crio-PR
  • pull-ci-cri-o-cri-o-main-e2e-agnostic
  • pull-ci-cri-o-cri-o-main-e2e-gcp
  • pull-ci-cri-o-cri-o-main-images
  • test_pull_request_crio_critest_fedora
  • test_pull_request_crio_critest_rhel
  • test_pull_request_crio_e2e_crun_fedora
  • test_pull_request_crio_e2e_crun_fedora_cgroupv2
  • test_pull_request_crio_e2e_features_fedora
  • test_pull_request_crio_e2e_features_rhel
  • test_pull_request_crio_e2e_fedora
  • test_pull_request_crio_e2e_rhel
  • test_pull_request_crio_integration_crun_fedora
  • test_pull_request_crio_integration_crun_fedora_cgroupv2
  • test_pull_request_crio_integration_fedora
  • test_pull_request_crio_integration_rhel
Details

In response to this:

/test ?

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.

@klihub
Copy link
Contributor Author

klihub commented Feb 1, 2022

/test integration_crun

@klihub
Copy link
Contributor Author

klihub commented Feb 1, 2022

/test integration_cgroupv2

Copy link
Contributor

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

@klihub, just a small suggestion, which could be applied to pretty much all blocks changed.
Please, let me know what do you think.

@TomSweeneyRedHat
Copy link
Contributor

LGTM once tests are happy and @fidencitio suggestions are resolved.

@klihub klihub force-pushed the devel/diff-friendly-completions branch 2 times, most recently from 11e3639 to a971271 Compare February 2, 2022 13:00
@fidencio
Copy link
Contributor

fidencio commented Feb 2, 2022

LGTM, thanks @klihub!

@haircommander
Copy link
Member

/retest

@haircommander
Copy link
Member

/test integration_crun_cgroupv2

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 2, 2022

@haircommander: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test ami_fedora
  • /test ami_rhel
  • /test critest_fedora
  • /test critest_rhel
  • /test e2e-agnostic
  • /test e2e-gcp
  • /test e2e_crun
  • /test e2e_features_fedora
  • /test e2e_features_rhel
  • /test e2e_fedora
  • /test e2e_rhel
  • /test images
  • /test integration_crun
  • /test integration_fedora
  • /test integration_rhel
  • /test kata-containers

The following commands are available to trigger optional jobs:

  • /test e2e_cgroupv2
  • /test integration_cgroupv2

Use /test all to run the following jobs that were automatically triggered:

  • kata-containers-2-crio-PR
  • pull-ci-cri-o-cri-o-main-e2e-agnostic
  • pull-ci-cri-o-cri-o-main-e2e-gcp
  • pull-ci-cri-o-cri-o-main-images
  • test_pull_request_crio_critest_fedora
  • test_pull_request_crio_critest_rhel
  • test_pull_request_crio_e2e_crun_fedora
  • test_pull_request_crio_e2e_crun_fedora_cgroupv2
  • test_pull_request_crio_e2e_features_fedora
  • test_pull_request_crio_e2e_features_rhel
  • test_pull_request_crio_e2e_fedora
  • test_pull_request_crio_e2e_rhel
  • test_pull_request_crio_integration_crun_fedora
  • test_pull_request_crio_integration_crun_fedora_cgroupv2
  • test_pull_request_crio_integration_fedora
  • test_pull_request_crio_integration_rhel
Details

In response to this:

/test integration_crun_cgroupv2

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.

Reformat generated zsh for easier diffing. Try to be smarter
for usage strings that contain single quotes (eg. crio wipe).

Signed-off-by: Krisztian Litkey <[email protected]>
@klihub klihub force-pushed the devel/diff-friendly-completions branch from a971271 to e5dad09 Compare February 3, 2022 15:45
@fgiudici
Copy link
Contributor

fgiudici commented Feb 4, 2022

/test integration_fedora

@fgiudici
Copy link
Contributor

fgiudici commented Feb 4, 2022

/test integration_rhel

@fidencio
Copy link
Contributor

fidencio commented Feb 4, 2022

/retest

@haircommander
Copy link
Member

/retest-required

(if it continues to fail we can override e2e-agnositc, gcp passed)

ping @saschagrunert for final review/tag?

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

/retest-required
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, klihub, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [haircommander,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2022

@klihub: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/openshift-jenkins/e2e_crun_cgroupv2 e5dad09 link false /test e2e_cgroupv2

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 93cdb46 into cri-o:main Feb 7, 2022
@klihub klihub deleted the devel/diff-friendly-completions branch February 7, 2022 15:05
@askervin askervin mentioned this pull request Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants