From 32b21e93dc3a576edd14826746c2c5eea94d4e27 Mon Sep 17 00:00:00 2001 From: Qian Bao Date: Thu, 18 May 2023 19:49:32 +0800 Subject: [PATCH] [test] Temporarily skip tests/python/test_sparse_linear_solver.py. (#8038) Issue: # ### Brief Summary During the CI test of PR#8035, @ailzhang discovered that `test_gpu_sparse_solver2` test failed on the GPU backend: https://github.com/taichi-dev/taichi/actions/runs/5005755206/jobs/8978020451?pr=8035 Since PR#8035 has nothing to do with GPU backend, the failed test `test_gpu_sparse_solver2` in `tests/python/test_sparse_linear_solver.py` is considered to be flaky. This PR disabled the `test_gpu_sparse_solver()` and `test_gpu_sparse_solver2()` test by making it with `@pytest.mark.skip`. The reason for the test failure is to be investigated. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- tests/python/test_sparse_linear_solver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python/test_sparse_linear_solver.py b/tests/python/test_sparse_linear_solver.py index dbaeee7ad13f2..3f3348afef75f 100644 --- a/tests/python/test_sparse_linear_solver.py +++ b/tests/python/test_sparse_linear_solver.py @@ -73,6 +73,7 @@ def fill( assert x[i] == test_utils.approx(res[i], rel=1.0) +@pytest.mark.skip(reason="Flaky; Reason to be investigated. 2023.5.18 qbao") @test_utils.test(arch=ti.cuda) def test_gpu_sparse_solver(): from scipy.sparse import coo_matrix @@ -136,6 +137,7 @@ def fill( assert np.allclose(x_cti.to_numpy(), x_np, rtol=5.0e-3) +@pytest.mark.skip(reason="Flaky; Reason to be investigated. 2023.5.18 qbao") @pytest.mark.parametrize("dtype", [ti.f32]) @pytest.mark.parametrize("solver_type", ["LLT", "LU"]) @test_utils.test(arch=ti.cuda)