Skip to content

Commit

Permalink
skip clara module tests on CUDA 11 only
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Dec 1, 2023
1 parent 68bb75d commit 6a318cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RAPIDS_PY_WHEEL_NAME="cucim_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-fro
# echo to expand wildcard before adding `[extra]` requires for pip
python -m pip install $(echo ./dist/cucim*.whl)[test]

CUDA_MAJOR_VERSION=${RAPIDS_CUDA_VERSION:0:2}

# Run smoke tests for aarch64 pull requests
if [[ "$(arch)" == "aarch64" && ${RAPIDS_BUILD_TYPE} == "pull-request" ]]; then
python ./ci/wheel_smoke_test.py
Expand All @@ -17,8 +19,11 @@ else
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends libopenslide0

# TODO: fix and remove two test cases skipped here
# test_cache_hit_miss currently fails
# test_converter passes, but a segfault occurs on pytest exit when it is enabled
python -m pytest ./python/cucim -k "not test_converter and not test_cache_hit_miss"
if [[ ${CUDA_MAJOR_VERSION} == "11" ]]; then
# Omit I/O-related tests in ./python/cucim/tests due to known CUDA bug
# with dynamic loading of libcufile.
python -m pytest ./python/cucim/src/
else
python -m pytest ./python/cucim
fi
fi
1 change: 1 addition & 0 deletions python/cucim/tests/unit/clara/test_image_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def test_reserve_more_cache_memory():
assert cache.miss_count == 0


@pytest.mark.skip(reason="currently fails (gh-626)")
def test_cache_hit_miss(testimg_tiff_stripe_32x24_16_jpeg):
from cucim import CuImage
from cucim.clara.cache import preferred_memory_capacity
Expand Down

0 comments on commit 6a318cd

Please sign in to comment.