Commit Graph

151 Commits

Author SHA1 Message Date
Ayaz Salikhov
951dec9330 Refactor healthcheck tests to use one function (#2254) 2025-03-20 15:53:06 +00:00
Ayaz Salikhov
0510a43920 Refactor container.exec_run usages 2025-03-10 00:49:28 +00:00
Ayaz Salikhov
8f03304445 Add pre-commit hooks to check shebangs (#2247) 2025-03-03 17:30:57 +00:00
Ayaz Salikhov
cf453282a0 Use {} instead of dict() 2025-03-03 16:22:42 +00:00
Ayaz Salikhov
17442ed877 Fix typo 2025-03-03 16:22:03 +00:00
Ayaz Salikhov
8c22cc2892 Add by_image subdir for tests where needed 2025-02-26 17:43:09 +00:00
Ayaz Salikhov
5a556f5c8a Shorten test paths: rename image_specific_tests => by_image 2025-02-24 01:18:33 +00:00
Ayaz Salikhov
24fe890c21 Move get_test_dirs to a separate file 2025-02-23 20:57:41 +00:00
Ayaz Salikhov
4ee4f2b906 Remove explicit utf-8 from decode() as it's default (#2237) 2025-02-22 14:15:53 +00:00
Ayaz Salikhov
8fc97cb36b Add tagging config to pass params easier (#2234)
* Add tagging config to pass params easier

* Shorter function signatures
2025-02-22 01:05:54 +00:00
Ayaz Salikhov
18e09a7872 Clarify container.remove() behaviour (#2235) 2025-02-22 00:46:48 +00:00
Ayaz Salikhov
73628de2cd Fail if test dir doesn't exist (#2233) 2025-02-21 18:58:30 +00:00
Ayaz Salikhov
ba19c03837 Better logs for unit tests when dir doesn't exist 2025-02-21 17:59:07 +00:00
Ayaz Salikhov
2a6c640eb9 Put run-hooks test files in one data/run-hooks/ subdir 2025-02-21 17:52:32 +00:00
Ayaz Salikhov
165bbc1e71 Better tests directory structure (#2231) 2025-02-21 17:46:43 +00:00
Ayaz Salikhov
80b71625f0 Use Python 3.12 for internal code (#2222)
* Use Python 3.12 for internal code

* Add changelog entry
2025-02-18 15:26:06 +00:00
Ayaz Salikhov
e57047801c Improve handling common parser arguments (#2221) 2025-02-18 11:06:10 +00:00
Ayaz Salikhov
c5961fcc72 Revert "Pin some packages to fix r-notebook and datascience-notebook under aarch64 (#2215)" (#2220)
This reverts commit f3a92fadb7.
2025-02-18 00:42:41 +00:00
Ayaz Salikhov
66260f8d6f Simplify and improve test_packages.py (#2219) 2025-02-18 00:21:32 +00:00
Ayaz Salikhov
f3a92fadb7 Pin some packages to fix r-notebook and datascience-notebook under aarch64 (#2215) 2025-02-17 18:01:59 +00:00
Ayaz Salikhov
eeca94420a Ignore stderr in CondaPackageHelper::_execute_command 2025-01-26 20:49:03 +00:00
Ayaz Salikhov
87b37b4fd8 Specify protocol when using host.docker.internal proxy (#2181) 2024-12-09 11:30:06 +00:00
Ayaz Salikhov
143db355da Install mamba 2.0 (#2147) 2024-12-03 01:31:56 +01:00
Ayaz Salikhov
7060f20fb5 Remove pandas from EXCLUDED_PACKAGES (#2176) 2024-12-02 16:13:01 +00:00
Ayaz Salikhov
ac8453913c Use mamba env export with --json (#2162) 2024-11-25 16:23:38 +00:00
Erik Sundell
caf725210c base-notebook: stop installing nodejs from conda-forge (#2172)
* base-notebook: stop installing nodejs from conda-forge

nodejs was a conda dependency of jupyterhub, but by installing
jupyterhub-base we no longer need it and could opt to remove it.

By doing this, building base-notebook led to a reported size reduction
from 974MB to 828MB, which is a 146MB / 15% size reduction.

* Update CHANGELOG.md

* Update CHANGELOG.md

* Install jupyterhub-singleuser instead of jupyterhub-base

Note that jupyterhub-base is really whats the foundational need for this
image, where jupyterhub-singleuser the conda-forge package is building on
jupyterhub-base by also adding a depdendency on jupyterlab - but the
jupyterhub-singleuser command is provided by jupyterhub-base conda-forge
package.

* Update CHANGELOG.md

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2024-11-08 15:15:07 +00:00
Erik Sundell
28a0b25bce Install jupyterhub-base instead of jupyterhub (#2171)
* Install jupyterhub-base instead of jupyterhub

* Update images/base-notebook/Dockerfile

---------

Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2024-11-06 15:04:07 +00:00
Ayaz Salikhov
c2d9d1f06a Pin min notebook version (#2167)
* [TMP] Pin min notebook version

* Update Dockerfile
2024-11-04 14:55:35 +00:00
Ayaz Salikhov
f74a764584 Do not install tensorflow 2.18.0 as it gives an error 2024-10-28 14:06:50 +00:00
Ayaz Salikhov
a1265be650 Get rid of abseil warnings 2024-10-28 12:23:29 +00:00
Max Muoto
a096c2b102 Upgrade to Python 3.12 (#2072) 2024-10-23 08:58:47 +01:00
Ayaz Salikhov
b744182207 Start using spark4-preview versions (#2159)
* Start using spark4-preview versions

* Allow to download preview versions

* Expect warnings in spark

* Disable local_sparklyr test for now
2024-10-22 11:47:45 +01:00
Ayaz Salikhov
2f1cf2a2ef Expect warnings/errors when no_warnings/no_errors is False (#2160) 2024-10-20 16:38:40 +01:00
Ayaz Salikhov
41d0c3f5a4 Use mamba env export differently: --no-build(s) and no --json (#2150) 2024-10-02 17:40:30 +01:00
Ayaz Salikhov
640938bd1f Fix test 2024-10-02 11:42:39 +01:00
Ayaz Salikhov
55ea74f89f Exclude mamba package from tests 2024-09-30 09:13:25 +02:00
Olivier Benz
6f74c72a92 [FAST_BUILD] No sudo when run with rootless triplet (#2132)
* No sudo when run with rootless triplet

-  rootless triplet: -e NB_USER=root -e NB_UID=0 -e NB_GID=0

* Add tests for rootless triplet

* Update tests for rootless triplet

* Fix tests for rootless triplet
2024-08-11 16:50:27 +01:00
Ayaz Salikhov
615b8cc01b Ignore mypy in files with numpy 2024-07-02 10:37:46 +01:00
pre-commit-ci[bot]
949af9bbd5 [pre-commit.ci] pre-commit autoupdate (#2090) 2024-02-06 04:43:51 +04:00
Ayaz Salikhov
7a5990be1f Do not rewrite variable with another value 2024-01-23 13:11:02 +01:00
Simon Li
6e437aa489 Make start.sh the entrypoint (#2087) 2024-01-22 08:47:48 +04:00
Ayaz Salikhov
b71f4cb525 Unify access to env variables (#2086) 2024-01-21 17:32:14 +04:00
Ayaz Salikhov
a4ede5de2f Fix Python version pin (#2085) 2024-01-21 16:06:10 +04:00
Ayaz Salikhov
46d7265781 Rename test file test_python -> test_python_version 2024-01-21 14:37:52 +04:00
Ayaz Salikhov
d57bf9590d Adjust sleep times (#2080)
* Adjust sleep times

* Update test_start_container.py

* Update test_healthcheck.py

* Update pluto_check.py
2024-01-17 02:11:44 +04:00
Ayaz Salikhov
86dc0f274f Fix comments codestyle in python 2024-01-16 16:56:36 +04:00
Ayaz Salikhov
d3e18d975c Fix some style issues in tests 2024-01-16 16:35:14 +04:00
Ayaz Salikhov
c1229303d0 Rename some tests in test_healthcheck.py 2024-01-07 00:15:38 +04:00
Hugo Hromic
2a6a115a7c [FAST_BUILD] Fix Docker healthcheck when using custom runtime dirs (#2074)
* Fix Docker healthcheck when using custom runtime dirs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Use a writable directory for healthcheck test

* Allow missing import for `jupyter_core` in mypy

* Set HOME according to NB_USER in healthcheck script

* Add custom runtime dir an NB_USER case to healthcheck test

* Call `jupyter --runtime-dir` directly in healthcheck script

* Update docker_healthcheck.py

* Update docker_healthcheck.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2024-01-07 00:13:21 +04:00
Ayaz Salikhov
3253fc39b5 Fix conda hook to work in both terminal and Jupyter Notebook (#2047)
* Fix conda hook to work in both terminal and Jupyter Notebook

* Fix hook for Jupyter Terminals

* Rename startup hook to have order of precedence

* Try to increase sleep

* Comment making env_name default in custom_environment
2023-12-04 21:09:23 +01:00