Skip to content

Conversation

@ddelnano
Copy link
Member

Summary: Upgrade to bazel 7

Relevant Issues: #2282

Type of change: /kind cleanup

Test Plan: Build succeeds

@ddelnano ddelnano force-pushed the ddelnano/bazel-7-upgrade-v2 branch from 8d35ca3 to 02c8802 Compare December 11, 2025 22:19
ddelnano added a commit that referenced this pull request Dec 16, 2025
…eps (#2290)

Summary: Upgrade Bazel from 6.2.0 to 6.5.0 along with protobuf,
tensorflow, and related dependencies. This is a coordinated upgrade
since these dependencies have hard interdependencies that make
incremental upgrades difficult.

Key changes
- Upgrade Bazel from 6.2.0 to 6.5.0 (required by these new dependencies)
- Protobuf upgrade with compatibility patches for text format handling
and JavaScript generation
- TensorFlow upgrade with patches to disable GPU/LLVM/Python features.
The GPU disable patch will not be necessary as TensorFlow's fallback
logic will work with Bazel 7
- gRPC-web upgrade to 2.0.2 and replacement of the vendored
`protoc-gen-grpc-web` with a Bazel repository
- Flatbuffers patched to remove rules_js dependency (this upgrade is
required by TensorFlow v2.20.0)
- absl upgrade (causes transitive header changes)
- Regenerated TypeScript protobuf bindings for the UI

I attempted to split this into a smaller change in #2296. TensorFlow has
a tight dependency on protobuf, which prevented that attempt from
working. I'm open to other ideas on how to split this up, but so far
this seemed like the best balance with #2293 and #2297 to follow to
complete the Bazel 7 migration.

Relevant Issues: #2282

Type of change: /kind cleanup

Test Plan: Build passes

---------

Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
@ddelnano ddelnano force-pushed the ddelnano/bazel-7-upgrade-v2 branch 2 times, most recently from 972d5d7 to d61ca74 Compare December 16, 2025 17:46
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
(cherry picked from commit 430eb96)
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
@ddelnano ddelnano force-pushed the ddelnano/bazel-7-upgrade-v2 branch from d61ca74 to ac23be4 Compare December 16, 2025 22:56
@@ -1,15 +1,16 @@
diff --color -Naur a/cc_toolchain_config.bzl b/cc_toolchain_config.bzl
Copy link
Member Author

Choose a reason for hiding this comment

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

This diff updates the unix_cc_toolchain_config patch against bazel 7.7.1 (as seen from the bazel/repository_locations.bzl diff).

@ddelnano ddelnano marked this pull request as ready for review December 17, 2025 15:39
@ddelnano ddelnano requested review from a team as code owners December 17, 2025 15:39
@ddelnano ddelnano merged commit 245d728 into pixie-io:main Dec 17, 2025
69 of 77 checks passed
@ddelnano ddelnano deleted the ddelnano/bazel-7-upgrade-v2 branch December 17, 2025 16:39
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