Repository navigation
In failed build limit reactor summary to only failed modules - improvements - #12470
Conversation
…ements What changed: - Replace `isExecutionRoot` skip logic with `lastWasSkipped` flag in `logReactorSummary` - Print `...` before first visible entry and after last skipped group - Add `testSessionEndedFailureMultimoduleWithSeparatedFailures` test - Based on apache#12330 / commit 794866c
gnodet
left a comment
There was a problem hiding this comment.
Review: In failed build limit reactor summary to only failed modules - improvements
Verdict: APPROVE ✅
This PR fixes a real bug in the reactor summary ellipsis logic from PR #12330. The original code used isExecutionRoot() to decide when to print ... before skipped modules, which only worked when the root project was the one being skipped — if two failures were separated by successful modules, no ... appeared between them. The new lastWasSkipped flag correctly tracks transitions between skipped and shown projects, printing ... at every transition boundary.
What I verified
- Multiple separated failures:
...appears between each group ✅ (new test case) - Single failure at start: no leading
..., trailing...for remaining skipped ✅ - Single failure in middle:
...before and after ✅ (existing test, still passes) - All failures: no
...at all ✅ - Successful build: no
...✅
Test changes
MockitoSessionaddition enables strict stubbing detection — good practicelenient()ongetGroupId()/getArtifactId()is correct since onlygetName()/getVersion()are used in summary lines- Removal of
isExecutionRoot()stub is correct — production code no longer calls it - Trailing
...condition changed fromresult.hasExceptions()tolastWasSkipped, which is more precise (only prints...when there actually were trailing skipped modules) - New test
testSessionEndedFailureMultimoduleWithSeparatedFailurescovers the exact scenario this fix addresses
Clean, well-focused improvement. LGTM.
This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.
Claude Code on behalf of Guillaume Nodet
|
suppressed by
so can be skipped from change log |
What changed:
isExecutionRootskip logic withlastWasSkippedflag inlogReactorSummary...before first visible entry and after last skipped grouptestSessionEndedFailureMultimoduleWithSeparatedFailurestestFollowing this checklist to help us incorporate your
contribution quickly and easily:
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verifyto make sure basic checks pass.A more thorough check will be performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.