Skip to content

[supervisor] increase default workspace image cache duration and do p… #18951

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

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

mustard-mh
Copy link
Contributor

@mustard-mh mustard-mh commented Oct 18, 2023

…refetch

Description

Summary generated by Copilot

🤖 Generated by Copilot at 4579e0a

Refactor the info service in supervisor to use a constructor function and a background goroutine for fetching the default workspace image. This improves caching, error handling, and logging of the image feature.

Related Issue(s)

Fixes EXP-807

How to test

  • Create an org in preview env, and set default image up
  • Create workspace and try gp validate, it should use org default image like before

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 / Integration Tests
  • /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. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

defer func() {
is.cacheTimestamp = time.Now()
is.cacheMu.Unlock()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previous one is ok, change it so that we don't need to consider defer order when reading the code.

@mustard-mh mustard-mh marked this pull request as ready for review October 18, 2023 17:39
@mustard-mh mustard-mh requested a review from a team as a code owner October 18, 2023 17:39
Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

let's try

@roboquat roboquat merged commit ad7ef3b into main Oct 19, 2023
@roboquat roboquat deleted the hw/ide-startup-time branch October 19, 2023 06:46
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.

3 participants