Uh oh!
There was an error while loading. Please reload this page.
Add colour to GitHub Actions output - #129196
Conversation
Uh oh!
There was an error while loading. Please reload this page.
hugovk
commented
Jan 22, 2025
Thank you flaky test, it was easy to find you and conclude not relevant here, and restart the job :) ![]() https://github.com/python/cpython/actions/runs/12916819582/job/36021859818?pr=129196 |
hugovk
commented
Jan 22, 2025
|
Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
(cherry picked from commit 298dda5) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
GH-129198 is a backport of this pull request to the 3.13 branch. |
Sorry, @hugovk, I could not cleanly backport this to |
(cherry picked from commit 298dda5) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
GH-129199 is a backport of this pull request to the 3.12 branch. |

Following the merge of #127223, #127719, #127877, #128498 and #128687, we can now enable colour in the
unittestandtest.regrtestoutput on GitHub Actions usingFORCE_COLOR.The biggest benefit is it helps us find failures when scrolling the long logs, and usually the reason to open the logs in the first place is to find a failure.
For example, here's a forced failure in another branch:
https://github.com/hugovk/cpython/actions/runs/12915439756/job/36017613160
Accessibility check: it's important not to rely on colour alone to confer information, and the current textual output is not changed, and continues to say pass/skip/fail as now. The colour is an addition.