From 0e3d7a8e8506ed3899198cc392c7e74a885b7bf6 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Mon, 11 May 2026 14:38:33 +0000 Subject: [PATCH 1/6] [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 | 46 +++++++---- .../summarize_xml_testreports.py | 81 ++++++++++++------- 3 files changed, 96 insertions(+), 45 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 b563fcf74bc1e..7b4a73a69508b 100755 --- a/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py +++ b/.automation_scripts/pytorch-unit-test-scripts/detect_log_failures.py @@ -69,13 +69,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