From 617c2ad85d7f449d0ed48f7e219bc617009ab993 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Wed, 24 Jun 2026 19:07:40 +0000 Subject: [PATCH] parity summary: add regex-filtered HUD link for the report commit The HUD link added in #3258 was lost when parity.yml was rewritten. Re-add it in generate_summary.py (next to the Commit SHA header) so it lives in the report itself (step summary + CSV artifact) and survives workflow rewrites. The link targets the upstream HUD page for the resolved commit, regex-filtered to the trunk CUDA/inductor/rocm test jobs the report is built from. Parens/pipes are percent-encoded to keep the markdown link valid; normal runs already pass set1_name=rocm/set2_name=cuda. Verified end-to-end against a real mi350 status CSV. --- .../pytorch-unit-test-scripts/generate_summary.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.automation_scripts/pytorch-unit-test-scripts/generate_summary.py b/.automation_scripts/pytorch-unit-test-scripts/generate_summary.py index 5c78317197b43..e6819c528934d 100644 --- a/.automation_scripts/pytorch-unit-test-scripts/generate_summary.py +++ b/.automation_scripts/pytorch-unit-test-scripts/generate_summary.py @@ -639,6 +639,18 @@ def build_rows(args, archs, arch_data): if args.sha: out.append(('__header__', f'Commit SHA: {args.sha}')) + # Link straight to the upstream HUD page filtered (regex) to the trunk + # CUDA / inductor / rocm test jobs this report is built from, so a + # reviewer can jump from the summary to the matching CI jobs. Parens and + # pipes are percent-encoded to keep the markdown link valid. + hud_url = ( + f'https://hud.pytorch.org/hud/pytorch/pytorch/{args.sha}/1' + '?per_page=50' + '&name_filter=%28trunk.*cuda%7Cinductor%7Crocm%29.*test.*' + '%28default%7Cdistributed%7Cinductor%29%2C' + '&useRegexFilter=true' + ) + out.append(('__header__', f'HUD: [parity jobs for this commit]({hud_url})')) if args.pr_id: out.append(('__header__', f'PR ID: {args.pr_id}'))