diff --git a/CHANGELOG.md b/CHANGELOG.md index bf659a351a57..c3f993c53202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,7 @@ Also, that release drops support for Python 3.9, making Python 3.10 the minimum * Updated QR tests to avoid element-wise comparisons for `raw` and `r` modes [#2785](https://github.com/IntelPython/dpnp/pull/2785) * Moved all SYCL kernel functors from `backend/extensions/` to a unified `backend/kernels/` directory hierarchy [#2816](https://github.com/IntelPython/dpnp/pull/2816) * `dpnp` uses pybind11 3.0.3 [#2834](https://github.com/IntelPython/dpnp/pull/2834) +* Disabled `dpnp.tensor` tests by default in conda recipe to prevent OOM failures during package testing [#2859](https://github.com/IntelPython/dpnp/pull/2859) ### Deprecated diff --git a/conda-recipe/run_test.bat b/conda-recipe/run_test.bat index f6f6a061c5fa..41464cd43341 100644 --- a/conda-recipe/run_test.bat +++ b/conda-recipe/run_test.bat @@ -31,6 +31,12 @@ if not defined PYTHON ( ) +REM Skip tensor tests by default to avoid OOM in conda builds. +REM Set SKIP_TENSOR_TESTS=0 to run them on machines with enough memory. +if not defined SKIP_TENSOR_TESTS ( + set "SKIP_TENSOR_TESTS=1" +) + "%PYTHON%" -c "import dpnp; print(dpnp.__version__)" if %errorlevel% neq 0 exit 1 diff --git a/conda-recipe/run_test.sh b/conda-recipe/run_test.sh index b2c96df36242..5ffeaf2ec1b0 100755 --- a/conda-recipe/run_test.sh +++ b/conda-recipe/run_test.sh @@ -33,6 +33,12 @@ if [ -z "${PYTHON}" ]; then PYTHON=$PREFIX/bin/python fi +# Skip tensor tests by default to avoid OOM in conda builds. +# Set SKIP_TENSOR_TESTS=0 to run them on machines with enough memory. +if [ -z "${SKIP_TENSOR_TESTS}" ]; then + export SKIP_TENSOR_TESTS=1 +fi + set -e $PYTHON -c "import dpnp; print(dpnp.__version__)"