Skip to content

Commit d541fd7

Browse files
committed
contest: collector: fix input for marking as passing from srk to cur
We should only mark test as passing based on cur[rent streak] not the [max] s[t]r[ea]k. Because if a test is incorrectly considered as passing we want to be able to force is back to filtered. But unless we also clear the max streak it will come back to passing on the next collection. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 394c02e commit d541fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contest/results-collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def psql_insert_stability(self, data):
210210
stability[key_pfx + "_srk"] = max(stability[key_pfx + "_cur"], stability[key_pfx + "_srk"])
211211

212212
now = datetime.datetime.now().isoformat() + "+00:00"
213-
if stability["pass_srk"] > 15 and not stability["passing"]: # 5 clean days for HW
213+
if stability["pass_cur"] > 15 and not stability["passing"]: # 5 clean days for HW
214214
print("Test reached stability", data["remote"], row["test"], row["subtest"])
215215
stability["passing"] = now
216216

0 commit comments

Comments
 (0)