-
Notifications
You must be signed in to change notification settings - Fork 4.4k
No coverage files when running a build with --remote_download_minimal or --remote_download_toplevel #12592
Copy link
Copy link
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)staleIssues or PRs that are stale (no activity for 30 days)Issues or PRs that are stale (no activity for 30 days)team-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) teamtype: bug
Description
Description of the problem / feature request:
I am not sure if this is the desired behavior (especially for minimal) or a bug.
Running bazel coverage (with 100% cache hit rate) and --remote_download_minimal does not download coverage files. Configured --coverage_report_generator logs are visible in the output but it seems like the generator is not actually run.
As a result no output coverage file is produced and there are no coverage files present in the test output.
Sample output of configured --coverage_report_generator, ran today (December 1st) but logs are from November 27th (from cache):
{"level":"info","ts":1606483666.4905822,"caller":"coverage/coverage.go:48","msg":"Collecting coverage","path":"bazel-out/k8-fastbuild-ST-fcb5cf22ec9a/testlogs/foo/bar/go_default_test/coverage.dat"}
Google Cloud storage is used as a remote cache (if this could have any impact).
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Run bazel coverage where the cache hit is 100%, coverage files are not downloaded.
What operating system are you running Bazel on?
MacOS Catalina 10.15.7
What's the output of bazel info release?
release 3.6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)staleIssues or PRs that are stale (no activity for 30 days)Issues or PRs that are stale (no activity for 30 days)team-Remote-ExecIssues and PRs for the Execution (Remote) teamIssues and PRs for the Execution (Remote) teamtype: bug