Skip to content
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

reintroduce helm-docs step in ci #8164

Merged
merged 1 commit into from
Jan 20, 2022
Merged

reintroduce helm-docs step in ci #8164

merged 1 commit into from
Jan 20, 2022

Conversation

longwuyuan
Copy link
Contributor

@longwuyuan longwuyuan commented Jan 19, 2022

helm-docs step was removed from ci.yaml so re-introducing it.

While trying to automate helm-docs in CI. But GITHUB_TOKEN failed as the committer needs to have cla-signed and GITHUB_TOKEN does not have cla-signed, and helm-docs automation requires to commit a changed /charts/ingress-nginx/README.md back into the project. Using GITHUB_TOKEN, this is the error ;

remote: error: GH006: Protected branch update failed for refs/heads/main.        
remote: error: Required status check "cla/linuxfoundation" is expected.        
To https://github.com/kubernetes/ingress-nginx.git
 ! [remote rejected]     main -> main (protected branch hook declined)
error: failed to push some refs to 'https://github.com/kubernetes/ingress-nginx.git'
Error: Process completed with exit code 1.

So now re-adding helm-docs step, only for verify, while we work on a better solution for helm-docs automation in CI.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 19, 2022
@longwuyuan
Copy link
Contributor Author

@rikatz @tao12345666333 @cpanato , looking for lgtm/approve on this. Thanks

@cpanato
Copy link
Member

cpanato commented Jan 19, 2022

/triage accepted
/kind feature
/priority important-soon

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority labels Jan 19, 2022
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 19, 2022
@longwuyuan
Copy link
Contributor Author

/assign @strongjz
James, looking for approve on this

Copy link
Member

@tao12345666333 tao12345666333 left a comment

Choose a reason for hiding this comment

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

/lgtm

BTW putting it back in, will this still be the same problem we had before the Release process?

@longwuyuan
Copy link
Contributor Author

longwuyuan commented Jan 19, 2022

@tao12345666333 if the diff is not "nil", then yes

@rikatz
Copy link
Contributor

rikatz commented Jan 19, 2022

/approve
/hold

Is there a way at least of giving a more user friendly error on gh actions, asking users to run helm-docs?

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 19, 2022
@longwuyuan
Copy link
Contributor Author

We can put an bash echo statement there for now if you like.
I am more favouring your personal token or anybody else's personal token at least for now so we can get past that cla-required error

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 19, 2022
@longwuyuan
Copy link
Contributor Author

I copied your attempted if condition from yesterday and put a echo statement there. Please check latest commit @rikatz

@rikatz
Copy link
Contributor

rikatz commented Jan 20, 2022

/lgtm
/unhold
Thanks!

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 20, 2022
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 20, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, longwuyuan, rikatz, tao12345666333

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 922e27f into kubernetes:main Jan 20, 2022
@longwuyuan longwuyuan deleted the reintroduce-helmdocs branch January 21, 2022 01:31
@tao12345666333 tao12345666333 mentioned this pull request Feb 27, 2022
rchshld pushed a commit to joomcode/ingress-nginx that referenced this pull request May 19, 2023
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants