-
Notifications
You must be signed in to change notification settings - Fork 45
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
Garbled output from Gradle #143
Comments
Hi again @bpoland ! That console output does look funky. Have you tried
That's a good idea. terminal-to-html itself isn't aware of log groupings, but perhaps we could make it aware.
Looking through the Gradle bug you linked, it could possibly be related to how the agent doesn't set a window size on the PTY. It'll need more investigating. |
Yeah console=plain does work but the richer output is a lot more useful when it does work. It seems like a shame to turn it off just for the 1% or less of runs where the output gets mangled 😢 |
I have a theory why this is happening only very occasionally, and it relates to some other weird output in (other customers') jobs. There's a chance this is an agent bug (that I added 😣) to do with timestamp insertion. |
I've just released v3.73.0 of the agent (and v0.11.0 of the k8s stack) with that fix - give it a whirl and let me know if you see more garbled logs! |
Thanks, just to follow up here -- I haven't seen any garbled output since updating, but it was also quite rare anyway :) I'm good to close this and reopen later if I see it again? |
Absolutely, let us know if you see it again! |
@DrJosh9000 I just came across a small garble in the output, much less serious than I've seen previously. This is the only time I've seen anything weird since updating. The ![]() So it's possible there is still something a little off, or could very well be a Gradle bug too haha. I don't think this is worthy of reopening this issue since it's pretty minor but just thought I'd share -- thanks again for the help here! |
Just to circle back here again, unfortunately we are still seeing occasional issues with Gradle output getting messed up, similar to my last screenshot :( I think the fix here definitely improved things as it no longer seems to jump backwards and trample output from previous log groups though! So a minor issue now, but still a bit annoying... |
Hey, we're seeing very infrequently that Gradle will mangle output, I assume due to some weird control characters. Here's an example:
![image](https://private-user-images.githubusercontent.com/24273909/324948261-43e17e3c-f2dc-4d72-884e-2467223b94ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NDUzMDAsIm5iZiI6MTcyMDc0NTAwMCwicGF0aCI6Ii8yNDI3MzkwOS8zMjQ5NDgyNjEtNDNlMTdlM2MtZjJkYy00ZDcyLTg4NGUtMjQ2NzIyM2I5NGVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDAwNDMyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxZTZhN2I2ZjZlMTQ0MzcyOWVkOTNkZGViYjAzMjQ1YTA5OTdhZjQ0ZmJmMGY0OGFkYjU4MmVjMTY3NmQ3MTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eORzqJ4ptREnAdUyFIx3aSjAXak4_J-Q0sanlGfaQeo)
It seems like this could be related to some previous discussions:
I also found this Gradle issue where the output looks similar but I'm not sure if it's related gradle/gradle#8204
One of the more annoying parts of this issue is that when it happens, it corrupts all the output in the step/job and isn't contained to a single log group. Is there a way that terminal-to-html could prevent control characters from jumping across log groups above it somehow? It seems unlikely/unexpected that you'd want to go backwards and change log groups above.
Also interested in anyone's thoughts about what could be causing this. I have only seen it happen a few times out of hundreds of builds and I don't know what's different when it does happen...
The text was updated successfully, but these errors were encountered: