-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(util/git): Skip PR update on "force-with-lease" errors #14228
fix(util/git): Skip PR update on "force-with-lease" errors #14228
Conversation
lib/util/git/error.ts
Outdated
@@ -124,7 +124,7 @@ export function handleCommitError( | |||
logger.info( | |||
'Branch update was rejected because local copy is not up-to-date.' | |||
); | |||
return null; | |||
throw new ExternalHostError(err, 'git'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'[rejected] (stale info)'
can be added to externalHostFailureStrings
instead, but log message would be too verbose IMO.
Anyway, please suggest better alternative if the solution is okay in general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it look in the logs with your current suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it look in the logs with your current suggestion?
Please, take a look here: #14228 (comment)
Log messages from reproduction repo (no PRs were updated):
|
I was expecting to see an err logged somehow. Do we swallow it all now? It's ok if so |
…orce-with-lease-error
|
Ah, haven't noticed you're okay with swallowing. So yes, at first I decided we don't need to log error as we handle it now explicitly. |
🎉 This PR is included in version 31.82.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
ExternalHostError
and re-throw, which will leadprocessBranch()
to skip the branch updating for this run.Context:
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: