ci(miopen): run miopen-dbsync on gfx950 as advisory #8813
<!-- therock-pr-bot-policy-check -->
✅ All Policy Checks Passed
| Check | Status | Details |
|---|:---:|---|
| 📝 PR Description | ✅ Pass | — |
| ⛔ Forbidden Files | ✅ Pass | — |
| 🧪 Unit Test | ✅ Pass | — |
| 🚫 Draft PR | 🔜 To Be Enabled | — |
| 🚩 Feature Flag | 🔜 To Be Enabled | — |
| 📊 Code Coverage | 🔜 To Be Enabled | — |
🎉 All policy checks passed!
📖 Need help? See the Policy FAQ for details on every check and how to fix failures.
<!-- therock-pr-bot-precommit-failed -->
Pre-commit check failed
⛔ pre-commit failed
Please run locally:
python -m pip install pre-commitpre-commit installpre-commit run --all-files --show-diff-on-failureThis repo uses .pre-commit-config.yaml.
<!-- therock-pr-bot-fix-policies -->
🎉 All checks passed! This PR is ready for review.
Validation update (ALMIOPEN-2604)
miopen-dbsync passes on both gfx942 and gfx950 with this change.
Sweep: multi_arch_ci run 38498125276, dispatched with test:miopen-dbsync,test_filter:full on gfx94x,gfx950 (Linux only). Code under test is this PR's head (8ce4a7d4, includes the main merge) plus rocm-libraries develop @ 58179e4b. The run concluded success.
| Job | Result | StaticFDBSync |
|---|---|---|
| miopen-dbsync (gfx94X-dcgpu) (blocking) | success | gfx942 @ 304 CU [ OK ], gfx942 @ 228 CU [ OK ]; [ PASSED ] 1 test each |
| miopen-dbsync (gfx950-dcgpu) (xfail) (advisory) | success | gfx950 @ 256 CU [ OK ]; [ PASSED ] 1 test |
gfx942 stays blocking and gfx950 is advisory via expect_failure (TODO ALMIOPEN-2674 to drop it).
Not covered by CI:
workflow_dispatch, which routes the jobs to the family GPU runners. The GPU-gated CPU-pool path (TEST_RUNS_ON empty -> aws-linux-scale-rocm-prod) is covered only by the unit tests.determine_rocm_test_dependencies.py, which never emits miopen-dbsync (it only runs when PROJECTS_TO_TEST="*"). Selecting it on rocm-libraries PRs would need a separate TheRock-side change.Other CI on the previous run: pre-commit is fixed (black, 173e7c31). The remaining red check is Windows::release / Test gfx110X-all / Test rocsparse, a 300 s ctest timeout in the quick suite. It fails identically on unrelated branches and is not related to this change. hipdnn-samples / hipdnn_install / Test Python failures on the first run were infra timeouts and did not recur.
should we add a label? so if this PR has test:miopen-dbsync, we can test this with architectures we request?
we're trying to avoid conditionals in this file, as it ends up getting lost and is "assumed" behavior
ideally, we add plumbing + an entry in miopen-dbsync dictionary to note that this gfx family expects failure (could be helpful for other archs)
we would love the dictionary in build_tools/github_actions/fetch_test_configurations.py to be self-documenting, so if i look at miopen-dbsync, i know exactly what's expected (rather than having to scroll down to this if statement)
I think the label already exists: test:miopen-dbsync is registered inconfigure_ci_labels.py:162. But test: labels are subtractive, so putting it
on a PR that's on the quick tier gets you nothing: the label filter drops
everything else, then the test_types gate drops miopen-dbsync. Today you'd
need test:miopen-dbsync + test_filter:standard.
Is that sufficient?
Done — it's declared on the entry now:
"expect_failure_family": {
"linux": ["gfx950"],
},
and the if in run() is replaced by generic plumbing that reads the key for any component. It matches through _family_matches like include_family/exclude_family do, so both gfx950-dcgpu and gfx950 work — the old in {"gfx950-dcgpu"} only matched the group string, which was inconsistent with the include_family two lines above it. The declaration gets popped from the merged config so only the boolean the workflows read is emitted.
Documented in the key reference block at the top. I also dropped a comment of mine claiming this mirrored "the benchmark components" — that was just wrong, nothing else in the repo sets expect_failure.
One gap worth naming: the Windows hip-tests PAL/ROCR branch builds its entries from an explicit field allowlist and returns before this plumbing runs, so expect_failure_family wouldn't apply there. Nothing needs it today.
nit: we can just call it expect_failure, i think the dictionary will be self-explanatory
we can remove this, the comment below is fine
why pop? we can just use get
one more thing: does this even work? you can use labels in the PR (https://github.com/ROCm/TheRock/blob/main/docs/development/ci_behavior_manipulation.md) to test.
geomin12
JonathanLichtnerAMD
JIRA ID: ALMIOPEN-2604
Fixes ROCm/rocm-libraries#2266
Motivation
Add gfx950 (MI355X, 256 CU) coverage for the
miopen-dbsyncGHA test component. The runner script and gfx950 FAMILY_MAP entry already exist in rocm-libraries (run_dbsync_rocjitsu.py). This relies on TheRock #8500/#8575 (merged), which let CPU-only components run when GPU tests are gated.Technical Details
In
fetch_test_configurations.py, addgfx950to themiopen-dbsynclinuxinclude_familylist, and declare"expect_failure_family": {"linux": ["gfx950"]}on the same entry sotest_component.ymltreats the gfx950 job ascontinue-on-error(advisory) while gfx942 stays blocking. A TODO references ALMIOPEN-2674 to remove it once gfx950 is stable.expect_failure_familyis new generic plumbing (per review feedback): any component can declare the families it is advisory on, matched with the same_family_matcheshelper asinclude_family/exclude_family, instead of a per-component conditional inrun(). It is documented in the key reference block abovetest_matrix, and the declaration is popped from the merged job config so only theexpect_failureboolean the workflows read is emitted. Matching via_family_matchesalso accepts both the family group string (gfx950-dcgpu) and the individual target (gfx950).Add unit tests in
fetch_test_configurations_test.pycovering job selection for gfx942/gfx950 including the gated-GPU case, plus theexpect_failure_familyplumbing itself (target/group matching, per-platform scoping, key not emitted, matrix not mutated).Risk Assessment
Risk Level: 🟢 Low
CI config only; gfx950 is non-blocking and gfx942 behavior is unchanged.
Test Plan
Run
fetch_test_configurations_test.pylocally. Then validate in CI: a multi-arch dispatch for gfx950 (needstest_filter:full; atest:*label alone leaves the tier atquick, whichmiopen-dbsyncskips), and a rocm-libraries PR-event run (no gfx950 label) to confirm CPU-pool scheduling.Test Result
fetch_test_configurations_test.pypass locally (blackclean).expect_failure_familyrefactor, the emitted component JSON was re-checked directly:AMDGPU_FAMILIES=gfx950-dcgpuemits"expect_failure": truewith noexpect_failure_familykey,gfx94X-dcgpuemits neither (stays blocking), andAMDGPU_FAMILIES=gfx950(target form) now also emits"expect_failure": true— the previousin {"gfx950-dcgpu"}check did not match that form.multi_arch_cidispatch (gfx950,test:miopen-dbsync,test_filter:full, rocm-librariesdevelop@ 7943b63): https://github.com/ROCm/TheRock/actions/runs/37647187163.miopen-dbsync (gfx950-dcgpu) (xfail)passed: StaticFDBSync gfx950 @ 256 CU[ OK ]in ~92s,[ PASSED ] 1 test, job ~4 min. Note a dispatch routes the job to the family GPU runner, so this does not exercise the CPU pool.develop@ 58179e4b:multi_arch_cidispatch (gfx94x,gfx950,test:miopen-dbsync,test_filter:full) https://github.com/ROCm/TheRock/actions/runs/38498125276 succeeded.miopen-dbsync (gfx94X-dcgpu)(blocking): StaticFDBSync gfx942 @ 304 CU and @ 228 CU[ OK ].miopen-dbsync (gfx950-dcgpu) (xfail): gfx950 @ 256 CU[ OK ]. Dispatch jobs run on the family GPU runners, so the GPU-gated CPU-pool path is covered by unit tests only.