Skip to content

Fix OpenTelemetry dependencies in published POMs - #39608

Merged
stankiewicz merged 1 commit into
apache:masterfrom
bvolpato:bvolpato/fix-postrelease-otel-poms
Aug 4, 2026
Merged

Fix OpenTelemetry dependencies in published POMs#39608
stankiewicz merged 1 commit into
apache:masterfrom
bvolpato:bvolpato/fix-postrelease-otel-poms

Conversation

@bvolpato

@bvolpato bvolpato commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Recent OpenTelemetry tracing changes added versionless opentelemetry-api dependencies to GCP and Kafka IO without importing the corresponding BOM. Their published snapshot POMs became invalid, so Maven discarded transitive dependencies and the PostRelease examples archetype failed to compile with missing Avro and GCP classes.

Import the OpenTelemetry BOM in both modules so generated POMs provide the required dependency management.

Addresses #38714.

Testing:

  • Confirmed both baseline generated POMs fail mvn validate because opentelemetry-api has no version.
  • Confirmed both patched generated POMs pass mvn validate and import opentelemetry-bom-alpha.
  • Built GCP IO and Kafka IO jars and passed their Spotless checks.
  • Deployed patched snapshots locally and confirmed the generated examples archetype compiles all 71 sources from a clean target with -Pspark-runner, matching the failing PostRelease profile.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: 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, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.11%. Comparing base (a89b9f7) to head (ee3908f).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #39608      +/-   ##
============================================
- Coverage     58.15%   57.11%   -1.04%     
+ Complexity    13085     3641    -9444     
============================================
  Files          2521     1189    -1332     
  Lines        264850   191890   -72960     
  Branches      10788     3815    -6973     
============================================
- Hits         154017   109598   -44419     
+ Misses       105055    78773   -26282     
+ Partials       5778     3519    -2259     
Flag Coverage Δ
java 72.17% <ø> (+7.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @kennknowles for label java.
R: @johnjcasey for label kafka.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@stankiewicz stankiewicz 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.

thanks for spotting and fixing that

@stankiewicz
stankiewicz merged commit f2c622b into apache:master Aug 4, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants