Skip to content

Update coverage to work with Bazel 9 - #3944

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:coverage-rbe
Apr 2, 2026
Merged

Update coverage to work with Bazel 9#3944
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:coverage-rbe

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

When --experimental_split_coverage_postprocessing is enabled (default in Bazel 9), Bazel no longer sets RUNFILES_DIR during coverage collection. The coverage script now treats RUNFILES_DIR as optional -- when absent, it resolves llvm-cov, llvm-profdata, and the test binary directly from the exec root using COVERAGE_DIR to derive the configuration bin directory via a new config_bin_dir helper.

@UebelAndre
UebelAndre marked this pull request as ready for review April 1, 2026 21:02
@UebelAndre
UebelAndre enabled auto-merge April 1, 2026 21:02
@UebelAndre
UebelAndre requested a review from illicitonion April 1, 2026 21:02

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems reasonable!

@UebelAndre
UebelAndre added this pull request to the merge queue Apr 2, 2026
Merged via the queue into bazelbuild:main with commit 81ca812 Apr 2, 2026
3 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