← Back to Pull requests

[CI] Point parity's CUDA inductor source at trunk #3768

Closed
unknown closed this pull request without merging on Oct 08, 2026 15:10 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 17:24 UTC
Author

Problem

pytorch/pytorch#199291 moved the CUDA inductor config from inductor.yml into trunk.yml. Parity still selected unit-test / inductor-test-cuda132, so parity-auto silently dispatched reports with exclude_inductor=true and the inductor column became zero.

An isolated validation also exposed a cwd bug: download_artifacts returned in a different working directory and required each caller to compensate. Conditional downloads could therefore move later inductor output outside the report folder.

Changes

  • Point cuda.inductor at the two-shard linux-jammy-cuda13.2-py3.11-gcc11 family in trunk.yml.

  • Include inductor in the trunk CUDA check-run regex and remove the retired inductor-workflow branch.

  • Reuse the already-resolved canonical trunk run for CUDA inductor, avoiding inconsistent duplicate lookups for one SHA.

  • Make download_artifacts restore its original cwd in finally, including on failure, and remove caller-side chdir compensation.

  • Replace obsolete job-name tests and add cwd restoration coverage.
  • Automatic workflow/job-name discovery is intentionally split into a separate change.

    Validation

  • End-to-end isolated inductor run: https://github.com/ROCm/pytorch/actions/runs/37504546913 — success.

  • - Selected trunk run 37071505172.
    - Found both CUDA inductor shards.
    - Produced 39,664 CUDA and 39,677 ROCm inductor results with zero MISSED.
  • The preceding run https://github.com/ROCm/pytorch/actions/runs/37503168727 resolved the new trunk jobs but failed with No CUDA XML reports were downloaded; this directly reproduced the cwd bug fixed here.

  • 49 unit tests pass across the five parity modules, including normal and exceptional cwd restoration.

  • py_compile, JSON/YAML parsing, targeted Ruff checks, and the jq check-run regex harness pass.

  • choose_test_job_family against 120 real jobs from trunk run 37071505172 resolves the complete 2-shard CUDA inductor family without ROCm contamination.
  • Tracked in AIPYTORCH-1387.

    Diff: 254 lines (+190 / -64) across 3 files Reviewer: jithunnair-amd Review duration: 2745m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3768"
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 15.4% · Safe to merge
    15.4%
    Repository