Skip to content

Fix oss index audit build#8229

Merged
jack-berg merged 2 commits intoopen-telemetry:mainfrom
jack-berg:fix-oss-index-audit
Apr 2, 2026
Merged

Fix oss index audit build#8229
jack-berg merged 2 commits intoopen-telemetry:mainfrom
jack-berg:fix-oss-index-audit

Conversation

@jack-berg
Copy link
Copy Markdown
Member

@jack-berg jack-berg commented Mar 30, 2026

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


// 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.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

TODO: review these AI generated comments and their silly level of detail

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.31%. Comparing base (1685dcb) to head (f58c2a6).
⚠️ Report is 9 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@trask
Copy link
Copy Markdown
Member

trask commented Apr 1, 2026

sorry missed this, here's what we did in contrib repo: #8241


- 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
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@trask

  • add --info to see log output, per recommendation from plugin
  • Set isPrintBanner = false in config to make logs less cluttered
  • Ignored oss-index-cyclonedx-bo.json from .gitignore for running locally

@jack-berg jack-berg marked this pull request as ready for review April 2, 2026 14:33
@jack-berg jack-berg requested a review from a team as a code owner April 2, 2026 14:33
@jack-berg jack-berg merged commit e41a167 into open-telemetry:main Apr 2, 2026
27 checks passed
@jack-berg jack-berg mentioned this pull request Apr 2, 2026
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