Skip to content

Commit ae4edfc

Browse files
authored
Run all tests when CI utils cannot detect changes (#1151)
1 parent c8503ec commit ae4edfc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/conftest.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from __future__ import absolute_import
1919

2020
import platform
21+
import warnings
2122
from pathlib import Path
2223

2324
import distributed
@@ -88,7 +89,14 @@ def dask_client() -> distributed.Client:
8889

8990

9091
def pytest_collection_modifyitems(items):
91-
changed_backends = ci_utils.get_changed_backends()
92+
try:
93+
changed_backends = ci_utils.get_changed_backends()
94+
except Exception as e:
95+
warnings.warn(
96+
f"Running all tests because CI utils failed to detect backend changes: {e}", UserWarning
97+
)
98+
changed_backends = ci_utils.BACKEND_ALIASES.values()
99+
92100
full_name_to_alias = {v: k for k, v in ci_utils.BACKEND_ALIASES.items()}
93101

94102
for item in items:

0 commit comments

Comments
 (0)