Skip to content

Report backport results by target branch - #258

Merged
lampajr merged 4 commits into
kiegroup:mainfrom
lampajr:codex/backport-result-report
Nov 8, 2026
Merged

lampajr merged 4 commits into
kiegroup:mainfrom
lampajr:codex/backport-result-report

Conversation

@lampajr

@lampajr lampajr commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #145. Log a final result for each target branch, including its error when a backport fails. Previously the final error listed failures without their target branches. Previously reported failures that prevent a retry are shown as skipped. Existing failure comments and process exit behavior are preserved. GitHub Actions also writes a job summary with links to created or existing backport pull requests and expandable failure details.

For example, the log report looks like:

Backport results:
Target Branch  Result   Error
-------------  -------  -----
develop        OK       -
prod           KO       Error: cherry-pick conflict
release/1.x    SKIPPED  -

OK includes dry runs and branches with nothing new to push. Multiline errors continue beneath the error column.

The GitHub Actions job summary renders a table like this:

Target branch Result Pull request
develop OK View pull request
prod KO -
release/1.x SKIPPED -

Failure details appear in expandable sections below the table.

Validation

  • npm test -- --runInBand (235 tests passed)
  • npm run compile
  • npm run lint
  • Pre-commit build and lint passed. The pre-push hook's test run failed because Git environment variables inherited by the hook leaked into the Git CLI test fixtures; the repository setting changed by the fixture was restored. The push was performed with the hook disabled after the independent full test run passed.

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

St.❔
Category Percentage Covered / Total
🟢 Statements
87.81% (+0.23% 🔼)
735/837
🟡 Branches
78.98% (+0.01% 🔼)
342/433
🟢 Functions
86.53% (+0.43% 🔼)
167/193
🟢 Lines
87.89% (+0.26% 🔼)
704/801
Show new covered files 🐣
St.❔
File Statements Branches Functions Lines
🟢 runner/summary.ts 88% 81.25% 100% 90.91%
Show files with reduced coverage 🔻
St.❔
File Statements Branches Functions Lines
🟢
... / github-client.ts
79.34%
59.15% (-2.82% 🔻)
68% 80.17%

Test suite run success

235 tests passing in 20 suites.

Report generated by 🧪jest coverage report action from e18de75

@lampajr
lampajr marked this pull request as ready for review November 8, 2026 10:24
@lampajr
lampajr merged commit d0ae76e into kiegroup:main Nov 8, 2026
5 checks passed
@lampajr
lampajr deleted the codex/backport-result-report branch November 8, 2026 10:25
@lampajr

lampajr commented Nov 8, 2026 •

Copy link
Copy Markdown
Member Author

For the records with dry run:
image

Without dry run
image

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.

Improve final backporting result reports

2 participants