Skip to content

Conversation

@svenefftinge
Copy link
Contributor

@svenefftinge svenefftinge commented Nov 22, 2023

Description

This change updates the development container to use the latest version of leeway, which gained support for caching when using leeway exec.

It makes use of this in our root yarn build script, so that rerunning this script (as we do on every workspace start) no longer takes 80 secs, but more like 4sec.

This change also moves the leeway cache below /workspace

Screenshot 2023-11-22 at 18 13 51
Summary generated by Copilot

🤖[deprecated] Generated by Copilot at e759747

This pull request optimizes the Gitpod development environment and workflow by using the --cache-key option of leeway for Java and yarn build tasks. It also removes unused code related to HostContextProvider from the gitpod-server-impl.ts file.

Related Issue(s)

Fixes #

How to test

Start a workspace on this PR and try yarn build in the root folder.

Documentation

Preview status

gitpod:summary

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
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • 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

@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
random-number-csprng 1.0.2 None +0 15.5 kB joepie91
@types/passport 1.0.7 None +2 7.62 MB types
@types/node 18.18.8 None +0 3.8 MB types
@bufbuild/protobuf 1.3.3 environment +0 1.3 MB tstamm-buf
@google-cloud/profiler 6.0.0 environment +2 7.72 MB google-wombot
@bufbuild/protoc-gen-es 1.3.3 None +2 2.74 MB tstamm-buf

@roboquat roboquat added size/L and removed size/M labels Nov 22, 2023
@github-actions
Copy link
Contributor

⚠️ Hey reviewer! BE CAREFUL ⚠️
Review the code before opening in your Gitpod. .gitpod.yml was changed and it might be harmful.

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

✔️

workspaceLocation: gitpod/gitpod-ws.code-workspace
checkoutLocation: gitpod
ports:
- port: 1337
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only formatting changes 👇

@svenefftinge
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit 874a733 into main Nov 23, 2023
@roboquat roboquat deleted the se/update-leeway branch November 23, 2023 08:42
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.

5 participants