From 01d042af91d7032e8b0849fc8b2c831b060347a5 Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Mon, 15 Nov 2021 02:08:02 -0800 Subject: [PATCH 1/2] Ignore deprecation warnings from pkg_resources --- ci/gpu/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/gpu/build.sh b/ci/gpu/build.sh index caeb8a179..b4aa9d816 100755 --- a/ci/gpu/build.sh +++ b/ci/gpu/build.sh @@ -106,7 +106,7 @@ else gpuci_logger "Python pytest for dask-cuda" cd "$WORKSPACE" ls dask_cuda/tests/ - DASK_CUDA_TEST_SINGLE_GPU=1 UCXPY_IFNAME=eth0 UCX_WARN_UNUSED_ENV_VARS=n UCX_MEMTYPE_CACHE=n pytest -vs -Werror::DeprecationWarning -Werror::FutureWarning --cache-clear --basetemp="$WORKSPACE/dask-cuda-tmp" --junitxml="$WORKSPACE/junit-dask-cuda.xml" --cov-config=.coveragerc --cov=dask_cuda --cov-report=xml:"$WORKSPACE/dask-cuda-coverage.xml" --cov-report term dask_cuda/tests/ + DASK_CUDA_TEST_SINGLE_GPU=1 UCXPY_IFNAME=eth0 UCX_WARN_UNUSED_ENV_VARS=n UCX_MEMTYPE_CACHE=n pytest -vs -Werror::DeprecationWarning -Werror::FutureWarning -Wignore::DeprecationWarning:pkg_resources.*: --cache-clear --basetemp="$WORKSPACE/dask-cuda-tmp" --junitxml="$WORKSPACE/junit-dask-cuda.xml" --cov-config=.coveragerc --cov=dask_cuda --cov-report=xml:"$WORKSPACE/dask-cuda-coverage.xml" --cov-report term dask_cuda/tests/ logger "Run local benchmark..." python dask_cuda/benchmarks/local_cudf_shuffle.py --partition-size="1 KiB" -d 0 --runs 1 --backend dask From 709934ff4cf2be7be24042c2246aafbd33a7893a Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Mon, 15 Nov 2021 02:51:14 -0800 Subject: [PATCH 2/2] Move ignore/error conditions to pytest.ini pytest isn't respecting complex conditions from the command-line, therefore we move it all to pytest.ini --- ci/gpu/build.sh | 2 +- pytest.ini | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 pytest.ini diff --git a/ci/gpu/build.sh b/ci/gpu/build.sh index b4aa9d816..38768e4ee 100755 --- a/ci/gpu/build.sh +++ b/ci/gpu/build.sh @@ -106,7 +106,7 @@ else gpuci_logger "Python pytest for dask-cuda" cd "$WORKSPACE" ls dask_cuda/tests/ - DASK_CUDA_TEST_SINGLE_GPU=1 UCXPY_IFNAME=eth0 UCX_WARN_UNUSED_ENV_VARS=n UCX_MEMTYPE_CACHE=n pytest -vs -Werror::DeprecationWarning -Werror::FutureWarning -Wignore::DeprecationWarning:pkg_resources.*: --cache-clear --basetemp="$WORKSPACE/dask-cuda-tmp" --junitxml="$WORKSPACE/junit-dask-cuda.xml" --cov-config=.coveragerc --cov=dask_cuda --cov-report=xml:"$WORKSPACE/dask-cuda-coverage.xml" --cov-report term dask_cuda/tests/ + DASK_CUDA_TEST_SINGLE_GPU=1 UCXPY_IFNAME=eth0 UCX_WARN_UNUSED_ENV_VARS=n UCX_MEMTYPE_CACHE=n pytest -vs --cache-clear --basetemp="$WORKSPACE/dask-cuda-tmp" --junitxml="$WORKSPACE/junit-dask-cuda.xml" --cov-config=.coveragerc --cov=dask_cuda --cov-report=xml:"$WORKSPACE/dask-cuda-coverage.xml" --cov-report term dask_cuda/tests/ logger "Run local benchmark..." python dask_cuda/benchmarks/local_cudf_shuffle.py --partition-size="1 KiB" -d 0 --runs 1 --backend dask diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 000000000..80d9163bc --- /dev/null +++ b/pytest.ini @@ -0,0 +1,5 @@ +[pytest] +filterwarnings = + error::DeprecationWarning + error::FutureWarning + ignore::DeprecationWarning:pkg_resources