-
Notifications
You must be signed in to change notification settings - Fork 239
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: keep stderr and stdout from interleaving #589
Conversation
Looks like circleCI is still getting the pre-fix test/test_docker_images.py . Odd. |
77188d6
to
60a16e8
Compare
We've seen CircleCI act weirdly (or at least different from others) on these kinds of things, before, no? It also didn't restart automatically after closing-reopening. |
Is there a way to check this? If so, this can be merged without further input, I'd say :-) |
I have seen something similar to this before when I was doing the fold groups work, at the time I thought it was a Github actions bug... I might do a little testing to investigate... |
I don't believe this PR fixes the problem. See this GHA run: These examples try to print interleved stdout/stderr messages. So perfect output would look like:
As you can see, regardless of the ways I try to disable output buffering, there are still occasionally problems. It seems to me that this is an inherent problem within GHA. Or perhaps there's a buffer somewhere that we haven't found the controls for yet? |
https://github.saobby.my.eu.orgmunity/t/stdout-stderr-output-not-in-correct-order-in-logs/16335 Maybe we could redirect stderr to stdout on GHA? Is there really a difference in GHA? (In fact, is there really a difference in any logging system?) |
Yeah, we could do that. I actually don't think there's any difference between stdout and stderr on CI. I had implemented something like this when I was working on the fold group stuff. The only snag is that some of our tests understand the difference between out/err. But they could be worked around fairly easily. btw, in our case, we also have to redirect the subprocesses stderr to stdout. |
Just doing some tidying of PRs, so closing this one. A simple fix for this would be to add |
I think this fixes #587.