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
The browser tab stops responding if a particular stage has lot of logs #11592
Comments
Can you define what 'a lot of logs' is? Size of file, # of lines, length of lines? GoCD is not a logging / log aggregation system - if the logs are crazy big, I would question the value of those build logs, but depends how big we are talking about. Also, a simular size/shape of log have you seen any regression over versions? |
I have logs over 500k lines. Sometimes reaches 900k. I think the issue is not version dependent. I have seen this problem ever since I started using GoCD (2 years) |
I don't think that is reasonable to expect a tool such as GoCD to handle such an amount of build output gracefully within a live logging web UI. Certainly not with the current design. Rather than using console logging directly from your tasks, you might consider redirecting their output from tools to files, and then publish those files as GoCD artifacts from your job. That way only "raw" output is available. Internally the console log is treated as a "special" artifact anyway, and uses the same API to return the raw output. Nevertheless, I'd need more data (e.g total log file raw size) and some metrics on how big the log lines are since the length of lines also matters to how slow it is to process. The easier you can make to replicate the issue, the more likely it is to be understood and addressed. You may also want to experiment with enabling console log streaming over websockets via feature toggle to see if the behaviour is different from a UI perspective. if you are interested in trying that, let me know and I'll dig up how to configure it (sadly does not seem to be documented anywhere I can find) |
The average count of characters in one line can be said to be about 100. |
Yeah, as I suggested earlier, as a workaround I would redirect the bulk of the output to file, and artifact it separately rather than using the console like this. There is an option to see the console output directly as you mentioned above, as well as via the "artifacts" tab, however if the whole UI hangs that is more challenging since the Console tab is the default when navigating to view job results and there is no direct navigation to the artifacts tab. |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
When we open logs for any stage which has a lot of logs, then the tab just hangs.
It takes more than a couple mins in my case (on chrome with M1 Max chip & 64 GB ram)
It would be great if we can enable
Raw output
button always (while rendering continues). This way I can check logs without waiting or crashing my tabs.Basic environment details
22.3.0 (15301-9d23ed19a9ea46eaf7f18bd16671ae0569871f53)
17.0.5
Linux 3.10.0-1160.88.1.el7.x86_64
Chrome 113.0.5672.126 (arm64)
Steps to Reproduce
Expected Results
The tab should not hang
Actual Results
The tab hangs and no click works
Possible Fix
Enable
Raw output
button always (while rendering continues).The text was updated successfully, but these errors were encountered: