tvl-depot/tvix/store/src
Florian Klink 20513e7a52 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>
2024-06-06 09:43:24 +00:00
..
bin feat(tvix/store/bin): add progress bar infrastructure 2024-06-06 09:43:24 +00:00
nar feat(tvix/store): concurrently upload small blobs during nar ingestion 2024-05-20 15:21:51 +00:00
pathinfoservice refactor(tvix/store/pathinfo): test with PathInfoService directly 2024-05-20 15:03:10 +00:00
proto refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00
tests chore(tvix/store): migrate import.rs and tests/pathinfo.rs to rstest 2024-04-19 19:22:10 +00:00
import.rs refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00
lib.rs feat(tvix/store): add rstest-based PathInfoService tests 2024-03-28 07:02:18 +00:00
utils.rs refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00