tools: avoid crashing CQ when git push fails#36861
tools: avoid crashing CQ when git push fails#36861aduh95 wants to merge 2 commits intonodejs:masterfrom
Conversation
|
Ping @mmarchini |
mmarchini
left a comment
There was a problem hiding this comment.
LGTM. I assume this was not tested, correct? If that's the case I'd suggest whoever lands this to keep an eye on the CQ right after landing to ensure it doesn't break anything, and if it does be ready to open a revert and fast-track it.
| commit_queue_failed "$pr" | ||
| # If `git node land --abort` fails, we're in unknown state. Better to stop | ||
| # the script here, current PR was removed from the queue so it shouldn't | ||
| # interfer again in the future |
There was a problem hiding this comment.
| # interfer again in the future | |
| # interfere again in the future |
There was a problem hiding this comment.
This can be fixed in another PR, this PR may need an immediate revert if it breaks the CQ.
| } | ||
|
|
||
| # TODO(mmarchini): should this be set with whoever added the label for each PR? | ||
| git config --local user.email "github-bot@iojs.org" |
There was a problem hiding this comment.
Out of curiosity, why? Just haven't gotten around to changing it?
There was a problem hiding this comment.
Probably. I don't have context on it tbh.
|
Landed in 864195b...240c8bc |
PR-URL: #36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
|
CQ just landed #38870 (comment), seems like everything is working as expected 🚀 |
PR-URL: #36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
PR-URL: #36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
PR-URL: #36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
PR-URL: #36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
PR-URL: nodejs#36861 Reviewed-By: Mary Marchini <oss@mmarchini.me>
This is useful in case someone pushed to the master branch while the CQ was trying to land a PR, or if the CQ bot doesn't have the correct credentials. Currently it silently crashes, without adding a
commit-queue-failedlabel on the PRs; with this PR, it should always add a label and comment on the PR./cc @mmarchini