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

Branch protector is failing with "update kubernetes-sigs: update metrics-server: update gh-pages" #26041

Closed
chaodaiG opened this issue Apr 20, 2022 · 14 comments
Labels
area/prow Issues or PRs related to prow kind/bug Categorizes issue or PR as related to a bug. sig/testing Categorizes an issue or PR as relevant to SIG Testing.

Comments

@chaodaiG
Copy link
Contributor

What happened:

Branch protector job is failing consistently:

{"component":"branchprotector","file":"k8s.io/test-infra/prow/cmd/branchprotector/protect.go:118","func":"main.(*Errors).add","level":"info","msg":"update kubernetes-sigs: update metrics-server: update gh-pages from protected=false: get policy: required prow jobs require branch protection","severity":"info","time":"2022-04-20T20:00:31Z"}
{"component":"branchprotector","error":"update kubernetes-sigs: update metrics-server: update gh-pages from protected=false: get policy: required prow jobs require branch protection","file":"k8s.io/test-infra/prow/cmd/branchprotector/protect.go:160","func":"main.main","level":"error","msg":"0","severity":"error","time":"2022-04-20T20:00:31Z"}
{"component":"branchprotector","file":"k8s.io/test-infra/prow/cmd/branchprotector/protect.go:162","func":"main.main","level":"fatal","msg":"Encountered 1 errors protecting branches","severity":"fatal","time":"2022-04-20T20:00:31Z"}

link: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/ci-test-infra-branchprotector/1516867945198784512
see more: https://prow.k8s.io/job-history/gs/kubernetes-jenkins/logs/ci-test-infra-branchprotector

What you expected to happen:

it should pass

/sig testing

@chaodaiG chaodaiG added the kind/bug Categorizes issue or PR as related to a bug. label Apr 20, 2022
@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Apr 20, 2022
@BenTheElder
Copy link
Member

BenTheElder commented Apr 27, 2022

this error message is a bit inscrutable, does anyone know what actually happened here?
/area prow
cc @cjwagner @stevekuznetsov

@k8s-ci-robot k8s-ci-robot added the area/prow Issues or PRs related to prow label Apr 27, 2022
@cjwagner
Copy link
Member

It sounds like this configuration is invalid:

metrics-server:
branches:
gh-pages:
protect: false

The gh-pages branch disables branch protection, but since required ProwJobs are configured for the branch that is not allowed. I'm not sure why this isn't validated earlier, seems like we should be able to do this validation in checkconfig.
#24222 @stevehipwell

@stevehipwell
Copy link
Contributor

@Raffo it looks like the documentation PR that was merged has broken this. We might need it rolled back until the implications have been considered.

@stevehipwell
Copy link
Contributor

@cjwagner additional automation has been added to the repo since branch protection was disabled. The branch protection needs to stay off for the Helm chart publishing, so the new workflow needs reviewing with this information.

@Raffo
Copy link

Raffo commented Apr 29, 2022

@stevehipwell wow, how can a failure in the pages for external-dns break test-infra is unknown to me. Working on a rollback now.

@Raffo
Copy link

Raffo commented Apr 29, 2022

Revert PR: kubernetes-sigs/external-dns#2727

@Raffo
Copy link

Raffo commented Apr 29, 2022

The revert PR has been merged, I hope this fixes the problem for now.

@stevehipwell let's chat for what's needed to reintroduce it safely.

@BenTheElder
Copy link
Member

Still failing. Need to revert to test-infra config next?

@stevehipwell
Copy link
Contributor

@cjwagner sorry I've been away for a long weekend. Did you figure out if the issue was the ExternalDNS config or the Metrics Server config? I'm not aware of any recent changes to Metrics Server CI which would have this suddenly failing if it was validated when I opened the PR, but maybe it didn't validate fully? ExternalDNS did have a CI change but I don't see any enforced prow jobs so I'm not sure if the code @Raffo reverted actually needed to be?

@Raffo
Copy link

Raffo commented May 3, 2022

@stevehipwell yeah I only reverted to make sure we can make progress on this, happy to reopen the PR again to external-dns once you tell me we're good to go.

@stevehipwell
Copy link
Contributor

@Raffo I think it'd be OK to open it back up again but I think @cjwagner is in a better position to confirm if its safe to do so or not.

@cjwagner
Copy link
Member

cjwagner commented May 3, 2022

The config fix to remove the required jobs from kubernetes-sigs/metrics-server:gh-pages (#26173) seems to have been sufficient. The branchprotector is passing reliably again: https://prow.k8s.io/job-history/gs/kubernetes-jenkins/logs/ci-test-infra-branchprotector
I don't see any indication that the external-dns repo was involved at all here. Unless I'm missing something that change didn't need to be reverted and can be safely reapplied. Please keep an eye on the branchprotector status after reintroducing the change just in case though.

@cjwagner
Copy link
Member

cjwagner commented May 3, 2022

fixed by #26173
/close

@k8s-ci-robot
Copy link
Contributor

@cjwagner: Closing this issue.

In response to this:

fixed by #26173
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prow Issues or PRs related to prow kind/bug Categorizes issue or PR as related to a bug. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

No branches or pull requests

6 participants