Skip to content

[ws-manager] Remove wait from probes #14768

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

Closed
wants to merge 3 commits into from
Closed

[ws-manager] Remove wait from probes #14768

wants to merge 3 commits into from

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Nov 17, 2022

Description

Partially reverts #13828 to not wait in probe

Release Notes

NONE

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=workspace
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

[ws-manager] Remove wait from probes
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-aledbf-wswait.1 because the annotations in the pull request description changed
(with .werft/ from main)

@aledbf
Copy link
Member Author

aledbf commented Nov 17, 2022

/werft run

👍 started the job as gitpod-build-aledbf-wswait.2
(with .werft/ from main)

Remove invalid tag
@@ -42,7 +42,7 @@ type WorkspaceReadyProbe struct {

// NewWorkspaceReadyProbe creates a new workspace probe
func NewWorkspaceReadyProbe(workspaceID string, workspaceURL url.URL) WorkspaceReadyProbe {
workspaceURL.Path += "/_supervisor/v1/status/ide/wait/true"
workspaceURL.Path += "/_supervisor/v1/status/ide"
Copy link
Contributor

Choose a reason for hiding this comment

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

@iQQBot what do you think about removing wait/true? I ask because you initially authored #13828. Is there anything you'd recommend we explicitly test?

I ask because @utam0k did some testing here which is related.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the problem before was that ws-manager was only looking at HTTP status codes from the supervisor and didn't validate the body. I think this would increase the number of requests, is that the intent?

Copy link
Contributor

Choose a reason for hiding this comment

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

remove wait/true has no obvious benefit other than increasing the number of requests

@aledbf aledbf closed this Nov 18, 2022
@aledbf aledbf deleted the aledbf/wswait branch January 22, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants