[CI] Prune redundant CPU test overhead (#34309)

Co-authored-by: hnyls2002 <lsyincs@gmail.com>
This commit is contained in:
Xinyuan Tong
2026-08-13 19:51:17 -07:00
committed by GitHub
co-authored by hnyls2002
parent 6ad3f2d8fd
commit 85cdf1178d
78 changed files with 884 additions and 981 deletions
+3 -4
View File
@@ -319,10 +319,9 @@ def run_a_suite(args):
for f in glob.glob(
os.path.join(script_dir, "registered", "**", "*.py"), recursive=True
)
if not f.endswith("/conftest.py")
and not f.endswith("/__init__.py")
and not f.endswith("/cpu/utils.py")
and not f.endswith("/run_tests.py")
# conftest.py / __init__.py are pytest+package structure, never
# registered tests, and must not be executed as one.
if os.path.basename(f) not in ("conftest.py", "__init__.py")
]
# Strict: all discovered files must have proper registration