|
30 | 30 |
|
31 | 31 | WINDOW_DAYS = 7 |
32 | 32 | MIN_FLAKY = 5 |
33 | | -RECENT_MODIFY_DAYS = 7 |
34 | 33 | FLAKY_OUTCOMES = ("flaky", "failed") |
35 | 34 | MAX_HISTORY_SPLIT_DEPTH = 12 |
36 | 35 | MIN_HISTORY_WINDOW_MS = 60 * 1000 |
@@ -141,16 +140,6 @@ def find_test_source(class_fqcn, *, all_files): |
141 | 140 | return WORKSPACE_ROOT / candidates[0] |
142 | 141 |
|
143 | 142 |
|
144 | | -def recently_modified(path, *, days): |
145 | | - rel = path.relative_to(WORKSPACE_ROOT).as_posix() |
146 | | - result = subprocess.run( |
147 | | - ["git", "log", "-1", f"--since={days}.days.ago", "--format=%H", |
148 | | - "--", rel], |
149 | | - cwd=WORKSPACE_ROOT, capture_output=True, text=True, check=False, |
150 | | - ) |
151 | | - return bool(result.stdout.strip()) |
152 | | - |
153 | | - |
154 | 143 | def best_failure_sample(history): |
155 | 144 | """Return (build_id, failure_message) from the most recent test result |
156 | 145 | that carries a non-null ``firstFailureMessage``.""" |
@@ -295,10 +284,6 @@ def main(): |
295 | 284 | if source is None: |
296 | 285 | print(f"info: skipping {cname}: source not found") |
297 | 286 | continue |
298 | | - if recently_modified(source, days=RECENT_MODIFY_DAYS): |
299 | | - print(f"info: skipping {cname}: source modified in last " |
300 | | - f"{RECENT_MODIFY_DAYS}d") |
301 | | - continue |
302 | 287 |
|
303 | 288 | methods = fetch_container_methods( |
304 | 289 | base, container=cname, |
|
0 commit comments