snix/tvix/castore/src/import
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
..
archive.rs refactor(tvix/castore): extract concurrent blob uploader 2024-05-20 15:21:46 +00:00
blobs.rs refactor(tvix/castore): extract concurrent blob uploader 2024-05-20 15:21:46 +00:00
error.rs refactor(tvix/castore/import): use crate Path[Buf] in IngestionEntry 2024-05-02 15:26:29 +00:00
fs.rs feat(tvix/store/bin): add progress bar infrastructure 2024-06-06 09:43:24 +00:00
mod.rs feat(tvix/store/bin): add progress bar infrastructure 2024-06-06 09:43:24 +00:00