Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the test criteria for test_read_random_region_cpu_memleak (rap…
…idsai#726) We are seeing intermittent errors in CI/CD See rapidsai#725 (comment) >Seeing one test failure in [this CI job]( https://github.com/rapidsai/cucim/actions/runs/8716002781/job/23909243290?pr=725#step:8:495 ): ```python _ test_read_random_region_cpu_memleak[testimg_tiff_stripe_4096x4096_256_deflate] _ [gw6] linux -- Python 3.9.19 /pyenv/versions/3.9.19/bin/python python/cucim/tests/performance/clara/test_read_region_memory_usage.py:100: in test_read_random_region_cpu_memleak assert mem_usage_history[-1] - mem_usage_history[1] < iteration * 100 E assert (828035072 - 826982400) < (1000 * 100) ``` I couldn't determine which part of the code is increasing memory usage, but it's clear that there is no memory leak on the C++ side, as memory usage does not continuously increase per iteration. This patch updates the validation logic to improve reliability: - Increase the number of iterations by 10 times. - Ensure that the memory leak per iteration does not exceed 768 bytes. - Verify whether the increase in memory usage is continuous. Authors: - Gigon Bae (https://github.com/gigony) Approvers: - Gregory Lee (https://github.com/grlee77) - https://github.com/jakirkham URL: rapidsai#726
- Loading branch information