-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: Put logging of workspace starts and stops #12901
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
/werft run with-preview 👍 started the job as gitpod-build-to-refactor-stopws.1 |
/werft run 👍 started the job as gitpod-build-to-refactor-stopws.2 |
stopWS(true) | ||
}) | ||
|
||
defer func() { |
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.
Any reason why we change to use defer?
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.
defer is called before cleanup because stopws depends on api and context and should be called before api.Done. However, I will make the change later so that stopws is not dependent on them.
@@ -116,12 +116,12 @@ func TestBackup(t *testing.T) { | |||
if err != nil { | |||
t.Fatal(err) | |||
} | |||
t.Cleanup(func() { | |||
defer func() { |
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.
Any reason why we change to use defer?
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.
617423b
to
e04abe5
Compare
@jenting PTAL |
e04abe5
to
21f2d4c
Compare
Description
test: Put logging of workspace starts and stops
Related Issue(s)
Relates #12248
How to test
Run the test and get logs
Release Notes
Documentation
Werft options: