-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] Don't always print 'Connecting to workspace logs...' (it's somewhat misleading) #8558
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
Conversation
…s somewhat misleading)
I slightly disagree: The implementation of the backend service is pretty independent of how we display the content on the frontend side. 🙂 I feel most of the confusion here could be avoided by simply displaying the same "prebuild status indicator" that we already show on the projects prebuild page. 👍 |
Codecov Report
@@ Coverage Diff @@
## main #8558 +/- ##
==========================================
- Coverage 12.31% 11.17% -1.14%
==========================================
Files 20 18 -2
Lines 1161 993 -168
==========================================
- Hits 143 111 -32
+ Misses 1014 880 -134
+ Partials 4 2 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Many thanks for the quick review @geropl! 🙏
I was referring to the very unreliable nature of our current prebuild logs service:
It seems to me that a central logs service, which reliably responds to log requests (always in the same way), and to which supervisor can write whenever new logs come in, would have many advantages:
To me, a much simpler logs design (central, serve and stream any time, write whenever you want) would remove all the awkward bugs and unreliability we see today. |
...buts add additional burden to operate and maintain, and additional dependencies between workspace and app clusters. 🙂 IMO in principle the current approach is nice because we do not need to take care of that.
I 💯 agree that in general, having a separate component would put more emphasize on this feature. 👍 Anyway, was just mentioning this here to separate two things:
|
Description
Don't always print 'Connecting to workspace logs...' (it's somewhat misleading)
Context: We initially added it to show the user that the front-end is loaded, and now the backend is working to fetch what the user wants. However, we've observed that the backend is unreliable, and can fail in various different stages, so it's not always actually connecting (e.g. sometimes there is no workspace to connect to, other times it cannot find the logs for some reason).
Maybe showing a blank logs view is better than a somewhat misleading message.
A better, long-term fix would be to implement the Headless Logs (again) RFC, i.e. "central log ingestion service to content-service, make supervisor a writing client to this service".
Related Issue(s)
Cosmetic UI fix. Fixes #6305
How to test
Release Notes
Documentation