Skip to content

[BAZEL] Fix CI after bazel 9.0.0 release#3823

Merged
marcalff merged 8 commits intoopen-telemetry:mainfrom
marcalff:fix_bazel_build
Jan 21, 2026
Merged

[BAZEL] Fix CI after bazel 9.0.0 release#3823
marcalff merged 8 commits intoopen-telemetry:mainfrom
marcalff:fix_bazel_build

Conversation

@marcalff
Copy link
Member

@marcalff marcalff commented Jan 20, 2026

Fixes # (issue)

Context

Per https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md,
only Bazel 8 LTS is supported, so we should no longer use bazel 7.

Per https://github.com/bazelbuild/bazel/releases/tag/9.0.0,
bazel 9.0.0 is now released.

This exposed a bug in github runners: actions/runner-images#13564

The build with bazel 9.0.0 is broken for multiple reasons, including:

which altogether prevents to build older grpc packages with C++14 and bazel 9.

Changes

Please provide a brief description of the changes here.

  • Change .bazelversion to 8.5.0 for local builds
  • Add a work around in CI to pick the correct bazel version in github runners

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.96%. Comparing base (e9035a3) to head (a22022e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3823   +/-   ##
=======================================
  Coverage   89.96%   89.96%           
=======================================
  Files         225      225           
  Lines        7167     7167           
=======================================
  Hits         6447     6447           
  Misses        720      720           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marcalff marcalff changed the title [BAZEL] Fix CI after bazel 9.0.0 release. [BAZEL] Fix CI after bazel 9.0.0 release Jan 21, 2026
@marcalff marcalff marked this pull request as ready for review January 21, 2026 00:54
@marcalff marcalff requested a review from a team as a code owner January 21, 2026 00:54
@marcalff marcalff merged commit 1c1a994 into open-telemetry:main Jan 21, 2026
67 checks passed
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