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}'))