console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.46k stars 243 forks source link

tests: print whether colors are enabled to help diagnose spurious failure #641

Closed chris-laplante closed 7 months ago

chris-laplante commented 7 months ago

See for example https://github.com/console-rs/indicatif/actions/runs/8844253603.

The only thing I can think off is that colors_enabled is returning false, leading to the unstyled output. If so, this would suggest some kind of race, e.g. in https://github.com/console-rs/console/blob/master/src/utils.rs#L39. But before we go down that rabbit hole let's test the basic theory.