Skip to content

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

Merged
merged 3 commits into from
Sep 14, 2022
Merged

Conversation

utam0k
Copy link
Contributor

@utam0k utam0k commented Sep 13, 2022

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

NONE

Documentation

Werft options:

  • /werft with-preview

@jenting
Copy link
Contributor

jenting commented Sep 13, 2022

/werft run with-preview

👍 started the job as gitpod-build-to-refactor-stopws.1
(with .werft/ from main)

@jenting
Copy link
Contributor

jenting commented Sep 13, 2022

/werft run

👍 started the job as gitpod-build-to-refactor-stopws.2
(with .werft/ from main)

stopWS(true)
})

defer func() {
Copy link
Contributor

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?

Copy link
Contributor Author

@utam0k utam0k Sep 14, 2022

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() {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@utam0k
Copy link
Contributor Author

utam0k commented Sep 14, 2022

@jenting PTAL

@jenting jenting added the team: workspace Issue belongs to the Workspace team label Sep 14, 2022
@roboquat roboquat merged commit 65cde1e into main Sep 14, 2022
@roboquat roboquat deleted the to/refactor-stopws branch September 14, 2022 04:02
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/L team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants