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

fix: do not run git cherry-pick --abort on failure #671

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Feb 26, 2023

I personally find it useful to keep the cherry-pick session as is to help with debugging what's going wrong.

@codecov
Copy link

codecov bot commented Feb 26, 2023

Codecov Report

Base: 83.41% // Head: 83.41% // No change to project coverage 👍

Coverage data is based on head (0d5cdd5) compared to base (6926407).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #671   +/-   ##
=======================================
  Coverage   83.41%   83.41%           
=======================================
  Files          37       37           
  Lines        4136     4136           
=======================================
  Hits         3450     3450           
  Misses        686      686           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@targos
Copy link
Member

targos commented Mar 4, 2023

This is to help manual landing? Is it going to change something for CQ landing?

@aduh95
Copy link
Contributor Author

aduh95 commented Mar 7, 2023

This is to help manual landing?

Correct, e.g. when a PR contains merge commits.

Is it going to change something for CQ landing?

It should not, because the CQ runs git node land --abort after each failed attempt, and that would reset any git cherry-pick session:

async tryAbortCherryPick() {
const { cli } = this;
if (!this.cherryPickInProgress()) {
return cli.ok('No git cherry-pick in progress');
}
const shouldAbortCherryPick = await cli.prompt(
'Abort previous git cherry-pick sessions?');
if (shouldAbortCherryPick) {
await forceRunAsync('git', ['cherry-pick', '--abort']);
cli.ok('Aborted previous git cherry-pick sessions');
}
}

@aduh95 aduh95 merged commit 1e6f5d3 into nodejs:main Mar 8, 2023
@aduh95 aduh95 deleted the no-abort branch March 8, 2023 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants