From 99f36cc298b61828d15be033573685e7653ccc20 Mon Sep 17 00:00:00 2001 From: Derek Cormier Date: Wed, 4 Oct 2023 16:47:33 -0700 Subject: [PATCH] feat(presets): always fetch all coverage files on coverage runs (#564) --- .aspect/bazelrc/correctness.bazelrc | 7 +++++++ lib/tests/bazelrc_presets/all/correctness.bazelrc | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.aspect/bazelrc/correctness.bazelrc b/.aspect/bazelrc/correctness.bazelrc index a540eb8..a599f6d 100644 --- a/.aspect/bazelrc/correctness.bazelrc +++ b/.aspect/bazelrc/correctness.bazelrc @@ -66,3 +66,10 @@ build --incompatible_default_to_explicit_init_py # because it contains a BUILD file. See https://github.com/bazelbuild/bazel/issues/8195. # Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_disallow_empty_glob common --incompatible_disallow_empty_glob + +# Always download coverage files for tests from the remote cache. By default, coverage files are not +# downloaded on test result cahce hits when --remote_download_minimal is enabled, making it impossible +# to generate a full coverage report. +# Docs: https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs +# detching remote cache results +test --experimental_fetch_all_coverage_outputs diff --git a/lib/tests/bazelrc_presets/all/correctness.bazelrc b/lib/tests/bazelrc_presets/all/correctness.bazelrc index a540eb8..a599f6d 100644 --- a/lib/tests/bazelrc_presets/all/correctness.bazelrc +++ b/lib/tests/bazelrc_presets/all/correctness.bazelrc @@ -66,3 +66,10 @@ build --incompatible_default_to_explicit_init_py # because it contains a BUILD file. See https://github.com/bazelbuild/bazel/issues/8195. # Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_disallow_empty_glob common --incompatible_disallow_empty_glob + +# Always download coverage files for tests from the remote cache. By default, coverage files are not +# downloaded on test result cahce hits when --remote_download_minimal is enabled, making it impossible +# to generate a full coverage report. +# Docs: https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs +# detching remote cache results +test --experimental_fetch_all_coverage_outputs