Skip to content

[ML] Fail Backport workflow when CLI reports no-branches with version labels#3055

Open
edsavage wants to merge 1 commit intoelastic:mainfrom
edsavage:ml/backport-workflow-no-branches-error
Open

[ML] Fail Backport workflow when CLI reports no-branches with version labels#3055
edsavage wants to merge 1 commit intoelastic:mainfrom
edsavage:ml/backport-workflow-no-branches-error

Conversation

@edsavage
Copy link
Copy Markdown
Contributor

@edsavage edsavage commented May 7, 2026

Summary

After #3052 merged with v9.x.x labels, the Backport workflow completed green even though the sorenlouv/backport CLI raised no-branches-exception and no backport PRs were created (see https://github.com/elastic/ml-cpp/actions/runs/25476521769).

Changes

  • When no-branches-exception appears in backport.debug.log and the PR matched our vN.N.N label check, the workflow fails with a clear ::error:: annotation instead of exiting 0.
  • On backport failure, print both backport.debug.log and backport.info.log in collapsible GitHub Actions groups so investigation does not require downloading raw logs.

The defensive branch (HAS_VERSION_LABEL not true) keeps the previous skip behaviour if the workflow layout changes later.

Labels

Please apply :ml, >enhancement or >build, and version labels as appropriate.

Made with Cursor

… labels

Treat sorenlouv/backport no-branches-exception as an error when the PR had vN.N.N labels so missed backports surface in CI. Emit grouped logs for debug and info files on failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
@prodsecmachine
Copy link
Copy Markdown

prodsecmachine commented May 7, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants