-
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
In case the jupyter labextions and/or the python code has been changed:
-
Run tests
make tests
-
Clean environment
make clean # delete all temp files make prepare # commit deletions
-
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
-
-
Create distribution
make dist
-
Create and tag release
make release
-
Deploy to pypi
make upload
- Change directory to
databrickslabs_jupyterlab_status
- Follow steps 2-6 of 2.
-
Create docker image
make docker
-
Publish image
make upload_docker
-
Push repo and tag
git push --no-verify git push origin --no-verify --tags