From bcfa2f69745c097cc057847e9e0f1b2660faa679 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sun, 11 Oct 2026 15:56:45 +0200 Subject: [PATCH] Retry fresh only when a harness that passed fails while reusing oracle results Co-Authored-By: Claude Opus 5.5 --- tools/parity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/parity.py b/tools/parity.py index 91dd02e04..e5bad7978 100644 --- a/tools/parity.py +++ b/tools/parity.py @@ -280,8 +280,8 @@ def run(selected, state, hasher, environment_digest, jobs, timeout, memory_budge log.close() del running[name] passed = process.returncode == 0 - if not passed and reused: - # Maybe a reused oracle result was wrong for it: run it again from scratch. + if not passed and reused and records.get(name, {}).get("status") != "fail": + # A new failure might come from a reused oracle result: run it again from scratch. retried.add(name) queue.insert(0, name) print(f"retry {name} without reused oracle results", flush=True)