From 712d9882d220519fa955bca7e257efd99a69f9f0 Mon Sep 17 00:00:00 2001 From: rzou Date: Fri, 17 Jan 2025 13:52:11 -0800 Subject: [PATCH] Skip test responsible for causing flakiness (#145109) Investigation is a separate issue. For now I want to get the CI back up and running on the other tests. The problem seems to be that IncludeDispatchKeyGuard doesn't actually reset the state, which seems very, very wrong. Pull Request resolved: https://github.com/pytorch/pytorch/pull/145109 Approved by: https://github.com/williamwen42 --- test/test_python_dispatch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_python_dispatch.py b/test/test_python_dispatch.py index d54d5dcf1cc..e234335e7aa 100644 --- a/test/test_python_dispatch.py +++ b/test/test_python_dispatch.py @@ -202,6 +202,9 @@ class TestPythonRegistration(TestCase): self.assertEqual(c, a + b) self.assertTrue(is_called) + @unittest.skip( + "Causing flakiness, see https://github.com/pytorch/pytorch/issues/145108" + ) def test_fallthrough_for_dense_key_with_meta_in_tls(self) -> None: # This tests that if meta is included in TlS dispatch key set, # then a meta kernel should be called regardless if a dense