Repository navigation
Reduce Gradle build and test log spam in Java CI workflows - #40458
Merged
Merged
Conversation
- Remove `'passed'` from default `testLogging` events in `BeamModulePlugin` so only skipped/failed tests and per-task summaries are logged.
- Downgrade the CI Maven Central mirror log message from `lifecycle` to `debug` in `Repositories.groovy` and `settings.gradle.kts` to avoid repeating it for every subproject.
- Remove `showStandardStreams = true` and `outputs.upToDateWhen {false}` overrides from `needsRunnerTests` and `examplesIntegrationTest` in `:runners:direct-java`, `:sdks:java:io:debezium`
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #40458 +/- ##
============================================
+ Coverage 56.20% 65.26% +9.05%
- Complexity 2288 13915 +11627
============================================
Files 1123 1720 +597
Lines 178213 107826 -70387
Branches 1489 11243 +9754
============================================
- Hits 100168 70371 -29797
+ Misses 75524 33268 -42256
- Partials 2521 4187 +1666
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Assigning reviewers: R: @chamikaramj for label java. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Contributor
Author
|
cc: @shunping |
shunping
reviewed
Oct 7, 2026
shunping
approved these changes
Oct 8, 2026
Contributor
Author
|
AsyncWrapperTest failed on Windows test, not related to this change and should be fixed by #40449 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Remove
'passed'from defaulttestLoggingevents inBeamModulePluginso only skipped/failed tests and per-task summaries are logged.Downgrade the CI Maven Central mirror log message from
lifecycletodebuginRepositories.groovyandsettings.gradle.ktsto avoid repeating it for every subproject.Remove
showStandardStreams = trueandoutputs.upToDateWhen {false}overrides fromneedsRunnerTestsandexamplesIntegrationTestin:runners:direct-java,:sdks:java:io:debezium. If workflow failes, these logs are available from junit-test-result.zip downloading from workflow run summary pageAfter GHA workflow changed
pull_request_target->pull_requesttrigger, failed tests on PR run no longer publish status, and one needs to either dig into test log or download junit-test-report. Test log currently has a few spammy logs:PASSED/SKIPPEDEvents & Trailing Blank LinestestLogging { events 'passed', 'skipped', 'failed' }inBeamModulePlugin.groovy:runners:direct-java:needsRunnerTestsStandard Error (SLF4JINFO/WARN)showStandardStreams = trueinrunners/direct-java/build.gradle+ noisyINFO/WARNloggers in SDK Core:sdks:java:harness:jmh:jmhTest&:core:jmh:jmhTest)System.out.printlninExecutionStateSamplerBenchmark, JMH runner banners, and unclosed gRPC channels> Task :...) & Blank Separators:sdks:java:extensions:avro:spotbugsAvro*)spotbugsAvro182/192/1102/1113running withignoreFailures = trueand missing auxiliary classpathjavac) & Javadoc Warnings<HTML in Javadoc commentslogger.lifecycle("Running in CI. Mirroring Maven Central...")logged per subproject (110 times)INFOLogsslf4j-simpleused instead oflog4jinflink_runner.gradle, logging atINFOduring JVM shutdown/GC:runners:prism:java:test)PrismExecutorusingProcessBuilder.inheritIO()during intentional failure testsThis PR reduces 1, 2, 7, reduce logging lines by ~65%.
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README for a list of workflows and how to trigger them.