← Back to Pull requests

ci(miopen): run miopen-dbsync on gfx950 as advisory #8813

Open
JonathanLichtnerAMD opened this pull request with 153 lines diff across 2 files
View on GitHub
JonathanLichtnerAMD JonathanLichtnerAMD commented on Oct 06, 2026 23:23 UTC
Author

JIRA ID: ALMIOPEN-2604
Fixes ROCm/rocm-libraries#2266

Motivation

Add gfx950 (MI355X, 256 CU) coverage for the miopen-dbsync GHA 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, add gfx950 to the miopen-dbsync linux include_family list, and declare "expect_failure_family": {"linux": ["gfx950"]} on the same entry so test_component.yml treats the gfx950 job as continue-on-error (advisory) while gfx942 stays blocking. A TODO references ALMIOPEN-2674 to remove it once gfx950 is stable.

expect_failure_family is new generic plumbing (per review feedback): any component can declare the families it is advisory on, matched with the same _family_matches helper as include_family/exclude_family, instead of a per-component conditional in run(). It is documented in the key reference block above test_matrix, and the declaration is popped from the merged job config so only the expect_failure boolean the workflows read is emitted. Matching via _family_matches also accepts both the family group string (gfx950-dcgpu) and the individual target (gfx950).

Add unit tests in fetch_test_configurations_test.py covering job selection for gfx942/gfx950 including the gated-GPU case, plus the expect_failure_family plumbing 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.py locally. Then validate in CI: a multi-arch dispatch for gfx950 (needs test_filter:full; a test:* label alone leaves the tier at quick, which miopen-dbsync skips), and a rocm-libraries PR-event run (no gfx950 label) to confirm CPU-pool scheduling.

