feat(tvix/tvix-store): improve progress bars

Don't show an empty spinner for daemon commands.
Move the bar to the right, so the text is better aligned between spinner
progress and bar progress styles.

Generally, push progress bars a bit more down to the place where we can
track progress. This includes adding one in the upload_blob span.

Introduce another progress style template for transfers, which
interprets the counter as bytes (not just a plain integer), and also a data rate.
Use it for here and in the fetching code, and also make the progress bar
itself a bit less wide.

Change-Id: I15c2ea3d2b24b5186cec19cd3dbd706638497f40
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11845
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de>
This commit is contained in:
Florian Klink 2024-06-16 19:22:11 +03:00 committed by flokli
parent cfab953094
commit 28b692fd50
8 changed files with 52 additions and 40 deletions

View file

@ -13382,6 +13382,10 @@ rec {
name = "tracing-indicatif";
packageId = "tracing-indicatif";
}
{
name = "tvix-tracing";
packageId = "tvix-tracing";
}
{
name = "url";
packageId = "url";