-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Headless Logs III: Upload and retrieve headless logs after the workspaces has stopped #4439
Conversation
dbdb42c
to
d95a58b
Compare
d95a58b
to
e05b08c
Compare
Codecov Report
@@ Coverage Diff @@
## main #4439 +/- ##
=========================================
+ Coverage 0 35.96% +35.96%
=========================================
Files 0 78 +78
Lines 0 15481 +15481
=========================================
+ Hits 0 5568 +5568
- Misses 0 9429 +9429
- Partials 0 484 +484
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
23a6b88
to
e1c780f
Compare
/werft run 👍 started the job as gitpod-build-gpl-headless-log-content.20 |
e1c780f
to
beda1be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in excellent shape! I have yet to try things out, and would much prefer more tests, but we're really rather close here :)
) | ||
|
||
// HeadlessLogService implements LogServiceServer | ||
type HeadlessLogService struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit tests for the HeadlessLogService
would be awfully nice - e.g. by mocking PresignedAccess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test for ListLogs
. Not super convinced that the test alone justifies the LOC of the mock... but maybe useful for the other services as well.
legacyTerminalStoreLocation = "/workspace" | ||
legacyPrebuildLogFilePrefix = ".prebuild-log-" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've made the switch from this "legacy" naming convention to what we use today about nine months ago - I reckon we could get rid of it.
Not necessarily as part of this PR, only if it makes you life/this code easier.
beda1be
to
d06f7d1
Compare
1a04547
to
823952c
Compare
Not 100% this PR, but closely related: We could try to improve a bit by storing the URL from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for sticking with this PR for so long. Let's get this in
Test
Run prebuild and download log
PREBUILD_PARAMS=100_1s_10s_success
forgitpod-io/gitpod
select * from d_b_prebuilt_workspace
)await window._gp.gitpodService.server.getHeadlessLog("|instanceId|")
ToDo
/headless-logs/
(depends on Headless log I: Server #4262 being merged)