feat(tvix/store/bin): add progress bar infrastructure
This adds the tracing-indicatif crate, and configures it as a layer in our tracing_subscriber pipeline to emit progress for every span that's configured so. It also moves from using std::io::stderr to write logs to using their writer, to avoid clobbering output. Progress bar styles are defined in a lazy_static, moving this into a general tracing is left for later. This adds some usage of this to the `imports` and `copy` commands. The output can still be improved a bit - we should probably split each task up into a smaller (instrumented) helper functions, so we can create a progress bar for each task. Change-Id: I59a1915aa4e0caa89c911632dec59c4cbeba1b89 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11747 Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
9b77ce9f8f
commit
20513e7a52
8 changed files with 452 additions and 19 deletions
|
|
@ -26,6 +26,7 @@ serde = "1.0.195"
|
|||
serde_json = "1.0"
|
||||
sha2 = "0.10.8"
|
||||
sha1 = "0.10.6"
|
||||
tracing-indicatif = "0.3.6"
|
||||
md-5 = "0.10.6"
|
||||
url = "2.4.0"
|
||||
walkdir = "2.4.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue