Skip to content

CI: Fix backport workflow - #395

Merged
leofang merged 2 commits into
NVIDIA:mainfrom
leofang:fix_backport
Jan 15, 2025
Merged

CI: Fix backport workflow#395
leofang merged 2 commits into
NVIDIA:mainfrom
leofang:fix_backport

Conversation

@leofang

@leofangleofang commented Jan 15, 2025

Copy link
Copy Markdown
Member

This PR contains 2 fixes, both due to me misreading the documentation 😛

  1. I noticed the conflict_resolution argument causes a warning because it's an experimental feature of the backport action, and it should not be passed directly as a input argument, but as a part of json.
    https://github.com/korthout/backport-action#conflict_resolution
  2. I've noticed the backport workflow went nuts in a few recently-merged PRs, where the backport step is triggered even if the PR does not have the to-be-backported label, ex: Document header requirements for Cython users #372 (comment). It turns out that label_pattern is meant to be used as a way to find the backport branch (for which we already set target_branch), not the way I intend it to (add a label to trigger backport upon merge). This is now fixed.

@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@leofang
leofang marked this pull request as draft January 15, 2025 07:49
@copy-pr-bot

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@leofangleofang changed the title CI: Removed wrong input argumentCI: Fix backport workflowJan 15, 2025
@leofangleofang self-assigned this Jan 15, 2025
@leofang
leofang requested review from rwgk and vzhurba01January 15, 2025 07:57
@leofangleofang added bug Something isn't working P0 High priority - Must do! CI/CD CI/CD infrastructure labels Jan 15, 2025
@leofang
leofang marked this pull request as ready for review January 15, 2025 07:57
@leofang

Copy link
Copy Markdown
MemberAuthor

/ok to test

@leofangleofang mentioned this pull request Jan 15, 2025

@rwgkrwgk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — I'm not very familiar with the details here, but the PR description is very clear!

@leofang
leofang merged commit 71c9f23 into NVIDIA:mainJan 15, 2025
@leofang
leofang deleted the fix_backport branch January 15, 2025 16:59
@leofang

Copy link
Copy Markdown
MemberAuthor

Thanks, Ralf! Let me merge and monitor if it is indeed fixed.

@leofangleofang mentioned this pull request Jan 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't workingCI/CDCI/CD infrastructureP0High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@leofang@rwgk