Skip to content

Commit

Permalink
Overhaul console output (#137)
Browse files Browse the repository at this point in the history
* Break up `reporter` module into different files

* Fix reporter getting wrong packet type for stderr

* Add new `JobOutputContents` type

* Overhaul process job output when using superconsole

* Clean up logic for picking a job color

* Use newtype wrapper for drawing `Job` with superconsole

* Change style for processes in job list

* Remove `termwiz` dependency

* Implement custom duration formatting to replace `human-repr`

* Update all jobs to track start and finish times

* Change style for downloads in job list

* Change style for unarchive and fetch jobs in job list

* Change style for reporter summary line

* Tweak colors for durations

* Remove `Reporter.is_evaluating` field which is no longer used

* Update reporter to show process "preparing" and "finishing up" time

* Tweak color palette used for job IDs

* Tweak reporter message when process is finalizing

* Update plain reporter to report more details for processes

* Refactor plain console reporter for consistency and to show other job runtimes

* Refactor to use more consistent terminology in job timestamps

* Tweak colors for running/finished jobs

* Remove unnecessary locks in `ConsoleReporter`

* Tweak how jobs are picked for job list

* Update console reporter to render at 30fps

* Flush partial outputs after process exits
  • Loading branch information
kylewlacy authored Oct 19, 2024
1 parent 70bdb74 commit d7c4752
Show file tree
Hide file tree
Showing 19 changed files with 2,201 additions and 1,200 deletions.
202 changes: 9 additions & 193 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions crates/brioche-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ directories = "5.0.1"
futures = "0.3.29"
globset = "0.4.14"
hex = "0.4.3"
human-repr = "1.1.0"
joinery = "3.1.0"
json-canon = "0.1.3"
lazy_format = "2.0.3"
Expand All @@ -48,7 +47,6 @@ sha2 = "0.10.8"
sqlx = { version = "0.7.3", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate", "json"] }
strum = { version = "0.26.3", features = ["derive"] }
superconsole = "0.2.0"
termwiz = "0.22.0"
thiserror = "1.0.51"
tick-encoding = "0.1.2"
tokio = { version = "1.35.0", features = ["full", "tracing"] }
Expand Down
Loading

0 comments on commit d7c4752

Please sign in to comment.