Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Latest commit

 

History

History
163 lines (106 loc) · 2.54 KB

Release.md

File metadata and controls

163 lines (106 loc) · 2.54 KB

Release documentation

Release process

1 Tests

  • On Macos set limits:

    $ sudo launchctl limit maxfiles 65536 200000
  • On Windows one needs OpenSSH 8 for the tests:

    C:\>choco install openssh
    
    set SSH=C:\Program Files\OpenSSH-Win64\ssh.exe
    
    C:\> cmd /c ""%SSH%"" -V
    OpenSSH_for_Windows_8.0p1, LibreSSL 2.6.5

    Note: This assumes that https://chocolatey.org is installed

  • Copy <root>/tests/config-template.yaml to <root>/config.yaml and edit it accordingly

  • Depending on whether test should be run against AWS or Azure, set one of

    $ export CLOUD=aws
    $ export CLOUD=azure

    or under Windows one of

    C:\>set CLOUD=aws
    C:\>set CLOUD=azure
  • Start clusters

    python tests/00-create-clusters.py

    or restart clusters:

    python tests/01-restart-clusters.py
  • Create secret scope and key for tests (if not already exists)

    python tests/05-create-secret-scope.py
  • Execute tests Note: For dev tests (the current version is not published to pypi), enable 30-install-wheel_test.py, i.e. comment the skip marks decorating the test.

    Execute the tests

    pytest -v -o log_cli=true
  • Remove clusters

    python 99-destroy-clusters.py

2 Python package

In case the jupyter labextions and/or the python code has been changed:

  1. Run tests

    make tests
  2. Clean environment

    make clean    # delete all temp files
    make prepare  # commit deletions
  3. Bump version of databrickslabs_jupyterlab

    • A new release candidate with rc0

      make bump part=major|minor|patch
    • A new build

      make bump part=build
    • A new release

      make bump part=release
    • A new release without release candidate

      make bump part=major|minor|patch version=major.minor.patch
  4. Create distribution

    make dist
  5. Create and tag release

    make release
  6. Deploy to pypi

    make upload

3 Labextension

  1. Change directory to databrickslabs_jupyterlab_status
  2. Follow steps 2-6 of 2.

4 Docker image

  1. Create docker image

    make docker
  2. Publish image

    make upload_docker

5 Push changes

  1. Push repo and tag

    git push --no-verify
    git push origin --no-verify --tags