← Back to Pull requests

[CI] Restore MI350 Slow parity collection #3789

Open
ethanwee1 opened this pull request with 165 lines diff across 4 files
View on GitHub
ethanwee1 ethanwee1 commented on Oct 09, 2026 19:21 UTC
Author

Problem


The Parity HUD has a separate MI350 Slow target, but it has shown no Slow data since Oct 2. parity.yml always passes --exclude_slow, so parity artifacts contain no Slow rows.

Changes


  • parity_job_config.json:

  • - Registers three-shard Slow sources: MI350 (slow workflow) and CUDA (sm86 build).
    - Adds a CUDA slow_checkrun_regex. It is separate from checkrun_regex because slow.yml runs CUDA Slow on the -sm86 build rather than the trunk build. Like checkrun_regex, it accepts any py3.N/gccN.
  • parity-auto.yml:

  • - Waits for complete ROCm and CUDA Slow shards on arches that register a Slow source. Today that is only MI350.
    - Dispatches with exclude_slow=true when no arch is collecting Slow.
  • parity.yml: adds an exclude_slow input. Slow is collected only when it isn't excluded and the arch has a Slow source.

  • download_testlogs: resolve_non_variant_run picks the push run that has real Slow shards. It skips the newer scheduled re-run, which only has rerun_disabled_tests / mem_leak_check variants.
  • Validation


    All runs are on the current head, with develop merged in.
  • parity.yml, MI350 only, at trunk commit 681a0229: https://github.com/ROCm/pytorch/actions/runs/44556666036. It succeeded with 3/3 ROCm MI350 and 3/3 CUDA sm86 Slow shards. TEST SLOW: 952 CUDA, 847 ROCm, 11.45% disagree. Overall agree: 99.17%.

  • Dry-run parity-auto: https://github.com/ROCm/pytorch/actions/runs/44557696789. It succeeded and loaded the new CUDA Slow regex.

  • - 196 of 200 commits were already covered by existing reports and were skipped.
    - 3 were waiting on pending shards.
    - 67803349 was held at mi350 slow shards incomplete (0/3 present); its slow.yml run failed.
  • Config JSON parses. The CUDA Slow regex matches only linux-jammy-cuda13.2-…-sm86 / test (slow, …) among current slow.yml job names. No new unit tests.
  • Tracked in AIPYTORCH-1244.

    Diff: 165 lines (+153 / -12) across 4 files Reviewer: jithunnair-amd Review duration: 67014m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.45) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 165 lines diff across 4 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 4 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    87%
    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.306
    Real PR Conversation Timeline
    5 items
    jithunnair-amd jithunnair-amd commented on code on Nov 19, 2026 15:27 UTC
    Code Review
    .automation_scripts/pytorch-unit-test-scripts/download_testlogs:1
    @@ -1098,6 +1098,41 @@ def run_cross_source_comparison(parsed_args):
     # Authenticated users get 5000 requests/day
     # Check rate-limit without penalty: curl -H "Authorization: token $GITHUB_TOKEN" -I https://api.github.com/users/octocat
     
    +def resolve_non_variant_run(workflow, sha, test_config, job_prefix, status='success', ignore_status=False):

    @pablo-garay Can you please review this logic?

    github-actions[bot] github-actions[bot] commented on Nov 19, 2026 15:27 UTC
    Bot

    <!-- rocm-security-gh:pr-findings:v1 -->

    [!CAUTION]

    5 potential secret finding(s) were committed in this pull request. Treat each credential as compromised and revoke or rotate it now, even if a later commit removed it. Deleting the line or force-pushing does not undo the leak: the commits stay reachable from this pull request and from every clone or fork, and automated scanners harvest secrets pushed to public repositories within minutes.

    > If a finding is a test fixture or a false positive, allowlist it in the configuration of the scanner that reported it.

    <details>
    <summary><b>Security scan found 5 critical or high finding(s) on lines changed by this pull request</b></summary>

    | Scanner | Severity | Rule | Location | Finding |
    |---|---|---|---|---|
    | Gitleaks | HIGH | generic-api-key | tools/test/test\_native\_aot.py:391 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
    | Gitleaks | HIGH | generic-api-key | torch/\_inductor/codegen/nv\_universal\_gemm/nv\_universal\_gemm.py:924 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
    | Gitleaks | HIGH | generic-api-key | torch/fx/graph.py:2348 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
    | Gitleaks | HIGH | generic-api-key | torch/testing/\_internal/common\_modules.py:3176 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |
    | Gitleaks | HIGH | generic-api-key | torch/testing/\_internal/common\_modules.py:3198 | Detected a Generic API Key, potentially exposing access to various services and sensitive operations. |

    View the security scan run for complete reports.

    _“New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta._

    </details>

    jithunnair-amd jithunnair-amd commented on code on Nov 19, 2026 15:31 UTC
    Code Review
    .automation_scripts/pytorch-unit-test-scripts/parity_job_config.json:1
    @@ -15,9 +16,11 @@
         "default": [{ "workflow": "trunk", "job_prefix": "linux-jammy-cuda13.2-py3.11-gcc11" }],
         "distributed": [{ "workflow": "trunk", "job_prefix": "linux-jammy-cuda13.2-py3.11-gcc11" }],
         "inductor": [{ "workflow": "trunk", "job_prefix": "linux-jammy-cuda13.2-py3.11-gcc11" }],
    +    "slow": [{ "workflow": "slow", "job_prefix": "linux-jammy-cuda13.2-py3.11-gcc11-sm86" }],
         "test_kinds": ["test-osdc", "test"],
    -    "shard_counts": { "default": 14, "distributed": 10, "inductor": 2 },
    -    "checkrun_regex": "linux-jammy-cuda13[.]2-py3[.][0-9]+-gcc[0-9]+ / (test-osdc|test) [(](default|distributed|inductor),"
    +    "shard_counts": { "default": 14, "distributed": 10, "inductor": 2, "slow": 3 },
    +    "checkrun_regex": "linux-jammy-cuda13[.]2-py3[.][0-9]+-gcc[0-9]+ / (test-osdc|test) [(](default|distributed|inductor),",
    +    "slow_checkrun_regex": "^linux-jammy-cuda13[.]2-py3[.][0-9]+-gcc[0-9]+-sm86 / (test-osdc|test) [(]slow,"

    If I read the two regexes here, the only difference seems to be the "-sm86" before the " /" in the latter. And the "^" in the beginning of the latter, but I assume that's irrelevant. Do we need to have them be two different regexes? Please explain why?

    jithunnair-amd jithunnair-amd commented on code on Nov 19, 2026 15:32 UTC
    Code Review
    .automation_scripts/pytorch-unit-test-scripts/parity_job_config.json:1
    @@ -1,11 +1,12 @@
     {
       "_comment": "Single source of truth for pytorch/pytorch job-name matching used by the parity tooling. Consumed by download_testlogs (Python, S3 artifact + log matching) and parity-auto.yml (bash/jq, upstream check-run gating before dispatching parity.yml). See _subfields for the per-arch schema.",
       "_subfields": {
    -    "default/distributed/inductor": "Ordered list of {workflow, job_prefix} sources for that test config. The first entry is the primary upstream workflow + check-run/job-name prefix; any later entries are fallbacks tried (in order) when the primary workflow run is missing for a SHA.",
    +    "default/distributed/inductor/slow": "Ordered list of {workflow, job_prefix} sources for that test config. The first entry is the primary upstream workflow + check-run/job-name prefix; any later entries are fallbacks tried (in order) when the primary workflow run is missing for a SHA.",
         "distributed_4gpu": "Optional supplemental ROCm source. Its XML is merged into the distributed report category when its workflow ran for the target SHA.",
         "shard_counts": "Number of shards per test config.",
         "test_kinds": "CUDA only: upstream test-job kinds to match (e.g. test-osdc, test).",
    -    "checkrun_regex": "PCRE matching this arch's ROCm test check-run names (parity-auto gating). CUDA uses it for the trunk CUDA test jobs."
    +    "checkrun_regex": "PCRE matching this arch's ROCm test check-run names (parity-auto gating). CUDA uses it for the trunk CUDA test jobs.",
    +    "slow_checkrun_regex": "CUDA only: rename-tolerant PCRE for slow test check-runs."

    What does "rename-tolerant" mean? Is it unique to the slow config?

    Assignees
    ethanwee1 ethanwee1
    Labels
    risk: low confidence: 87.2% 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.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    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: 87.2% · Lower = rushed or shallow review
    87.2%
    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: 5.8% · Safe to merge
    5.8%
    Repository