-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[jetbrains] experimental support of warm up in prebuilds #9450
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
75330d3
to
7df0dc2
Compare
f5b8dd3
to
02196f7
Compare
7091687
to
c1d7453
Compare
7df0dc2
to
4113cd3
Compare
/werft run 👍 started the job as gitpod-build-ak-jb-prebuilds.4 |
/werft run 👍 started the job as gitpod-build-ak-jb-prebuilds.5 |
4113cd3
to
ba09802
Compare
/werft run with-vm 👍 started the job as gitpod-build-ak-jb-prebuilds.7 |
dadc91b
to
eeef77f
Compare
eeef77f
to
d617bbb
Compare
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.
@@ -119,6 +120,7 @@ export interface StartWorkspaceOptions { | |||
const MAX_INSTANCE_START_RETRIES = 2; | |||
const INSTANCE_START_RETRY_INTERVAL_SECONDS = 2; | |||
|
|||
// TODO(ak) move to IDE service |
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.
❤️
* See License-AGPL.txt in the project root for license information. | ||
*/ | ||
|
||
import { JetBrainsConfig, TaskConfig, Workspace } from "@gitpod/gitpod-protocol"; |
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.
nit: ideally we had a top-level package ide
to move the other stuff into. But that's a clear follow-up.
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.
Reviewed code, LGTM!
Description
It introduces very experimental support of warming up JetBrains's products in prebuilds. It is based on a synthetic task inferred from .gitpod.yml configuration. Here is an example:
A user can configure which products should be warmed up during prebuild and controls whether stable, latest or both version should be indexed.
Caveat: This approach does not respect plugins and versions of JB products how they are treated by JB imaged produced by Gitpod. Ideally we should layer such images and move logic there.
Related Issue(s)
Related to #6740
How to test
Proper way
cat /workspace/.gitpod/prebuild-log-1
in terminal of a workspace.Lazy way
cat /workspace/.gitpod/prebuild-log-1
in terminal of a workspace.Release Notes
Documentation