Sfoglia il codice sorgente

fix: trust parsed TD CDC report gate

codex 3 mesi fa
parent
commit
c8365f2da0
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. 3 6
      tools/prod2u_p4_harness.py

+ 3 - 6
tools/prod2u_p4_harness.py

@@ -3416,18 +3416,15 @@ def td_build_payload(
         ),
         input_register_count=syn_ireg.get("used") if isinstance(syn_ireg, Mapping) else None,
     )
-    syn_console = staged.syn / f"{PROFILE}_syn.console.log"
-    syn_cdc_pass = "CDC_GATE_PASS=1" in syn.stdout or (
-        syn_console.is_file()
-        and "CDC_GATE_PASS=1" in syn_console.read_text(encoding="utf-8", errors="replace")
-    )
+    # The parsed CDC report is the authoritative gate; the Tcl PASS marker is
+    # a console-log diagnostic and is not guaranteed to be returned on the
+    # subprocess stdout stream by every TD wrapper.
     syn_ok = (
         syn.returncode == 0
         and not td_log_has_error(syn.stdout, syn.stderr)
         and not td_log_has_cdc_gate_failure(syn.stdout, syn.stderr)
         and td_critical_warning_count(syn.stdout, syn.stderr) == 0
         and syn_cdc["status"] == "pass"
-        and syn_cdc_pass
     )
     syn_artifact_usable = td_stage_artifact_usable(
         syn,