Skip to content

Allow --test_env / env= to override coverage env#29110

Closed
keith wants to merge 1 commit into
bazelbuild:masterfrom
keith:ks/allow-test_env-env-to-override-coverage-env
Closed

Allow --test_env / env= to override coverage env#29110
keith wants to merge 1 commit into
bazelbuild:masterfrom
keith:ks/allow-test_env-env-to-override-coverage-env

Conversation

@keith

@keith keith commented Mar 25, 2026

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

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
@keith keith requested a review from a team as a code owner March 25, 2026 23:30
@keith keith requested review from dabanki and removed request for a team March 25, 2026 23:30
@github-actions github-actions Bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Mar 25, 2026
@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 27, 2026
@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
@keith keith deleted the ks/allow-test_env-env-to-override-coverage-env branch March 31, 2026 15:13
@keith

keith commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Mar 31, 2026
@iancha1992

Copy link
Copy Markdown
Member

@bazel-io fork 8.7.0

@iancha1992

Copy link
Copy Markdown
Member

@bazel-io fork 9.1.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Mar 31, 2026
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Mar 31, 2026
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
iancha1992 pushed a commit to iancha1992/bazel that referenced this pull request Mar 31, 2026
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
@iancha1992

iancha1992 commented Mar 31, 2026

Copy link
Copy Markdown
Member

@keith @fmeum @gregestren Do we actually need this in 8.7.0?

github-merge-queue Bot pushed a commit that referenced this pull request Mar 31, 2026
…9169)

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

Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
@keith

keith commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

@iancha1992 I think just 9.x is fine

@keith

keith commented Apr 23, 2026

Copy link
Copy Markdown
Member Author

reopening #29167

keith added a commit to keith/bazel that referenced this pull request Apr 23, 2026
…29110)

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.

Fixes bazelbuild#29167

PiperOrigin-RevId: 892333567
Change-Id: If5dd77b1cc98390622276865ee80772fdbcb216c
(cherry picked from commit 15e078b)
iancha1992 pushed a commit to iancha1992/bazel that referenced this pull request May 4, 2026
…29383)

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.

Fixes bazelbuild#29167

PiperOrigin-RevId: 892333567
Change-Id: If5dd77b1cc98390622276865ee80772fdbcb216c
(cherry picked from commit 15e078b)
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.

Broken C++ Coverage with hermetic clang toolchain - No override for COVERAGE_GCOV_PATH and LLVM_COV possible with --test_env

5 participants