[misc] CI hygiene: enforce __main__ entry, drop silent-skipped tests, fix rerun-test protoc (#23305)

This commit is contained in:
Liangsheng Yin
2026-04-20 21:16:24 -07:00
committed by GitHub
parent 6b19e8a452
commit 6cc2eee50d
19 changed files with 101 additions and 3168 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def main() -> int:
errors = []
for f in files:
try:
registries = ci_register.ut_parse_one_file(f)
registries, _has_main_entry = ci_register.ut_parse_one_file(f)
if len(registries) == 0:
errors.append(f)
except Exception:
+1 -1
View File
@@ -35,7 +35,7 @@ def collect_all_tests(registered_dir: str) -> list[CIRegistry]:
for file in sorted(files):
try:
registries = ut_parse_one_file(file)
registries, _ = ut_parse_one_file(file)
all_tests.extend(registries)
except Exception as e:
print(f"Warning: Failed to parse {file}: {e}", file=sys.stderr)