← Back to Pull requests

[CI] Fix parity artifact and RX7900 discovery #3753

Closed
unknown closed this pull request without merging on Oct 05, 2026 13:32 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 16:53 UTC
Author

Problem

The parity tooling resolved its upstream data sources from commit-scoped GitHub
APIs, which return every workflow that ran a SHA. On one commit, trunk,
trunk-rocm-sandbox and rocm-preview all publish check-runs named
linux-noble-rocm-py3.11-mi350 / test (default, 1, 8, ...). Anything that
decided "which run do I read" from that mixture could silently pick a workflow
the report was never meant to use:

  • MI350 artifacts were downloaded from whichever same-SHA run had the most

  • matching check-runs, so a trunk-rocm-sandbox run could supply the XML while
    the logs still came from trunk. On SHA a4609ebe that swapped a failed
    trunk run for a successful sandbox run and moved 6,114 ROCm statuses.
  • derive_shard_count and resolve_job_prefix fell back to commit-wide

  • check-runs, so a sibling workflow's shard layout or job prefix could be
    adopted for a run that does not contain it.
  • The parity-auto.yml readiness gate matched check-runs by name only. MI350

  • waited on, and could be satisfied by, sandbox and preview shards.

    Nothing in the published report identified its source run, so this went
    unnoticed. Partial coverage was equally quiet: a config whose download produced
    nothing rendered as 0.00% disagreement, indistinguishable from perfect parity,
    and a missing shard turned its slice of the suite into MISSED rows that read as
    a genuine ROCm coverage gap.

    Separately, MI350's four-GPU distributed tests were not collected at all, the
    RX7900 topology was still registered under the retired navi31 name, and CUDA
    distributed artifacts were dropped because only default job IDs were allowed
    through the artifact filter.

    Tracked in AIPYTORCH-1260.

    Changes

    Every source decision is scoped to one run. download_testlogs reads each
    test config from exactly the workflow configured for it in
    parity_job_config.json, with no cross-workflow substitution. A new
    get_check_runs_for_run filters check-runs on the run id embedded in
    details_url, and both derive_shard_count and resolve_job_prefix use it, so
    a shard total or job prefix can only come from the run being downloaded.

    The auto-trigger gate matches the downloader. archs_that_ran now records
    an arch to allowed-run-ids map from the configured workflow paths, and the ROCm
    and CUDA readiness gates intersect their name regex with those run ids. The
    four-GPU shard-completeness check is scoped the same way instead of counting
    every distributed_4gpu check-run on the commit. On a4609ebe the MI350 gate
    set drops from 28 check-runs to 15, excluding the sandbox run; on 3b73144f it
    drops from 28 to 15, excluding rocm-preview.

    Partial coverage is now visible. download_testlogs names the shards it
    asked for but did not receive in error_msgs, which already fails the job at
    exit. It also writes _shard_totals.json so detect_log_failures.py keeps a
    true N/M denominator rather than counting the logs that happened to download.
    parity.yml requires XML for each config the arch is configured for, hard
    failing only when the download claimed success, so a reported incomplete
    download still publishes its partial report and goes red at the end as before.
    generate_summary.py renders a config with no comparable rows as n/a.

    MI350 four-GPU distributed coverage. A distributed_4gpu source reads
    periodic-rocm-mi350 and merges its XML and logs into the distributed report
    category; parity-auto.yml waits for both four-GPU shards and re-dispatches a
    SHA when a later periodic run adds coverage. Trunk SHAs without a periodic run
    remain valid.

    Topology and artifact fixes. RX7900 replaces navi31 across the config,
    workflow inputs and CLI choices. CUDA distributed job IDs are included in the
    artifact allowlist so distributed reports are no longer dropped.

    Validation

  • 46 unit tests pass. The two new run-scoping regression tests were confirmed to

  • fail against the previous unscoped code (shard total 8 instead of 3, and a
    sibling workflow's job prefix adopted) and to pass with the fix.
  • The gate jq was replayed against live API data for both problem SHAs,

  • confirming the MI350 gate set narrows from 28 check-runs to the 15 belonging
    to trunk and periodic-rocm-mi350, and that preview, CUDA and MI300 each
    resolve only their own runs.
  • Live MI350 run on a4609ebe succeeded with zero trunk-rocm-sandbox

  • references: all configs from trunk 37000844958, four-GPU from periodic
    37005713395, CUDA from the same trunk run plus inductor 37000845256.
    _shard_totals.json recorded rocm 8, rocm_dist 3, rocm_dist4gpu 2,
    rocm_inductor 2, cuda 14, cuda_dist 10, cuda_inductor 2
    , and the four-GPU log
    failures now report shard 1/2 where they previously read 1/5.
  • Live MI300 and preview run on 3b73144f resolved three distinct MI300 runs

  • (rocm-mi300, periodic-rocm-mi300, inductor-rocm-mi300) and preview from
    rocm-preview only, with the configured prefix self-healing py3.12 to py3.11
    from each run's own jobs. It fails for a pre-existing reason: upstream
    inductor.yml never ran for that SHA, so there is no CUDA inductor baseline.
    The new per-config check correctly warned rather than hard failing, and the
    partial report was still published.
  • Regenerating that MI300 summary shows the fix on real data: inductor, with

  • 50,225 rows and no CUDA baseline, now reads n/a where the previous code
    reported 0.00%.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: jithunnair-amd Review duration: 4118m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3753"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%
    Repository