GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — In failed build limit reactor summary to only failed modules by slawekjaranowski · Pull Request #12330 · apache/maven

Conversation

@slawekjaranowski

@slawekjaranowski slawekjaranowski commented Jun 20, 2026

Copy link
Copy Markdown
Member

When build fail in multimodule project we need scroll many lines to see whats is wrong

based on: #11977

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the Core IT successfully.

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.

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
  • In any other case, please file an Apache Individual Contributor License Agreement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slawekjaranowski slawekjaranowski self-assigned this Jun 20, 2026
@slawekjaranowski slawekjaranowski added the enhancement New feature or request label Jun 20, 2026
@slawekjaranowski
slawekjaranowski requested review from cstamas and gnodet June 20, 2026 12:54
@slawekjaranowski slawekjaranowski linked an issue Jun 20, 2026 that may be closed by this pull request
[MNG-7008] skip reactor logging #8027
Closed
@gnodet gnodet added the mvn4 label Jun 22, 2026
gnodet
gnodet reviewed Jul 9, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This PR implements a useful UX improvement: in failed multi-module builds, the reactor summary is condensed to show only the failed modules with ... ellipsis markers replacing successful/skipped modules. The formatBuildTime extraction is a nice refactoring that eliminates code duplication, and the changes are correctly applied to both the compat and impl copies.

However, the ellipsis logic has a gap in the multi-failure scenario.

Issue: missing ellipsis between non-adjacent failures

In a --fail-at-end build with modules M1(root,success), M2(fail), M3(success), M4(success), M5(fail), M6(skipped), M7(skipped):

The ... separator is only printed when project.isExecutionRoot() is true inside the shouldSkip block. Since only M1 is the execution root, the output would be:

...
M2 .................. FAILURE [1.234 s]
M5 .................. FAILURE [0.567 s]
...

Modules M3 and M4 (which succeeded between the two failures) are silently dropped with no visual separator. A more informative output would be:

...
M2 .................. FAILURE [1.234 s]
...
M5 .................. FAILURE [0.567 s]
...

Suggested fix: Replace the isExecutionRoot() guard with a "was previous module skipped?" tracking variable:

boolean lastWasSkipped = false;
for (MavenProject project : projects) {
    // ... determine shouldSkip ...
    if (shouldSkip) {
        lastWasSkipped = true;
        continue;
    }
    if (lastWasSkipped) {
        logger.info("...");
        lastWasSkipped = false;
    }
    // ... print module line ...
}
if (lastWasSkipped) {
    logger.info("...");
}

This applies to both the impl and compat copies.

Minor notes

  • No test covers the multi-failure (--fail-at-end) scenario — adding one would validate the ellipsis placement between non-adjacent failures
  • New test methods use public while existing tests use package-private (JUnit 5 convention in this codebase)

Overall the feature is valuable — the ellipsis logic just needs refinement for multi-failure correctness.


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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gnodet added a commit to gnodet/maven that referenced this pull request Jul 9, 2026
@gnodet @claude
chore: update PR review loop state (iteration 2)
807757d
Reviewed 3 more PRs:
- apache#11743: COMMENT (superseded by apache#12369)
- apache#12330: COMMENT (ellipsis gap in multi-failure scenario)
- apache#12446: COMMENT (deadlock fix LGTM, own PR can't APPROVE)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@Bukama

Bukama commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Can we make this visual change configuarable?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@slawekjaranowski

slawekjaranowski commented Jul 11, 2026

Copy link
Copy Markdown
Member Author

Can we make this visual change configuarable?

First I would like to have the same simple feature in all Maven version, next we can extend it

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

slawekjaranowski added 2 commits July 11, 2026 17:22
@slawekjaranowski
In failed build limit reactor summary to only failed modules
6429049
When build fail in multimodule project we need scroll many lines to see whats is wrong

based on: apache#11977
@slawekjaranowski
Apply recommended changes from review
b03cf37
@slawekjaranowski
slawekjaranowski force-pushed the cp-11977 branch from 6831d9e to b03cf37 Compare July 11, 2026 15:49
@slawekjaranowski
slawekjaranowski requested a review from gnodet July 11, 2026 15:58
@slawekjaranowski

slawekjaranowski commented Jul 11, 2026

Copy link
Copy Markdown
Member Author

@gnodet fix after review done

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gnodet
gnodet approved these changes Jul 11, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary (re-review after new commit)

All three items from the previous review have been addressed:

  1. Ellipsis gap fixed — the isExecutionRoot() guard was replaced with a lastWasSkipped tracking variable, which properly handles leading, trailing, and interleaved ellipsis markers between non-adjacent failures. This is exactly the approach suggested.
  2. Test method visibility — corrected to package-private (JUnit 5 convention).
  3. New test coverage — testSessionEndedFailureMultimoduleWithSeparatedFailures validates ellipsis placement between non-adjacent failures.

The lastWasSkipped approach is straightforward and correct. The formatBuildTime extraction is a nice de-duplication. Both impl and compat copies are kept in sync.

LGTM — clean follow-up.

Claude Code on behalf of Guillaume Nodet
This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@slawekjaranowski
slawekjaranowski merged commit 794866c into apache:master Jul 11, 2026
22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slawekjaranowski
slawekjaranowski deleted the cp-11977 branch July 11, 2026 16:34
@github-actions github-actions Bot added this to the 4.1.0 milestone Jul 11, 2026
cstamas
cstamas approved these changes Jul 11, 2026
View reviewed changes
@cstamas

cstamas commented Jul 11, 2026

Copy link
Copy Markdown
Member

3.10.0 should receive these improvements too.

slawekjaranowski reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gnodet gnodet mentioned this pull request Jul 11, 2026
In failed build limit reactor summary to only failed modules #12469
Merged
8 tasks
@slawekjaranowski slawekjaranowski mentioned this pull request Jul 11, 2026
In failed build limit reactor summary to only failed modules - improvements #12470
Merged
8 tasks
slawekjaranowski added a commit that referenced this pull request Jul 13, 2026
@slawekjaranowski
In failed build limit reactor summary to only failed modules - improv…
c1aeb51
…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 #12330 / commit 794866c
@gnodet gnodet mentioned this pull request Sep 17, 2026
[MNG-7008] skip reactor logging #8027
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes
@gnodet gnodet gnodet approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@slawekjaranowski slawekjaranowski

Labels

enhancement New feature or request mvn4

Projects

None yet

Milestone

4.2.0

Development

Successfully merging this pull request may close these issues.

[MNG-7008] skip reactor logging

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@slawekjaranowski @Bukama @cstamas @gnodet
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.