← Back to Pull requests

ci(miopen-dbsync): fetch rocjitsu and mirage artifacts #9961

Closed
unknown closed this pull request without merging on Nov 18, 2026 01:58 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 19:07 UTC
Author

Motivation

miopen-dbsync builds rocjitsu from source on every run (run_dbsync_rocjitsu.py clones
rocm-systems and compiles it, about 60 CPU-minutes). On 2-vCPU runners that used 25-29 of the
30-minute step budget and caused timeouts (ROCm/rocm-libraries#15560, worked around by #9905
moving CPU test runners to the medium pool).

TheRock already builds and ships rocjitsu and mirage as artifacts, so the runner does not need to
build its own. This is step 1 of ALMIOPEN-3270: make the artifacts available to the job. The runner
script change lands separately in rocm-libraries.

JIRA ID : ALMIOPEN-3270
ISSUE ID : https://github.com/ROCm/rocm-libraries/issues/15560

Technical Details

  • fetch_test_configurations.py: add --rocjitsu --mirage to the miopen-dbsync

  • fetch_artifact_args. Both flags already exist in install_rocm_from_artifacts.py.
  • ml-libs/CMakeLists.txt: MIOpen takes BUILD_DEPS on rocjitsu and mirage (guarded on

  • THEROCK_ENABLE_ROCJITSU / THEROCK_ENABLE_MIRAGE, so Windows and builds without the
    EMULATION feature are unaffected). This follows the rccl-translate pattern in
    comm-libs/CMakeLists.txt: BUILD_DEPS only orders the build and records the edge, and nothing
    is distributed with the miopen artifacts. test_tools/therock_consumer_graph.json gets the
    matching rocjitsu -> miopen and mirage -> miopen edges, so job selection and artifact reuse
    know the dependency and changes to rocjitsu/mirage select the MIOpen tests.
  • Not changed: BUILD_TOPOLOGY.toml artifact_deps for miopen. Adding it would make the

  • MIOPEN feature require ROCJITSU and MIRAGE (Rust) for every MIOpen build and stage.
  • fetch_test_configurations_test.py: new test that every component's fetch_artifact_args is

  • accepted by install_rocm_from_artifacts.py, since an unknown flag fails the job at runtime.
  • timeout_minutes is intentionally left at 30. The current runner script still builds its own

  • rocjitsu and ignores the extra artifacts, so lowering the timeout now would reintroduce
    timeouts. It is lowered in a follow-up, only after the script change is live in TheRock.
  • Cost of this PR on its own: about 20 MB of extra fetch on the miopen-dbsync job (rocjitsu_lib,

  • rocjitsu_run, mirage_run are target-neutral).

    Sequence (ALMIOPEN-3270): this PR, then a rocm-libraries PR that uses bin/mirage and
    share/rocjitsu/configs from the dist and bumps its pinned TheRock ref, then TheRock's submodule
    bump, then a PR lowering timeout_minutes.

    Test Plan

  • pytest build_tools/github_actions/tests/fetch_test_configurations_test.py, black.

  • Full-tree configure plus the consumer graph drift check, as in test_consumer_graph_drift.yml

  • (fetch_sources.py, then cmake -B build -GNinja -DTHEROCK_ENABLE_ALL=ON
    -DTHEROCK_AMDGPU_FAMILIES=gfx94X-dcgpu
    , then check_consumer_graph_drift.py --check).
  • Inspect build.ninja to confirm ml-libs/MIOpen/stamp/configure.stamp depends on the rocjitsu

  • and mirage stage stamps.
  • Manual run of the rocm-libraries runner change against artifacts fetched with these flags

  • (install_rocm_from_artifacts.py --run-id 42907787870 ... --rocjitsu --mirage) on gfx942 and
    gfx950, under mirage --in-process.
  • test_artifacts.yml dispatched on this branch (artifact_run_id=42907787870, standard,

  • test_labels=test:miopen-dbsync, CPU runner aws-linux-scale-rocm-medium) for gfx94X-dcgpu and
    gfx950-dcgpu, to confirm the extra artifacts are fetched and the current runner still passes.

    Test Result

  • Unit tests: 108 passed (including the new installer-args test, which fails with

  • unrecognized arguments when a fetch flag is misspelled), black clean.
  • Full-tree configure succeeds and check_consumer_graph_drift.py --check reports "Consumer graph

  • is up to date" with the hand-edited graph. The emitted graph has rocjitsu -> [..., miopen] and
    mirage -> [miopen], and the MIOpen configure stamp depends on emulation/rocjitsu and
    emulation/mirage stage stamps.
  • CI (current runner script, which still builds its own rocjitsu): both jobs pass.

  • - gfx94X-dcgpu, run 43489253191: Test
    step 8m07s. rocjitsu_lib, rocjitsu_run and mirage_run are downloaded (via
    --rocjitsu --mirage) and ignored. rocjitsu build 1m59s (-j 32), 304 CU 3m20s, 228 CU about 2m20s.
    - gfx950-dcgpu, run 43489259896: Test
    step 5m16s, same artifacts fetched, rocjitsu build 1m59s, 256 CU about 2m46s.
    - Both ran on aws-linux-scale-rocm-medium (32 vCPU). The 2-vCPU az small runners in
    ROCm/rocm-libraries#15560 spent 25-29 minutes on the same build, so the medium pool from #9905
    is what currently keeps this step well under 30 minutes.
  • Manual dbsync runs with TheRock's rocjitsu (revision 11c5a800, 2026-11-10), all non-skipped

  • StaticFDBSync results: gfx942 304 CU pass (203 s), gfx942 228 CU pass (149 s), gfx950 256 CU pass
    (174 s).

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 647 lines (+485 / -162) across 8 files Reviewer: JonathanLichtnerAMD Review duration: 6171m
    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 · 647 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.387
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9961"
    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.0% (MEDIUM) · Higher = larger blast radius
    52.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: 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