Test Result

  • All 83 unit tests in fetch_test_configurations_test.py pass locally (black clean).

  • After the expect_failure_family refactor, the emitted component JSON was re-checked directly: AMDGPU_FAMILIES=gfx950-dcgpu emits "expect_failure": true with no expect_failure_family key, gfx94X-dcgpu emits neither (stays blocking), and AMDGPU_FAMILIES=gfx950 (target form) now also emits "expect_failure": true — the previous in {"gfx950-dcgpu"} check did not match that form.

  • multi_arch_ci dispatch (gfx950, test:miopen-dbsync,test_filter:full, rocm-libraries develop @ 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.

  • Sweep with this PR's head + rocm-libraries develop @ 58179e4b: multi_arch_ci dispatch (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.
  • Diff: 153 lines (+148 / -5) across 2 files Reviewer: geomin12 Review duration: 14837m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.35) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 153 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.90 · 5 substantive comment(s)
    0.90
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    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.301
    Real PR Conversation Timeline
    13 items
    therock-pr-bot[bot] therock-pr-bot[bot] commented on Oct 06, 2026 23:24 UTC
    Bot

    <!-- 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.

    🙋 Wish to Override Policy?

    therock-pr-bot[bot] therock-pr-bot[bot] commented on Oct 06, 2026 23:25 UTC
    Bot

    <!-- therock-pr-bot-precommit-failed -->

    Pre-commit check failed

    ⛔ pre-commit failed

    Please run locally:

  • python -m pip install pre-commit

  • pre-commit install

  • pre-commit run --all-files --show-diff-on-failure
  • This repo uses .pre-commit-config.yaml.

    therock-pr-bot[bot] therock-pr-bot[bot] commented on Oct 13, 2026 17:17 UTC
    Bot

    <!-- therock-pr-bot-fix-policies -->
    🎉 All checks passed! This PR is ready for review.

    JonathanLichtnerAMD JonathanLichtnerAMD commented on Oct 14, 2026 13:56 UTC
    Author

    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:

  • The sweep is a 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.

  • The planned rocm-libraries PR-event run is not achievable: in the multi-arch PR flow, test selection comes from TheRock's 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.

    geomin12 geomin12 commented on code on Oct 14, 2026 21:48 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -721,15 +722,15 @@ def _family_matches(
             # job entirely on the `quick` tier -- no job is scheduled, so no artifact fetch
             # or rocjitsu build is paid for on quick (the runner script also self-skips on
             # TEST_TYPE=quick as a backstop). Runs serially (MIOPEN_DBSYNC_MAX_THREADS=1)
    -        # under rocjitsu; full set (gfx942 304+228) + artifact fetch + rocjitsu build
    -        # measures ~15 min, so 30 gives margin and fails a hung interposer faster.
    +        # under rocjitsu; full set (gfx942 304+228, gfx950 256) + artifact fetch + rocjitsu
    +        # build measures ~15 min, so 30 gives margin and fails a hung interposer faster.
             "timeout_minutes": 30,
             "test_script": "python ./build/share/miopen/bin/run_dbsync_rocjitsu.py",

    should we add a label? so if this PR has test:miopen-dbsync, we can test this with architectures we request?

    geomin12 geomin12 commented on code on Oct 14, 2026 21:51 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -1439,6 +1440,14 @@ def run():
                 job_config_data = {**_common_settings, **test_matrix[key]}
                 job_config_data["test_type"] = test_type
     
    +            # gfx950 dbsync is advisory (non-blocking) while it is re-qualified:
    +            # test_component.yml maps expect_failure to continue-on-error. gfx942
    +            # stays blocking. Mirrors the benchmark components' use of this field.
    +            # TODO(ALMIOPEN-2674): drop "gfx950-dcgpu" once gfx950 dbsync has been
    +            # green for a few consecutive standard/comprehensive/full runs.
    +            if key == "miopen-dbsync" and amdgpu_families in {"gfx950-dcgpu"}:
    +                job_config_data["expect_failure"] = True

    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)

    JonathanLichtnerAMD JonathanLichtnerAMD commented on code on Oct 14, 2026 23:15 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -721,15 +722,15 @@ def _family_matches(
             # job entirely on the `quick` tier -- no job is scheduled, so no artifact fetch
             # or rocjitsu build is paid for on quick (the runner script also self-skips on
             # TEST_TYPE=quick as a backstop). Runs serially (MIOPEN_DBSYNC_MAX_THREADS=1)
    -        # under rocjitsu; full set (gfx942 304+228) + artifact fetch + rocjitsu build
    -        # measures ~15 min, so 30 gives margin and fails a hung interposer faster.
    +        # under rocjitsu; full set (gfx942 304+228, gfx950 256) + artifact fetch + rocjitsu
    +        # build measures ~15 min, so 30 gives margin and fails a hung interposer faster.
             "timeout_minutes": 30,
             "test_script": "python ./build/share/miopen/bin/run_dbsync_rocjitsu.py",

    I think the label already exists: test:miopen-dbsync is registered in
    configure_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?

    JonathanLichtnerAMD JonathanLichtnerAMD commented on code on Oct 14, 2026 23:21 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -1439,6 +1440,14 @@ def run():
                 job_config_data = {**_common_settings, **test_matrix[key]}
                 job_config_data["test_type"] = test_type
     
    +            # gfx950 dbsync is advisory (non-blocking) while it is re-qualified:
    +            # test_component.yml maps expect_failure to continue-on-error. gfx942
    +            # stays blocking. Mirrors the benchmark components' use of this field.
    +            # TODO(ALMIOPEN-2674): drop "gfx950-dcgpu" once gfx950 dbsync has been
    +            # green for a few consecutive standard/comprehensive/full runs.
    +            if key == "miopen-dbsync" and amdgpu_families in {"gfx950-dcgpu"}:
    +                job_config_data["expect_failure"] = True

    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.

    geomin12 geomin12 commented on code on Oct 16, 2026 22:31 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -721,15 +733,22 @@ def _family_matches(
             # job entirely on the `quick` tier -- no job is scheduled, so no artifact fetch
             # or rocjitsu build is paid for on quick (the runner script also self-skips on
             # TEST_TYPE=quick as a backstop). Runs serially (MIOPEN_DBSYNC_MAX_THREADS=1)
    -        # under rocjitsu; full set (gfx942 304+228) + artifact fetch + rocjitsu build
    -        # measures ~15 min, so 30 gives margin and fails a hung interposer faster.
    +        # under rocjitsu; full set (gfx942 304+228, gfx950 256) + artifact fetch + rocjitsu
    +        # build measures ~15 min, so 30 gives margin and fails a hung interposer faster.
             "timeout_minutes": 30,
             "test_script": "python ./build/share/miopen/bin/run_dbsync_rocjitsu.py",
             "platform": ["linux"],
             "linux_cpu_runner": True,
             "test_types": ["standard", "comprehensive", "full"],
             "include_family": {
    -            "linux": ["gfx942"],
    +            "linux": ["gfx942", "gfx950"],
    +        },
    +        # gfx950 is advisory (non-blocking) while dbsync is re-qualified there;
    +        # gfx942 stays blocking.
    +        # TODO(ALMIOPEN-2674): drop this once gfx950 dbsync has been green for a
    +        # few consecutive standard/comprehensive/full runs.
    +        "expect_failure_family": {

    nit: we can just call it expect_failure, i think the dictionary will be self-explanatory

    geomin12 geomin12 commented on code on Oct 16, 2026 22:31 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -721,15 +733,22 @@ def _family_matches(
             # job entirely on the `quick` tier -- no job is scheduled, so no artifact fetch
             # or rocjitsu build is paid for on quick (the runner script also self-skips on
             # TEST_TYPE=quick as a backstop). Runs serially (MIOPEN_DBSYNC_MAX_THREADS=1)
    -        # under rocjitsu; full set (gfx942 304+228) + artifact fetch + rocjitsu build
    -        # measures ~15 min, so 30 gives margin and fails a hung interposer faster.
    +        # under rocjitsu; full set (gfx942 304+228, gfx950 256) + artifact fetch + rocjitsu
    +        # build measures ~15 min, so 30 gives margin and fails a hung interposer faster.
             "timeout_minutes": 30,
             "test_script": "python ./build/share/miopen/bin/run_dbsync_rocjitsu.py",
             "platform": ["linux"],
             "linux_cpu_runner": True,
             "test_types": ["standard", "comprehensive", "full"],
             "include_family": {
    -            "linux": ["gfx942"],
    +            "linux": ["gfx942", "gfx950"],
    +        },
    +        # gfx950 is advisory (non-blocking) while dbsync is re-qualified there;
    +        # gfx942 stays blocking.

    we can remove this, the comment below is fine

    geomin12 geomin12 commented on code on Oct 16, 2026 22:32 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -1439,6 +1458,18 @@ def run():
                 job_config_data = {**_common_settings, **test_matrix[key]}
                 job_config_data["test_type"] = test_type
     
    +            # A component declares the families it is advisory on via
    +            # "expect_failure_family" (see the key reference above). Pop the
    +            # declaration so only the boolean the workflows read is emitted;
    +            # test_component.yml maps expect_failure to continue-on-error.
    +            _xfail_list = job_config_data.pop("expect_failure_family", {}).get(

    why pop? we can just use get

    geomin12 geomin12 commented on Oct 16, 2026 22:33 UTC
    Reviewer

    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.

    Reviewers
    Assignees
    JonathanLichtnerAMD JonathanLichtnerAMD
    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: 34.6% (LOW) · Higher = larger blast radius
    34.6%
    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: 4.4% · Safe to merge
    4.4%
    Repository