Skip to content

[9.1.0] Allow --test_env / env= to override coverage env (https://github.com/bazelbuild/bazel/pull/29110)#29169

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp29110-9.1.0-184535
Mar 31, 2026
Merged

[9.1.0] Allow --test_env / env= to override coverage env (https://github.com/bazelbuild/bazel/pull/29110)#29169
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp29110-9.1.0-184535

Conversation

@bazel-io
Copy link
Copy Markdown
Member

Bazel sets some environment variables for CC coverage collection that
can be useful to override in some projects. Previously this was possible
but as a side effect of 87b0a1f it
stopped working. This re-enables that and covers it in tests

Fixes #23247

Closes #29110.

PiperOrigin-RevId: 892333567
Change-Id: If5dd77b1cc98390622276865ee80772fdbcb216c

Commit 15e078b

Bazel sets some environment variables for CC coverage collection that
can be useful to override in some projects. Previously this was possible
but as a side effect of 87b0a1f it
stopped working. This re-enables that and covers it in tests

Fixes bazelbuild#23247

Closes bazelbuild#29110.

PiperOrigin-RevId: 892333567
Change-Id: If5dd77b1cc98390622276865ee80772fdbcb216c
@bazel-io bazel-io requested a review from a team as a code owner March 31, 2026 18:46
@bazel-io bazel-io added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Mar 31, 2026
@bazel-io bazel-io requested review from fmeum and gregestren March 31, 2026 18:46
@iancha1992 iancha1992 enabled auto-merge March 31, 2026 18:47
@iancha1992 iancha1992 requested review from dabanki and removed request for fmeum March 31, 2026 18:48
@gregestren gregestren added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Mar 31, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Mar 31, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit c471751 Mar 31, 2026
46 checks passed
@github-actions github-actions Bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Mar 31, 2026
fhanau added a commit to cloudflare/workerd that referenced this pull request Apr 20, 2026
- Update Bazel, this includes several performance/memory usage improvements.
  Release notes: https://github.com/bazelbuild/bazel/releases/tag/9.1.0
- Do not mark weakref test as flaky – the test is evidently not flaky in workerd
  where we don't re-run tests, and having any tests marked as flaky in workerd
  can slow down internal CI runs that will have to fetch workerd even if they
  only need to run tests in the flaky cordon
- Simplify coverage configuration – based on a close look at the rules_cc and
  bazel repos, we define several things more than once, we can remove some
  coverage overrides in .bazelrc. The additional tests added in
  bazelbuild/bazel#29169 were helpful in better
  understanding this.
- Update pnpm/action-setup to a version based on Node22 to avoid Node20
  deprecation warnings
- Remove obsolete typescript hash definition
- Adjust bazelmod mangled paths to facilitate internal changes
fhanau added a commit to cloudflare/workerd that referenced this pull request Apr 20, 2026
- Update Bazel, this includes several performance/memory usage improvements.
  Release notes: https://github.com/bazelbuild/bazel/releases/tag/9.1.0
- Do not mark weakref test as flaky – the test is evidently not flaky in workerd
  where we don't re-run tests, and having any tests marked as flaky in workerd
  can slow down internal CI runs that will have to fetch workerd even if they
  only need to run tests in the flaky cordon
- Simplify coverage configuration – based on a close look at the rules_cc and
  bazel repos, we define several things more than once, we can remove some
  coverage overrides in .bazelrc. The additional tests added in
  bazelbuild/bazel#29169 were helpful in better
  understanding this.
- Update pnpm/action-setup to a version based on Node22 to avoid Node20
  deprecation warnings
- Remove obsolete typescript hash definition
- Adjust bazelmod mangled paths to facilitate internal changes
fhanau added a commit to cloudflare/workerd that referenced this pull request Apr 21, 2026
- Update Bazel, this includes several performance/memory usage improvements.
  Release notes: https://github.com/bazelbuild/bazel/releases/tag/9.1.0
- Do not mark weakref test as flaky – the test is evidently not flaky in workerd
  where we don't re-run tests, and having any tests marked as flaky in workerd
  can slow down internal CI runs that will have to fetch workerd even if they
  only need to run tests in the flaky cordon
- Simplify coverage configuration – based on a close look at the rules_cc and
  bazel repos, we define several things more than once, we can remove some
  coverage overrides in .bazelrc. The additional tests added in
  bazelbuild/bazel#29169 were helpful in better
  understanding this.
- Update pnpm/action-setup to a version based on Node22 to avoid Node20
  deprecation warnings
- Remove obsolete typescript hash definition
- Adjust bazelmod mangled paths to facilitate internal changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants