-
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
[server] Wait for image build logs in preparing state #15586
Conversation
started the job as gitpod-build-wv-image-build-retry-preparing.1 because the annotations in the pull request description changed |
#!/bin/bash | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the GNU Affero General Public License (AGPL). | ||
# See License.AGPL.txt in the project root for license information. | ||
|
||
set -Eeuo pipefail | ||
source /workspace/gitpod/scripts/ws-deploy.sh deployment dashboard |
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.
added this script as well which was useful in iterating on the dashboard component in a preview environment, the script is also present in components/server
already
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.
Thanks!
That change makes sense.
/hold |
dba32e3
to
4dee440
Compare
Description
Fixes image build logs from showing up in the dashboard if the build is delayed.
When a workspace's image build is delayed (due to e.g. waiting for a node to scale up), the workspace instance stays in a
preparing
state, it only moves tobuilding
once the build is actually running. Previously, the logic would stop retrying for build logs if it's not in abuilding
state, this PR changes it to also wait for build logs while in apreparing
stateRelated Issue(s)
Fixes #14862
How to test
In a preview environment:
https://<your-preview-env>.preview.gitpod-dev.com/#imagebuild/github.com/gitpod-io/gitpod
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh