Skip to content

Commit

Permalink
vdk-jupyter: installation and build (#2319)
Browse files Browse the repository at this point in the history
What:
Pinned all the dependencies to a specific version and add
package-lock.json file. The purpose is to lock the installed
dependencies to a specific version number so that subsequent
installations can replicate the exact same dependency tree in the
future, regardless of any new package releases.

Why: the package has really unstable build

Tested: cicd script is added for installing and building the package

Signed-off-by: Duygu Hasan [hduygu@vmware.com](mailto:hduygu@vmware.com)
  • Loading branch information
duyguHsnHsn authored Jun 27, 2023
1 parent 9865728 commit 9dcb440
Show file tree
Hide file tree
Showing 3 changed files with 614 additions and 1,589 deletions.
33 changes: 33 additions & 0 deletions projects/vdk-plugins/vdk-jupyter/.plugin-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2021-2023 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0

.retry:
retry_options:
max: 1
when:
- always


build-vdk-jupyterlab-extension:
stage: build
image: "python:3.8-alpine"
before_script:
- cd projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension || exit 1
- pip install -U pip setuptools pre-commit
- apk --no-cache add npm
- apk add rust cargo
- apk add libffi-dev
- pip install jupyter
script:
- echo "Install Dependencies..."
- npm ci
- echo "Install Vdk JupyterLab Extension..."
- pip install .
- echo "Building VDK JupyterLab Extension..."
- npm rebuild
retry: !reference [.retry, retry_options]
rules: # we want to trigger build jobs if there are changes to this package,
# but not if there are changes to VDK plugins or the main directory
- if: '$CI_COMMIT_BRANCH == "main" || $CI_PIPELINE_SOURCE == "external_pull_request_event"'
changes:
- "projects/vdk-plugins/vdk-jupyter/**/*"
Loading

0 comments on commit 9dcb440

Please sign in to comment.