Skip to content

ci(bom): print full mvn-install.log on pre-install failure#13891

Merged
lqiu96 merged 1 commit into
mainfrom
fix-preinstall-logging
Jul 24, 2026
Merged

ci(bom): print full mvn-install.log on pre-install failure#13891
lqiu96 merged 1 commit into
mainfrom
fix-preinstall-logging

Conversation

@lqiu96

@lqiu96 lqiu96 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Description

Updates java-cloud-bom/tests/pre-install.sh to print the complete mvn-install.log on failure instead of truncating output with tail -n 200.

Rationale

When a module fails compilation during pre-install.sh, Maven skips installing its JAR into local cache (~/.m2/repository). Downstream modules subsequently fail dependency resolution when attempting to fetch missing in-repo SNAPSHOT artifacts from Maven Central.

Because pre-install.sh previously ran tail -n 200, only the trailing downstream dependency resolution errors were printed in CI, concealing the actual root-cause compilation errors that occurred earlier in the log.

@lqiu96
lqiu96 requested review from a team as code owners July 24, 2026 19:09
@lqiu96 lqiu96 changed the title fix(bom): print full mvn-install.log on pre-install failure ci(bom): print full mvn-install.log on pre-install failure Jul 24, 2026
@lqiu96
lqiu96 force-pushed the fix-preinstall-logging branch from 337c5b4 to 28980cb Compare July 24, 2026 19:11

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Guava dependency version from 33.5.0-jre to 33.6.0-jre across multiple pom.xml files. Additionally, it modifies the pre-install.sh test script to print the entire mvn-install.log file using cat instead of just the last 200 lines using tail when a Maven installation fails. There are no review comments, so I have no feedback to provide.

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@lqiu96
lqiu96 enabled auto-merge (squash) July 24, 2026 19:33
@lqiu96
lqiu96 merged commit eabcf8f into main Jul 24, 2026
202 of 204 checks passed
@lqiu96
lqiu96 deleted the fix-preinstall-logging branch July 24, 2026 20:12
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.

2 participants