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

Make local-preview optional #13093

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Conversation

mads-hartmann
Copy link
Contributor

@mads-hartmann mads-hartmann commented Sep 19, 2022

Description

This PR changes the the local-preview component (./install/preview, package install/preview:docker) to be a dynamic package that will only be built if -DwithLocalPreview=true is passed to Leeway.

Werft will build the package by default on main, otherwise I will only build it if the Werft attribute with-local-preview is set. This PR adds that attribute to the default PR template to make it easier to discover and set.

The motivation for this change is to speed up builds. See #12824 for more context

Related Issue(s)

Fixes #12824

How to test

  • Run the Werft build without specify with-local-preview: werft job run github - see job and screenshot below

Screenshot 2022-09-20 at 12 49 09

  • Run the Werft build using: werft job run github -a with-local-preview=true - see job and screenshot below

Screenshot 2022-09-20 at 12 54 12

Release Notes

NONE

Documentation

N/A

Werft options:

  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@mads-hartmann mads-hartmann force-pushed the mads/make-preview-docker-optional branch from 0779e13 to fea4261 Compare September 21, 2022 09:16
@mads-hartmann mads-hartmann marked this pull request as ready for review September 21, 2022 09:16
@mads-hartmann mads-hartmann requested a review from a team September 21, 2022 09:16
@gitpod-io gitpod-io deleted a comment from github-actions bot Sep 21, 2022
@github-actions github-actions bot added the team: delivery Issue belongs to the self-hosted team label Sep 21, 2022
Copy link
Contributor

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

LGTM, and the jobs seemed to have the expected output! Great Work @mads-hartmann!

@roboquat roboquat merged commit e1985ce into main Sep 21, 2022
@roboquat roboquat deleted the mads/make-preview-docker-optional branch September 21, 2022 16:07
geropl added a commit that referenced this pull request Sep 23, 2022
@geropl geropl mentioned this pull request Sep 23, 2022
3 tasks
roboquat pushed a commit that referenced this pull request Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none size/M team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build speed: Install/preview-docker
3 participants