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

Skip to content

Conversation

@wgahnagl
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

changes the default crio config to print default config values as comments instead of ommitting them

Which issue(s) this PR fixes:

Fixes #4770

Special notes for your reviewer:

Does this PR introduce a user-facing change?

changes default config output to comment default values instead of omitting them

@wgahnagl wgahnagl requested review from mrunalp and runcom as code owners June 16, 2021 21:01
@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: no Indicates the PR's author has not DCO signed all their commits. labels Jun 16, 2021
@openshift-ci openshift-ci bot requested a review from sboeuf June 16, 2021 21:02
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 16, 2021

Hi @wgahnagl. 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 Jun 16, 2021
@wgahnagl wgahnagl force-pushed the fixDefaultComments branch from f5e058a to e5127b7 Compare June 16, 2021 21:02
@codecov
Copy link

codecov bot commented Jun 16, 2021

Codecov Report

Merging #5007 (b91c4cb) into main (f97e462) will increase coverage by 0.05%.
The diff coverage is 60.86%.

❗ Current head b91c4cb differs from pull request most recent head d7da8b2. Consider uploading reports for the commit d7da8b2 to get more accurate results

@@            Coverage Diff             @@
##             main    #5007      +/-   ##
==========================================
+ Coverage   43.12%   43.17%   +0.05%     
==========================================
  Files         121      123       +2     
  Lines       12145    12177      +32     
==========================================
+ Hits         5237     5258      +21     
- Misses       6405     6415      +10     
- Partials      503      504       +1     

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.

/okt-ot-test

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 17, 2021
@saschagrunert
Copy link
Member

I like that one! The integration tests still do not seem to be happy, yet.

@wgahnagl wgahnagl force-pushed the fixDefaultComments branch from e5127b7 to b5f3dc9 Compare June 17, 2021 13:45
if group == configItem.group {
if displayAll || !configItem.isDefaultValue {
if !configItem.isDefaultValue {
templateString += strings.Replace(configItem.templateString, "{{ .Comment }} ", "", 1)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not seeing many cases where {{ .Comment }} is followed by a space, we may need to replace this with
strings.Replace(configItem.templateString, "{{ .Comment }}", "", 1)

Copy link
Member

Choose a reason for hiding this comment

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

also we need this to be -1 so it replaces all instances of Comment

@wgahnagl wgahnagl force-pushed the fixDefaultComments branch 2 times, most recently from 3881326 to c3f3408 Compare June 18, 2021 18:05
@haircommander
Copy link
Member

@wgahnagl can you sign off your commit?

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 22, 2021
@wgahnagl wgahnagl force-pushed the fixDefaultComments branch from c3f3408 to bcf35e4 Compare July 2, 2021 18:55
@openshift-ci openshift-ci bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 2, 2021
@wgahnagl wgahnagl force-pushed the fixDefaultComments branch 4 times, most recently from 000a406 to d8d6c73 Compare July 6, 2021 18:46
@openshift-ci openshift-ci bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Jan 12, 2022
#!/bin/bash
output=$(grep 'Comment' pkg/config/template.go | grep -v '{{ $.Comment }}')

if [ -z "$output" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

nit: we can compresss this without saving to $output

@wgahnagl wgahnagl force-pushed the fixDefaultComments branch 3 times, most recently from 2c86a5f to 41ddba1 Compare January 12, 2022 21:35
@wgahnagl wgahnagl force-pushed the fixDefaultComments branch 2 times, most recently from 373cab0 to aa753f4 Compare January 12, 2022 21:40
@haircommander
Copy link
Member

😎
/approve

thanks for keeping up with this! LGTM

@cri-o/cri-o-maintainers PTAL

Makefile Outdated
./hack/tree_status.sh

check-config-template:
./hack/validate-config.sh`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
./hack/validate-config.sh`
./hack/validate-config.sh

@@ -0,0 +1,4 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#!/bin/bash
#!/usr/bin/env bash

@wgahnagl wgahnagl force-pushed the fixDefaultComments branch 3 times, most recently from 7042e63 to a2f07e8 Compare January 13, 2022 14:27
Signed-off-by: Skyler Clark <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 13, 2022

@wgahnagl: The following tests 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/integration_crun_cgroupv2 d7da8b2 link false /test integration_cgroupv2
ci/openshift-jenkins/e2e_crun_cgroupv2 d7da8b2 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.

@wgahnagl wgahnagl requested a review from fidencio January 13, 2022 16:43
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.

lgtm, thanks @wgahnagl!

@haircommander
Copy link
Member

cc @saschagrunert for the final LGTM?

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.

/lgtm

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

openshift-ci bot commented Jan 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

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

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 [fidencio,haircommander,saschagrunert]

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

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. 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.

1.21.0 installed config is empty

7 participants