Skip to content

Commit f8403be

Browse files
committed
more
1 parent a99ef8f commit f8403be

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

.github/scripts/flaky-test-remediation/1-select-flaky-test.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
WINDOW_DAYS = 7
3232
MIN_FLAKY = 5
33-
RECENT_MODIFY_DAYS = 7
3433
FLAKY_OUTCOMES = ("flaky", "failed")
3534
MAX_HISTORY_SPLIT_DEPTH = 12
3635
MIN_HISTORY_WINDOW_MS = 60 * 1000
@@ -141,16 +140,6 @@ def find_test_source(class_fqcn, *, all_files):
141140
return WORKSPACE_ROOT / candidates[0]
142141

143142

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-
154143
def best_failure_sample(history):
155144
"""Return (build_id, failure_message) from the most recent test result
156145
that carries a non-null ``firstFailureMessage``."""
@@ -295,10 +284,6 @@ def main():
295284
if source is None:
296285
print(f"info: skipping {cname}: source not found")
297286
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
302287

303288
methods = fetch_container_methods(
304289
base, container=cname,

0 commit comments

Comments
 (0)