Repository navigation
feat: show PR target branches and shorten links in CI reports - #1217
Conversation
Read PR_BASE_BRANCH from nested Jenkins commit builds so reliability reports show the target recorded for each run. Retain distinct targets across repeated runs of a PR and mark missing metadata as unknown. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex
|
Failures in node-test-pull-request/78248 to node-test-pull-request/78399 that failed 2 or more PRs
Jenkins Failure
Example
Example
ExampleGit Failure
ExampleBuild Failure
Example
Example
Example
Example
Example
Example
Example
Exampleundefined
ExampleCCTest FailureJSTest FailureExample
Example
Example
Example
Example |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1217 +/- ##
==========================================
+ Coverage 63.12% 64.49% +1.37%
==========================================
Files 65 65
Lines 12257 12298 +41
==========================================
+ Hits 7737 7932 +195
+ Misses 4520 4366 -154 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Do you think we could try reducing the noise by not showing it for |
We could but I don't see the point in introducing "default when missing" for a report. |
| .map(({ source, upstream }) => ({ | ||
| source, | ||
| upstream, | ||
| targetBranches: [...branchesBySource.get(source)], |
There was a problem hiding this comment.
In what case would we have several target branches for a single PR? 🤔
There was a problem hiding this comment.
Technically PRs can be re-target.
Not sure I follow, my suggestion was to show |
I got it, just don't see / agree with the point of it. |
|
You're saying you'd rather have all those |
Yes, I would. |
|
Updated example output: Failures in node-test-pull-request/78248 to node-test-pull-request/78399 that failed 2 or more PRs
Jenkins Failure
Example
Example
ExampleGit Failure
ExampleBuild Failure
Example
Example
Example
Example
Example
Example
Example
Exampleundefined
ExampleCCTest FailureJSTest Failure
Example
Example
Example
Example
Example |
aduh95
left a comment
There was a problem hiding this comment.
I find the version with implicit target: main more readable, but at the end of the day you're reading those more often than I do, so I trust your judgement and both versions LGTM
| : branch); | ||
| return ` (target: ${branches.join(', ')})`; | ||
| const branches = pr.targetBranches | ||
| .filter(branch => branch !== 'main') |
There was a problem hiding this comment.
Wait that's not OK, we shouldn't do it like that, if the base changed we still want to list main alongside the other branch(es)
Read PR_BASE_BRANCH from nested Jenkins commit builds so reliability reports show the target recorded for each run. Retain distinct targets across repeated runs of a PR and mark missing metadata as unknown.
Assisted-by: Codex
Example output for https://github.com/nodejs/reliability/blob/main/reports/2026-10-15.md below