-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: fetch error with depth 1 #24433
Conversation
|
Welcome @cuyl! |
Hi @cuyl. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
Do you mean the other way around? If the BaseSHA that is being checked out is older than the HEAD of the BaseRef then the SHA would be available for checkout. I'm assuming you are referring to the BaseSHA somehow being ahead of the BaseRef HEAD and therefore not available after fetching the BaseRef.
Rerunning a job creates a new job with an identical ProwJob spec. This includes the git refs so its unclear to me how rerunning a job would lead to this. If you could share a concrete example that would be helpful. Thanks for the contribution! The error you are describing seems a bit unexpected though so I want to make sure we're fixing this in the most appropriate way. |
Oh, I see. This is specifically a problem with postsubmits that set limited clone depth. In that case this makes sense, but I am a bit concerned that this could have unintended side effects. @alvaroaleman @chaodaiG do you know if fetching the BaseRef rather than the BaseSHA is intentional/significant? I can't think of anything off the top of my head. |
I signed it |
@cuyl: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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 don't think so. We did a similar change for presubmits (motivated by some GitHub issues) which to my knowledge didn't cause any issues: #19928 /test all |
Fetching only to the commit that triggered the postsubmit, imo is even better than fetching latest HEAD, as there is no reason for a postsubmit job to fetch source code that is not meant to be used. So |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, chaodaiG, cuyl 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 |
clonerefs
failed when BaseRef is ahead of the BaseSHA. it is common when rerunning the post jobs.job config:
previous:
current: