← Back to Pull requests

[CI] Resolve MI350 parity from canonical trunk #3652

Closed
unknown closed this pull request without merging on Oct 02, 2026 16:16 UTC
View on GitHub
unknown unknown commented on Sep 16, 2026 19:06 UTC
Author

Problem

MI350 default, distributed, and Inductor now run together in trunk.yml; the standalone rocm-mi350 and periodic-rocm-mi350 workflows are manual-only metrics workflows with automatic triggers disabled. Parity still models them as primary/fallback sources and hardcodes job prefixes and shard totals, so historical comparisons and upstream environment renames can select the wrong run or miss valid jobs.

The auto-trigger also discarded the candidate trunk run ID and scanned every check on the commit using a version-specific CUDA regex. A periodic CUDA family on the same SHA could therefore satisfy the trunk gate, while a future trunk CUDA rename could suppress dispatch entirely.

Forks with missing or expired AWS credentials could not use the existing GitHub Actions artifact fallback because the S3 authentication exception escaped before fallback selection.

Tracked in AIPYTORCH-1223. Stacked on ROCm/pytorch#3651; ROCm/pytorch#3650 remains unchanged.

Changes

  • Make canonical trunk the sole MI350 parity source for default, distributed, and Inductor.

  • Resolve a separate canonical trunk run for the baseline commit and reuse it across all baseline configurations.

  • Discover each run's actual CUDA/ROCm job prefix, test kind, and shard total from its jobs.

  • Restrict canonical fallback checks to candidate trunk runs, prefer push runs, and reject incomplete shard families.

  • Preserve configured baseline fallbacks for other architectures and propagate test/test-osdc into log and artifact names.

  • Prefer complete normal test families over debug, slow-gradcheck, smoke, build-only, and no-ops variants.

  • Carry the exact trunk run ID through parity-auto.yml and gate readiness only on that run's jobs.

  • Make the auto-trigger's normal CUDA matcher independent of OS, CUDA, Python, and GCC version numbers.

  • Fall back per missing artifact prefix from S3 to GitHub Actions, including AWS authentication failures and partial S3 availability.
  • Validation

  • python -m unittest -v test_job_name_match.py (7 tests passed)

  • python -m py_compile download_testlogs job_name_match.py test_job_name_match.py

  • python -m ruff check job_name_match.py test_job_name_match.py

  • Parsed parity-auto.yml and verified the structural CUDA matcher accepts renamed normal families while rejecting debug/no-ops families.

  • Personal-fork auto-trigger dry run: https://github.com/ethanwee1/pytorch/actions/runs/35363874695

  • Personal-fork parity regression: https://github.com/ethanwee1/pytorch/actions/runs/35363875347

  • Personal-fork ROCm-only raw-XML run with invalid AWS credentials: https://github.com/ethanwee1/pytorch/actions/runs/35642377746

  • Raw XML artifact: https://github.com/ethanwee1/pytorch/actions/runs/35642377746/artifacts/10658023803

  • Personal-fork historical comparison: https://github.com/ethanwee1/pytorch/actions/runs/35143014987

  • ROCm-fork current-name replay: https://github.com/ROCm/pytorch/actions/runs/35142156215

  • ROCm-fork historical comparison: https://github.com/ROCm/pytorch/actions/runs/35142156227
  • All successful workflow validations passed. The auto-trigger dry run evaluated exact trunk run jobs and accepted ready MI350 commits with the version-independent CUDA matcher. The raw-XML run exercised InvalidAccessKeyId on every S3 lookup, downloaded all ROCm source reports through GitHub Actions artifacts, generated the report, and uploaded a 16.8 MB artifact containing rocm_xml/, including all four distributed.fsdp.test_fsdp_meta XML reports.

    Diff: 440 lines (+330 / -110) across 5 files Reviewer: jithunnair-amd Review duration: 22870m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 440 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.364
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3652"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.9% · Safe to merge
    17.9%
    Repository