Closed bkamins closed 3 years ago
@DilumAluthge - pinging you, as I assume you have an understanding of what infrastructure is used here. With this problem unresolved you have an issue with DataFrames.jl that you have mentioned in https://github.com/JuliaStats/StatsBase.jl/issues/711 that you want to avoid in the packages. Thank you!
Hmmm. Is this specific to Nanosoldier? I am able to replicate the test failures using --color=no
.
I've posted a full MWE here: https://github.com/JuliaData/DataFrames.jl/issues/2846
Understood, but why then nanosoldier is run with --color=no
? How can it then test if colors are produced correctly where they are required?
I don't believe that Nanosoldier/PkgEval is specifically run with --color=no
. I think that PkgEval is essentially emulating some kind of terminal that does not support color.
Ah - OK. Thank you!
I do think it would be a nice feature to have for NanoSoldier/PkgEval to support colors. I'm not sure how to implement that feature, though.
@KristofferC - do you know who could know?
Note that PkgEval now is running with --color=no
to work around an issue in OutputCollectors.jl (since https://github.com/JuliaLang/julia/pull/41554#issuecomment-907611746). This wasn't the case when this issue was filed though. That said, to keep the NanosoldierLogs plain text and easy to render in the browser, I think it is a good default.
The source of the issue was identified in https://github.com/KristofferC/Crayons.jl/issues/47. In DataFrames.jl we made a work-around till it is resolved.
Feel free to close this issue if --color=no
is a preferred option.
For the sake of readable logs, I think we should stick to disabling colors for now. Feel free to re-open or file a new issue if anybody thinks otherwise.
As discussed in https://github.com/JuliaLang/julia/pull/41885#issuecomment-907440466 it seems that when nanosoldier is run it does not properly produce terminal colors when requesting it in
sprint
. The example shared there is:and we can see that
sprint(show, df, context = :color => true)
did not produce output with color escape sequences. In Github Actions tests set up in DataFrames.jl GitHub CI these tests pass correctly.