Fix oss index audit build#8229
Merged
jack-berg merged 2 commits intoopen-telemetry:mainfrom Apr 2, 2026
Merged
Conversation
jack-berg
commented
Mar 30, 2026
|
|
||
| // scan-gradle-plugin accesses Task.project at execution time, which is incompatible with | ||
| // Gradle 9's configuration cache. Mark the task so Gradle discards the cache entry rather | ||
| // than failing the build with 44 configuration cache problems. |
Member
Author
There was a problem hiding this comment.
TODO: review these AI generated comments and their silly level of detail
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8229 +/- ##
============================================
- Coverage 90.32% 90.31% -0.01%
Complexity 7653 7653
============================================
Files 843 843
Lines 23080 23080
Branches 2312 2312
============================================
- Hits 20846 20844 -2
- Misses 1516 1517 +1
- Partials 718 719 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
sorry missed this, here's what we did in contrib repo: #8241 |
jack-berg
commented
Apr 2, 2026
|
|
||
| - run: ./gradlew ossIndexAudit | ||
| # --no-parallel is needed to avoid OverlappingFileLockException on the shared OSS Index cache | ||
| - run: ./gradlew ossIndexAudit --no-configuration-cache --no-parallel --info |
Member
Author
There was a problem hiding this comment.
- add
--infoto see log output, per recommendation from plugin - Set
isPrintBanner = falsein config to make logs less cluttered - Ignored
oss-index-cyclonedx-bo.jsonfrom .gitignore for running locally
trask
approved these changes
Apr 2, 2026
Closed
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.
Followup to #8186, fixing build failure here: https://github.com/open-telemetry/opentelemetry-java/actions/runs/23760622947/job/69226901424
Was able to reproduce locally.
Apparently the plugin is not compatible with gradle 9 configuration cache requirements and needs to be run sequentially (i.e.--max-workers=1)Seems surprising
cc @trask