Skip to content

ci: bump cherry-pick workflow to v1.12.2, alert Gym channel - #4119

Merged
kajalj22 merged 4 commits into
NVIDIA-NeMo:mainfrom
kajalj22:kajalj/bump-cherry-pick-template
Oct 6, 2026
Merged

kajalj22 merged 4 commits into
NVIDIA-NeMo:mainfrom
kajalj22:kajalj/bump-cherry-pick-template

Conversation

@kajalj22

@kajalj22 kajalj22 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Bump the shared cherry-pick workflow pin in .github/workflows/cherry-pick-release-commit.yml from v0.63.0 to v1.12.2.
  • Send the workflow's conflict alert to the Gym alerts channel by passing the team channel webhook
  • Tag the Gym support group on the alert with notify-mention.

Why

v0.63.0 ignores command failures. When a release-labeled PR conflicts with the release branch, the job:

  • still force-pushes a cherry-pick-<number>-<release branch> branch that contains only the release branch (no change),
  • reports the failure only to a Slack webhook that no longer works, and curl treats the Slack error response (no_service) as success,
  • finishes green, so nobody learns the cherry-pick never happened and no cp: PR exists.

v1.12.2 fixes this: the job fails on a conflict, no empty branch is pushed, and a failed Slack post is logged as an error instead of hiding the result. Pointing SLACK_WEBHOOK at the team channel webhook makes the alert actually arrive, with the PR author, a PR link and the support group tag.

Test plan

Tested on a throwaway trigger branch with a dummy release branch (the workflow file from this PR, with the trigger branch, target-branch pattern and CI label overridden and the mention pointed at one user instead of the group). All throwaway branches and the test label were deleted afterwards.

  • Pinned SHA b7c7f7d585ad8f529a111e69afcbf14f0279663e matches the v1.12.2 tag in NVIDIA-NeMo/FW-CI-templates
  • Org-level PAT and repo-level SLACK_TEAM_CHANNEL_WEBHOOK secrets confirmed present
  • Push with no release label: job succeeds, nothing cherry-picked
  • Conflicting release-labeled PR: job fails on the conflict, no empty cherry-pick-* branch is pushed, and the failure alert is posted to the Gym alerts channel with the mention rendered

v0.63.0 ignores command failures, so a conflicting cherry-pick still
force-pushes an empty cherry-pick branch and the job ends green. v1.12.2
fails the job on a conflict, skips the empty push, and treats a failed
Slack post as an error instead of hiding it.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22
kajalj22 requested a review from a team as a code owner October 6, 2026 18:01
@copy-pr-bot

copy-pr-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

The shared workflow's own Slack alert goes to a webhook that no longer
works. Add a follow-up job that sends the failure to the same team
channel webhook the nightly CI failure alert uses. It runs in the main
environment, which holds that secret; a job that calls a reusable
workflow cannot set an environment itself.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22 kajalj22 changed the title ci: bump cherry-pick workflow to FW-CI-templates v1.12.2 ci: bump cherry-pick workflow to v1.12.2 and alert on failure Oct 6, 2026
Pass the team channel webhook (now a repo-level secret) to the shared
workflow so its own conflict alert reaches the Gym alerts channel, and
tag the Gym support group via notify-mention. This replaces the
separate notify-failure job, which only existed because the webhook was
an environment secret the caller could not read.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Kajal Jain <[email protected]>
@kajalj22 kajalj22 changed the title ci: bump cherry-pick workflow to v1.12.2 and alert on failure ci: bump cherry-pick workflow to v1.12.2, alert Gym channel Oct 6, 2026
@kajalj22 kajalj22 added the r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Oct 6, 2026
@kajalj22

kajalj22 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test eb0d301

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 6, 2026 18:42
@kajalj22
kajalj22 merged commit d047622 into NVIDIA-NeMo:main Oct 6, 2026
4 checks passed
kajalj22 added a commit that referenced this pull request Oct 6, 2026
…9)` into `r0.7.0` (#4124)

beep boop [🤖]: Hi @kajalj22 👋,

    we've cherry picked #4119 into `r0.7.0` for you! 🚀

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Kajal Jain <[email protected]>
Signed-off-by: NeMo Bot <[email protected]>
Co-authored-by: kajalj22 <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants