Skip to content

[preview] force gce when providing infrastructure, avoid harvester #17475

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 3 commits into from
May 3, 2023

Conversation

kylos101
Copy link
Contributor

@kylos101 kylos101 commented May 3, 2023

Description

Harvester is technical debt we no longer wish to support or maintain. [1] Force gce for all preview environments.

Existing harvester preview environments will need to be either:

  1. deleted via leeway run dev/preview:delete-preview, and then recreated (make a local branch to test separate from this one)
  2. have their context deleted via kubecontext -d <context-name>, and then recreated

Assuming this is received well, a follow-on PR will remove related tech debt, which helps jobs select between harvester and gce.

After this lands in main share ☝️ in #development-pipeline so teammates know to make related adjustments.

Related Issue(s)

Related to PDEO-2

How to test

  1. leeway run dev:preview produces a preview backed by GCE
  2. The preview environment built for this PR is hosted in gce

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • analytics=segment
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /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

@kylos101 kylos101 requested a review from vulkoingim May 3, 2023 02:38
@kylos101 kylos101 marked this pull request as ready for review May 3, 2023 02:38
@kylos101 kylos101 changed the title [preview] force gce, avoid harvester [preview] force gce when providing infrastructure, avoid harvester May 3, 2023
kylos101 added 2 commits May 3, 2023 14:20
...and actually use spot by changing the default for gce_use_spot

We'll address the disk pressure issues (which cause pods to evict on install, but eventually succeed) in a separate PR.
@kylos101 kylos101 requested a review from vulkoingim May 3, 2023 15:45
@kylos101
Copy link
Contributor Author

kylos101 commented May 3, 2023

@vulkoingim could I ask for a follow-up review? I enabled spot VMs, and bumped the sizes up. leeway run dev:preview works like a champ still, I see that the created VMs were spot and honored the new machine sizes.

@kylos101
Copy link
Contributor Author

kylos101 commented May 3, 2023

Works (provisions spot VMs) for integration tests, too: https://github.com/gitpod-io/gitpod/actions/runs/4874305742/jobs/8695071978

@roboquat roboquat merged commit 47d1412 into main May 3, 2023
@roboquat roboquat deleted the kylos101/no-harvester branch May 3, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants