-
Notifications
You must be signed in to change notification settings - Fork 1.3k
supervisor: Ignore the terminated signal #13790
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
started the job as gitpod-build-to-ch-inte.5 because the annotations in the pull request description changed |
/werft run with-large-vm with-preview with-integration-tests=workspace 👍 started the job as gitpod-build-to-ch-inte.6 |
/werft run 👍 started the job as gitpod-build-to-ch-inte.7 |
@iQQBot are there IDE integration tests that we could run against this, too? |
Why could this happen? gitpod/test/pkg/integration/workspace.go Lines 216 to 217 in 7d06687
we waiting the workspace to be ready, and ready means ide is ready gitpod/components/ws-manager/pkg/manager/probe.go Lines 41 to 49 in 7d06687
|
Perhaps this is due to the IDE starting later than the time it takes to complete workspace startup. |
This should not happen, the workspace startup complete includes IDE ready, see my code point |
The |
@iQQBot Is it impossible for this code to mark the IDE as Ready? gitpod/components/supervisor/pkg/supervisor/supervisor.go Lines 818 to 821 in 7d06687
|
This is the internal probe of the IDE, and only if it passes here successfully will the supervisor report the IDE ready to the outside, the supervisor does not directly change the state of any workspace. gitpod/components/supervisor/pkg/supervisor/services.go Lines 148 to 161 in 7d06687
|
@iQQBot ws-manager should only return RUNNING under the following conditions. Is there anything you can think of? gitpod/components/ws-manager/pkg/manager/status.go Lines 485 to 496 in 36beceb
OR gitpod/components/ws-manager/pkg/manager/status.go Lines 576 to 592 in 36beceb
|
That's what I find strange, your test case is the regular workspace, so it's not headless and the first condition doesn't hold And the second condition requires that the neverready annotation does not exist, and to achieve this condition, ide is must ready |
Hi @utam0k I found the root cause, it is because
and another small thing is I fix this in #13828 this PR |
/hold |
👀 Thanks @iQQBot |
Description
Until now, the start-up time of a workspace is slower than the start-up of an IDE but reserved. Therefore, if you requested to exit immediately after starting the workspace such as the integration test, the IDE was sometimes not ready!
Related Issue(s)
None
How to test
Pass the integration test
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide