Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .automation_scripts/pytorch-unit-test-scripts/generate_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'))

Expand Down