Repository navigation
Conversation
gnodet-bot
left a comment
There was a problem hiding this comment.
The core logic is correct: in summary mode, inline WARN events are filtered from buildEventListener.projectLogMessage() while still flowing to reportCapture — that's the right split. Tests confirm the behaviour and would fail against the base branch. A few comments below.
BuildPlanExecutor.java that prevented the full test suite from running. This should be resolved before merging — even if the error is pre-existing, a PR that cannot compile the full project in CI is not merge-ready for the feature branch.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
|
Thanks for the review! I've added Javadoc to document the The focused Thanks for pointing these out! |
gnodet-bot
left a comment
There was a problem hiding this comment.
The main feature logic is sound — filtering inline WARN from projectLogMessage() in summary mode while preserving the event for reportCapture is the right approach. The verifier confirmed two of the original six findings as false positives. Remaining actionable items below.
False positives cleared:
- The 1-arg constructor removal doesn't break anything —
LookupInvoker.java(the only call site) is updated in this PR. - The
@AfterEachleak concern is unfounded — all tests use try-with-resources which callsclose(), which in turn callsMavenSimpleLogger.setLogSink(null).
This review was generated by an AI agent, Hermès on behalf of @gnodet.
|
Thanks for the review! I've updated the constructor Javadoc to document the Regarding the unrelated Thanks for the guidance! |
gnodet-bot
left a comment
There was a problem hiding this comment.
The new commit (Javadoc for warningMode parameter) addresses two of the four prior threads — nicely done, the null-behavior documentation is especially helpful. Two items remain:
-
"summary"hardcoded in.orElse("summary")— the fallback string is still duplicated here and insideBuildReportCollector. Consider extracting it to a constant to keep the canonical default in one place. -
Unrelated changes in
BuildPlanExecutor.java— theException→Throwablewidening and the missing-newline-at-EOF fix are good changes, but they are unrelated to the warning-mode feature. Keeping them in this PR obscures the blast radius.
No new issues introduced by the Javadoc commit.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
e887b31 to
28be59a
Compare
gnodet-bot
left a comment
There was a problem hiding this comment.
Following up on my earlier reviews — the null-behavior documentation for warningMode is now in place (latest commit). That closes the last Javadoc gap.
One item from the previous review remains open:
"summary" hardcoded in .orElse("summary") — the fallback string is duplicated: once in LookupInvoker.java (here) and again inside ProjectBuildLogAppender's Javadoc which describes the accepted values. A shared constant (e.g. in ProjectBuildLogAppender or alongside the option parsing) would make a future default change safe and obvious. As-is, the two literals will silently diverge.
The BuildPlanExecutor.java thread is now outdated — that file is no longer in the PR diff, so either the changes were dropped or merged upstream. No action needed there.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
gnodet-bot
left a comment
There was a problem hiding this comment.
Following up on my earlier reviews — the last remaining open item (the hardcoded "summary" literal spread across three call sites) has been addressed in this update: LookupInvoker, MavenInvoker, and BuildReportCollector all now reference ProjectBuildLogAppender.DEFAULT_WARNING_MODE. That closes both open threads.
The implementation looks solid:
suppressInlineWarningsis correctly derived at construction time, not per-call.- The
accept()filter is tight: WARN events are suppressed fromprojectLogMessage()while still flowing toreportCapture. INFO/DEBUG/ERROR are unaffected. "summary".equalsIgnoreCase(null)returnsfalse— the null case behaves as documented.- The four unit tests cover summary suppression, all-mode forwarding, INFO passthrough, and case-insensitive matching.
LGTM.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
What does this change do?
When
--warning-mode=summaryis selected, inlineWARNlog events are suppressed while warnings remain available for build report capture.ProjectBuildLogAppender.Testing
git diff --checkpassed.BuildPlanExecutor.javainvolvingThrowableandException.The full test suite has not passed due to this compilation issue.