From 17c298d1b90b1a01b325b996e281915e9b9898e1 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Mon, 11 May 2026 14:38:33 +0000 Subject: [PATCH] [CI] Fix parity commit run selection Filter explicit-SHA parity lookups to main and carry commit labels through log parsing and running-time CSVs. --- .../detect_log_failures.py | 14 +++- .../download_testlogs | 44 ++++++---- .../summarize_xml_testreports.py | 81 ++++++++++++------- 3 files changed, 95 insertions(+), 44 deletions(-) diff --git a/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py b/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py index 913f1ad16203..ed8a7acc16f1 100755 --- a/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py +++ b/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py @@ -77,13 +77,23 @@ def classify_log_file(filename): - """Return (platform, test_config, shard_num) from a log filename like rocm3.txt.""" + """Return (platform, test_config, shard_num) from a log filename like rocm3.txt. + + Commit-vs-commit parity prefixes log files with the short commit SHA + (for example, 09e0c59b_rocm3.txt). In that mode the SHA label is the + platform name used by generate_summary.py, so preserve it here. + """ stem = Path(filename).stem + label = None + m = re.match(r"(?P