Repository navigation
util: allow colors in non-tty if FORCE_COLOR - #54289
avivkeller wants to merge 1 commit into
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #54289 +/- ##
==========================================
+ Coverage 87.11% 87.33% +0.21%
==========================================
Files 647 649 +2
Lines 181773 182603 +830
Branches 34889 35041 +152
==========================================
+ Hits 158347 159469 +1122
+ Misses 16739 16400 -339
- Partials 6687 6734 +47
|
|
I need to look into https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu2204_sharedlibs_icu_x64/45173/testReport/junit/(root)/parallel/test_internal_util_colors/ before this can land 😅 |
|
CI problems should be fixed. There were cases where the |
|
I've noticed this error on multiple CI's: |
|
I have no idea what keeps causing https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu2204_sharedlibs_openssl30_x64/45342/testReport/junit/(root)/parallel/test_internal_util_colors, I can't reproduce locally. However, it's only (some of) the |
Maybe try changing the test to use |
I changed it to |
FORCE_COLORSFORCE_COLOR
|
There are a few CI failures, and I have a lot of open PRs. For the best interest of everyone, someone else can take on this work |
Fixes #52249
internal/util/colorshas been ignoringFORCE_COLORif the terminal is not a TTY terminal. This PR changes that behavior to allowFORCE_COLORto, well, force colors.;