Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(GHA): remove chalk overrides from error annotations #466

Merged
merged 14 commits into from
Mar 3, 2022

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Mar 3, 2022

🧰 Changes

Much to my annoyance, there's some issues where the GitHub Actions annotations don't process ANSI escape codes created by chalk properly (even though they claim to support them), resulting in messy error messages that look like this:

image

The only fix I've found is to disable chalk entirely, which removes colors from the logs but results in cleaner error messages at least:

image

See below for example links for all the possible FORCE_COLOR value results (scroll down to the Annotations section):

I also tried different interpolations and bypassing @actions/core, but nothing appeared to do the trick. I figured we should just not override the color anymore and hope that GitHub Actions fixes their shit.

🧬 QA & Testing

Do tests pass? 🤷🏽‍♂️

Fixes RM-3725

@kanadgupta kanadgupta marked this pull request as draft March 3, 2022 18:52
@kanadgupta kanadgupta added this to the v7 milestone Mar 3, 2022
@kanadgupta kanadgupta changed the title fix(GHA): colorized error output fix(GHA): remove chalk overrides from error annotations Mar 3, 2022
@kanadgupta kanadgupta added the bug Something isn't working label Mar 3, 2022
@kanadgupta kanadgupta marked this pull request as ready for review March 3, 2022 21:12
@kanadgupta kanadgupta requested a review from erunion March 3, 2022 21:23
@kanadgupta kanadgupta merged commit 0c7e364 into main Mar 3, 2022
@kanadgupta kanadgupta deleted the fix-gha-color-formatting branch March 3, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants