Skip to content

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

Merged
chris-laplante merged 1 commit intoconsole-rs:mainfrom
chris-laplante:cpl/test-colors-enabled
Apr 29, 2024
Merged

tests: print whether colors are enabled to help diagnose spurious failure#641
chris-laplante merged 1 commit intoconsole-rs:mainfrom
chris-laplante:cpl/test-colors-enabled

Conversation

@chris-laplante
Copy link
Copy Markdown
Collaborator

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.

@chris-laplante chris-laplante force-pushed the cpl/test-colors-enabled branch from 0718e7b to 62944f8 Compare April 26, 2024 20:21
@chris-laplante chris-laplante requested a review from djc April 29, 2024 00:49
@chris-laplante chris-laplante merged commit 6c4637b into console-rs:main Apr 29, 2024
@chris-laplante chris-laplante deleted the cpl/test-colors-enabled branch April 29, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants