Skip to content
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

validate jb warmup #18050

Merged
merged 2 commits into from
Jun 30, 2023
Merged

validate jb warmup #18050

merged 2 commits into from
Jun 30, 2023

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Jun 26, 2023

Description

This PR extract JB warmup task configuration from server to JB integration itself to enable usage of gp validate to investigate warmup issues in the regular workspace. Composition of IDE prebuild tasks are done by supervisor, i.e. it can detect multiple desktop IDEs now.

Related Issue(s)

A prerequisite to IDE-182

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

/hold

@roboquat roboquat added size/XXL and removed size/XL labels Jun 28, 2023
@akosyakov akosyakov force-pushed the ak/validate_jb_warmup branch 2 times, most recently from c72c93f to 3725fb2 Compare June 28, 2023 09:16
@@ -490,9 +490,9 @@ func (s *IDEServiceServer) ResolveWorkspaceConfig(ctx context.Context, req *api.
resp.IdeSettings = ideSettingsEncoded.String()
}

// TODO figure out how to make it configurable on IDE level, not hardcoded here
jbGW, ok := ideConfig.IdeOptions.Clients["jetbrains-gateway"]
if req.Type == api.WorkspaceType_PREBUILD && ok {
Copy link
Member Author

Choose a reason for hiding this comment

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

prebuilds are not working right now anyway, so we don't make it backward compatible

@akosyakov akosyakov force-pushed the ak/validate_jb_warmup branch 13 times, most recently from 0a37ba8 to 1a86c8c Compare June 29, 2023 08:16
@@ -490,9 +490,9 @@ func (s *IDEServiceServer) ResolveWorkspaceConfig(ctx context.Context, req *api.
resp.IdeSettings = ideSettingsEncoded.String()
}

// TODO figure out how to make it configurable on IDE level, not hardcoded here
Copy link
Member Author

Choose a reason for hiding this comment

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

we deal with it later, it will need some kind of metadata configuration in the image itself that we can compare it against .gitpod.yml and configs here and decide

@akosyakov akosyakov marked this pull request as ready for review June 29, 2023 10:29
@akosyakov akosyakov requested a review from a team June 29, 2023 10:29
@akosyakov akosyakov requested a review from iQQBot June 29, 2023 15:06
@akosyakov
Copy link
Member Author

@iQQBot Could you have a look at it please? I would like to land it and proceed with actual troubleshooting of JB warmups in production 🙏

@akosyakov
Copy link
Member Author

/unhold

@roboquat roboquat merged commit fdb7e5e into main Jun 30, 2023
20 checks passed
@roboquat roboquat deleted the ak/validate_jb_warmup branch June 30, 2023 06:51
@roboquat roboquat added deployed: IDE IDE change is running in production deployed Change is completely running in production labels Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: IDE IDE change is running in production deployed Change is completely running in production size/XXL team: IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants