Description of the bug:
When building anything on a remote build farm with --remote_download_toplevel, Bazel gets "stuck" after the INFO: Build completed successfully message. When this happen, the network is busy like crazy downloading the request artifacts, which "works" but has a bad UI.
Compare this to building without any --remote_download_* flags, where Bazel will properly print progress messages for every download it executes.
I traced this down to the BwtB downloader code, which enqueues downloads as futures and then... forgets about them until the command shutdown hook waits for their completion without any kind of progress reporting.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
- Write a
genrule that produces a multi-GB file.
- Build the target with
--remote_download_toplevel.
- Notice how Bazel pauses after completing the command but before returning control to the user. Monitor network activity and notice the download happening in the background.
Which operating system are you running Bazel on?
Doesn't matter.
What is the output of bazel info release?
bazel release 6.0.0
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Description of the bug:
When building anything on a remote build farm with
--remote_download_toplevel, Bazel gets "stuck" after theINFO: Build completed successfullymessage. When this happen, the network is busy like crazy downloading the request artifacts, which "works" but has a bad UI.Compare this to building without any
--remote_download_*flags, where Bazel will properly print progress messages for every download it executes.I traced this down to the BwtB downloader code, which enqueues downloads as futures and then... forgets about them until the command shutdown hook waits for their completion without any kind of progress reporting.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
genrulethat produces a multi-GB file.--remote_download_toplevel.Which operating system are you running Bazel on?
Doesn't matter.
What is the output of
bazel info release?bazel release 6.0.0
If
bazel info releasereturnsdevelopment versionor(@non-git), tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response