[CI] Fix parity artifact and RX7900 discovery #3753
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
jithunnair-amd
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-sandboxandrocm-previewall publish check-runs namedlinux-noble-rocm-py3.11-mi350 / test (default, 1, 8, ...). Anything thatdecided "which run do I read" from that mixture could silently pick a workflow
the report was never meant to use:
matching check-runs, so a
trunk-rocm-sandboxrun could supply the XML whilethe logs still came from
trunk. On SHAa4609ebethat swapped a failedtrunk run for a successful sandbox run and moved 6,114 ROCm statuses.
derive_shard_countandresolve_job_prefixfell back to commit-widecheck-runs, so a sibling workflow's shard layout or job prefix could be
adopted for a run that does not contain it.
parity-auto.ymlreadiness gate matched check-runs by name only. MI350waited 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
navi31name, and CUDAdistributed artifacts were dropped because only
defaultjob IDs were allowedthrough the artifact filter.
Tracked in AIPYTORCH-1260.
Changes
Every source decision is scoped to one run.
download_testlogsreads eachtest config from exactly the workflow configured for it in
parity_job_config.json, with no cross-workflow substitution. A newget_check_runs_for_runfilters check-runs on the run id embedded indetails_url, and bothderive_shard_countandresolve_job_prefixuse it, soa shard total or job prefix can only come from the run being downloaded.
The auto-trigger gate matches the downloader.
archs_that_rannow recordsan 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_4gpucheck-run on the commit. Ona4609ebethe MI350 gateset drops from 28 check-runs to 15, excluding the sandbox run; on
3b73144fitdrops from 28 to 15, excluding
rocm-preview.Partial coverage is now visible.
download_testlogsnames the shards itasked for but did not receive in
error_msgs, which already fails the job atexit. It also writes
_shard_totals.jsonsodetect_log_failures.pykeeps atrue
N/Mdenominator rather than counting the logs that happened to download.parity.ymlrequires XML for each config the arch is configured for, hardfailing 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.pyrenders a config with no comparable rows asn/a.MI350 four-GPU distributed coverage. A
distributed_4gpusource readsperiodic-rocm-mi350and merges its XML and logs into thedistributedreportcategory;
parity-auto.ymlwaits for both four-GPU shards and re-dispatches aSHA when a later periodic run adds coverage. Trunk SHAs without a periodic run
remain valid.
Topology and artifact fixes. RX7900 replaces
navi31across 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
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.
confirming the MI350 gate set narrows from 28 check-runs to the 15 belonging
to
trunkandperiodic-rocm-mi350, and that preview, CUDA and MI300 eachresolve only their own runs.
a4609ebesucceeded with zerotrunk-rocm-sandboxreferences: all configs from trunk
37000844958, four-GPU from periodic37005713395, CUDA from the same trunk run plusinductor37000845256._shard_totals.jsonrecordedrocm 8, rocm_dist 3, rocm_dist4gpu 2,, and the four-GPU logrocm_inductor 2, cuda 14, cuda_dist 10, cuda_inductor 2
failures now report shard
1/2where they previously read1/5.3b73144fresolved three distinct MI300 runs(
rocm-mi300,periodic-rocm-mi300,inductor-rocm-mi300) and preview fromrocm-previewonly, with the configured prefix self-healing py3.12 to py3.11from each run's own jobs. It fails for a pre-existing reason: upstream
inductor.ymlnever 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.
50,225 rows and no CUDA baseline, now reads
n/awhere the previous codereported
0.00%.