Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork63
Add colour to Buildbot output#588
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
hugovk commentedApr 14, 2025
Set to draft as a demo build shows some colour output but also ANSI codes leaking out: before:https://buildbot.python.org/#/builders/301/builds/11808/steps/6/logs/stdio |
vstinner commentedApr 15, 2025
I'm not convinced by this change. It makes my typical use case more painful: download logs and open them in a text editor (vim). There are now ANSI codes which make the logs harder to read :-(
At the beginning, there are nice colors. At the middle, raw ANSI codes are displayed which makes the output harder to read :-( Also, if I download the logs and open them my text editor (vim), I also see the raw ANSI codes (not colors). |
hugovk commentedApr 15, 2025
Yeah, it's not ready for merge, it's not meant to switch from colour to ANSI codes mid-way.
Hmm, even if we fix the switch, the codes would still be there when downloading logs viewing in a text editor. This is also the case with GitHub Actions: compare therendered logs and theraw logs. But I think people rarely look at the raw logs. (I occasionally diff them, but the rendered colour is much more beneficial to me than the codes when diffing.) If it's more important to keep raw logs more readable than rendered logs for Buildbots, then we can just close this. btw, is there a way to download the full logs from a Buildbot run (that is, all of "configure", "compile", "test", and so on), rather than just for a single step (for example, just "test")? |
vstinner commentedApr 15, 2025
The problem of buildbots is that the web site is very slow and buggy. Reading logs with an external tool is a workaround for that. It's also easier for me to navigate large logs (2 000 lines or more) with a fast text editor, rather than the slow web site.
I'm not aware of such feature, I always download logs of a single step such as "test". |

Likepython/cpython#129196, will help us find errors in logs more easily.