-
Notifications
You must be signed in to change notification settings - Fork 40k
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
git checkout fails with "reference is not a tree" #27462
Comments
@mikedanese can you triage? Is this related to the new job somehow? |
Ok, it's also happening on unit/integration on that pr Could be something that only happens with cherrypicks. It's strange because the unit/integration tests did not change at all. |
edit: What I describe below is true and can happen, but most of our cases are caused by a race condition in the Jenkins plugin and aren't caused by anyone force-pushing. Oh! I think I remember this one. I think what happens is this:
It might not be exactly that, since we actually try to check out the merge commit, but I think that's the idea. |
@spxtr - what you wrote sounds reasonable and it seems that we can't do much with it. Can we close this one? |
I think so, or maybe remove the |
There was no push in #27913, but it still encountered the same problem. Reopening the issue. |
So it looks pretty clear that the GitHub PR builder plugin doesn't handle multiple executors very well. We try to check out There was a rework of some of the envvar code recently, and I tried upgrading the plugin to see if that fixed the issue, but I then ran into a different as-of-yet undiagnosed issue where the plugin was failing to schedule any jobs at all. I'm noticing that jenkinsci/ghprb-plugin@9c46eab merged since then, and could very likely explain the more recent issue. So I might try upgrading the plugin again. |
Yeah, jenkinsci/ghprb-plugin#366 is almost certainly the more recent issue. |
Upgraded the plugin, and tests are running again. Let's see if we keep having issues with the checkouts. |
Latest version of the plugin (1.32.8) is broken in a new and fun way:
Looking at the logs, it seems to be repeatedly querying PRs without abandon; I see lines like
repeating a few times per PR per minute. Downgrading back to 1.31.4 again... |
BTW this is a problem with the Git plugin, not the GitHub PR Builder plugin. |
What makes you say that? From a recent run:
Note how the branch being checked out suddenly changed. I assume that is the GitHub PR Builder plugin's fault, not git. |
I hit this issue in a test job that didn't use the PR builder plugin, only the Git plugin. I deleted the test job and now I can't find the logs. The PR builder plugin just triggers the jobs with the appropriate parameters. It doesn't actually do the checkout. |
@spxtr maybe it's a bug in Jenkins' parameter handling, then? |
anyway, once we get rid of the GHPRB plugin, we can update Jenkins and see if the issue goes away. |
Agreed. If not then Erick is working on getting rid of the Git plugin. |
@spxtr https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/32082/kubernetes-pull-test-unit-integration/43439/ was once again the GHPRB plugin... |
It's the Git plugin. I've patched it and installed the fixed version on pr-jenkins last night, and haven't observed any failures since then. Normally there are ~20 failures per day. See JENKINS-26290 for the full details. |
I see the following in Jenkins verification of #27453:
Artifacts at https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/27453/kubernetes-pull-verify-all/140
The text was updated successfully, but these errors were encountered: