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

[build] Add task skips intended for partial builds #92076

Merged
merged 4 commits into from
Feb 23, 2021

Commits on Feb 19, 2021

  1. [build] Add task skips intended for partial builds

    Currently the build supports skips for leaf nodes: archive creation and OS
    packages.  This adds skip options for folder cleanup and source build
    folders.  This is intended to support two scenarios:
    
    1) Debugging.  Creating the build source folders and compiling assets
    takes up the bulk of build time.  This can make testing package
    creation changes time consuming.
    
    2) Build resuming.  When creating docker images, we want the option to
    drop an archive in the target folder and run only the docker build step.
    
    Three flags have been added:
    ```
    --skip-initialize Don't clean the target and build folders
    --skip-generic-folders Don't create the base source folders
    --skip-platform-folders Don't create the platform specific folders
    ```
    
    The build syntax for this is verbose and probably due for refactoring.
    The long term goal is to migrate this to bazel, and the changes here are
    intended as stopgap until then.
    
    Testing - standalone Docker image
    ```
    yarn kbn clean
    yarn kbn bootstrap
    mv ~/Downloads/kibana-8.0.0-SNAPSHOT-linux-x86_64.tar.gz target
    node scripts/build \
      --no-oss \
      --skip-initialize \
      --skip-generic-folders \
      --skip-platform-folders \
      --skip-archives \
      --docker-images \
      --skip-docker-ubi \
      --skip-docker-contexts
    ```
    jbudz committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    8fb4f23 View commit details
    Browse the repository at this point in the history
  2. fix types

    jbudz committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    9588194 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. update snapshots

    jbudz committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    1f77a5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5776d3f View commit details
    Browse the repository at this point in the history