From 2642e5f5a8f25127847d6c15b3d8be5c2039d15d Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Fri, 17 Apr 2026 05:19:28 -0700 Subject: [PATCH 1/2] Skip tensor tests by default to avoid OOM --- conda-recipe/run_test.bat | 6 ++++++ conda-recipe/run_test.sh | 6 ++++++ 2 files changed, 12 insertions(+) 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__)" From e6d9f5ac32e61d7881e92c94c2ec55e71b010632 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Fri, 17 Apr 2026 05:22:22 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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