From 29ea67c35ebc7ba8558cf0d782f2a182b1e2e164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=99=BD=E5=8F=94?= <11794527+absfan@user.noreply.gitee.com> Date: Thu, 15 Oct 2026 17:54:18 +0800 Subject: [PATCH] test: distinguish safe preflight failures from uncertain native results --- tools/measure_task_queue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/measure_task_queue.py b/tools/measure_task_queue.py index eefc849..bc99f21 100644 --- a/tools/measure_task_queue.py +++ b/tools/measure_task_queue.py @@ -93,7 +93,10 @@ def run_scenario(output: Path, *, projects=3, sheets=2, rules=2, behavior='succe if state != 'saved_ok': message = 'Injected worker failure for regression; no native CAD operation.' with (evidence / 'status.tsv').open('a', encoding='utf-8') as stream: - stream.write(f'{job}\tawaiting_native_replace\t\tcaptured\n') + # failure_continue models a preflight rejection before any + # native mutation. Awaiting + missing native evidence must stop. + if state != 'batch_failed': + stream.write(f'{job}\tawaiting_native_replace\t\tcaptured\n') stream.write(f'{job}\t{state}\tbatch_closed\t{message}\n') if behavior == 'pause_resume' and len(calls) == 2: stop.set()