Skip to content

opentelemetry-cpp@1.24.0.bcr.1#7261

Merged
keith merged 1 commit intobazelbuild:mainfrom
aaylward:otel_cpp_bazel_8_9
Jan 27, 2026
Merged

opentelemetry-cpp@1.24.0.bcr.1#7261
keith merged 1 commit intobazelbuild:mainfrom
aaylward:otel_cpp_bazel_8_9

Conversation

@aaylward
Copy link
Contributor

@aaylward aaylward commented Jan 22, 2026

What's this?

I had to add this patch to get my project building with bazel 9 on linux. It worked fine on macos without the patch 🤷

What's changed?

  • add 1.24.0.bcr.1
  • build with bazel 7, 8, and 9
  • add linkstatic = True to the http_client_curl cc_library target

@bazel-io
Copy link
Member

Hello @keith, modules you maintain (opentelemetry-cpp) have been updated in this PR.
Please review the changes. You can view a diff against the previous version in the "Generate module diff" check.

Copy link
Contributor

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

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 aims to expand the presubmit testing matrix for opentelemetry-cpp@1.24.0 to include Bazel versions 8.x and 9.x. While this is a valuable improvement for ensuring forward compatibility, the current implementation modifies an existing, published version. This violates the BCR's fundamental 'add-only' policy. My review includes a critical comment explaining that such changes require creating a new BCR patch version (e.g., 1.24.0.bcr.1) to maintain the immutability of published artifacts.

@aaylward aaylward changed the title [opentelemetry-cpp] build with bazel 7, 8, and 9 [opentelemetry-cpp] 1.24.0.bcr.1 Jan 22, 2026
@aaylward aaylward force-pushed the otel_cpp_bazel_8_9 branch 2 times, most recently from 3ad68bd to 7c0f6a4 Compare January 22, 2026 02:56
@aaylward aaylward changed the title [opentelemetry-cpp] 1.24.0.bcr.1 opentelemetry-cpp@1.24.0.bcr.1 Jan 22, 2026
@keith
Copy link
Member

keith commented Jan 22, 2026

can you submit this PR upstream for feedback there?

@aaylward
Copy link
Contributor Author

aaylward commented Jan 22, 2026

@aaylward
Copy link
Contributor Author

@keith it sounds like opentelemetry-cpp will merge the patch sometime soon. Are you ok with releasing a 1.24.0.bcr.1? or would you prefer to wait for 1.24.1 or 1.25.0?

@aaylward aaylward force-pushed the otel_cpp_bazel_8_9 branch 2 times, most recently from ce70a6a to c60466a Compare January 26, 2026 22:47
@keith keith added the skip-url-stability-check Skip the URL stability check for the PR label Jan 26, 2026
@keith
Copy link
Member

keith commented Jan 26, 2026

nice, i think we might as well merge

keith
keith previously approved these changes Jan 26, 2026
@keith keith enabled auto-merge (squash) January 26, 2026 23:11
@keith
Copy link
Member

keith commented Jan 26, 2026

It worked fine on macos without the patch

macOS doesn't support dynamic_mode these days, everything ends up being static

@keith
Copy link
Member

keith commented Jan 26, 2026

looks like the rules_foreign_cc version (idr why it depends on this) needs an update

bazel-io
bazel-io previously approved these changes Jan 26, 2026
Copy link
Member

@bazel-io bazel-io left a comment

Choose a reason for hiding this comment

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

All modules in this PR have been approved by their maintainers. This PR will be merged if all presubmit checks pass.

auto-merge was automatically disabled January 27, 2026 04:27

Head branch was pushed to by a user without write access

@bazel-io bazel-io dismissed stale reviews from keith and themself January 27, 2026 04:27

Require module maintainers' approval for newly pushed changes.

@aaylward
Copy link
Contributor Author

@keith I added latest rules_foreign_cc -- thanks for the catch

keith
keith previously approved these changes Jan 27, 2026
@keith keith enabled auto-merge (squash) January 27, 2026 17:36
bazel-io
bazel-io previously approved these changes Jan 27, 2026
Copy link
Member

@bazel-io bazel-io left a comment

Choose a reason for hiding this comment

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

All modules in this PR have been approved by their maintainers. This PR will be merged if all presubmit checks pass.

auto-merge was automatically disabled January 27, 2026 18:03

Head branch was pushed to by a user without write access

@bazel-io bazel-io dismissed stale reviews from keith and themself January 27, 2026 18:03

Require module maintainers' approval for newly pushed changes.

@keith
Copy link
Member

keith commented Jan 27, 2026

CI says you have to rebase 🤔

 - build with bazel 7, 8, and 9
 - add linkstatic = True to the http_client_curl cc_library target
@aaylward
Copy link
Contributor Author

tough, but fair

@keith keith enabled auto-merge (squash) January 27, 2026 18:36
@keith keith merged commit 5b5bd63 into bazelbuild:main Jan 27, 2026
23 checks passed
@aaylward aaylward deleted the otel_cpp_bazel_8_9 branch January 27, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-url-stability-check Skip the URL stability check for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants