← Back to Pull requests

feat(ci): add mirage/rocjitsu emulation tests #8668

Open
unknown opened this pull request with 389 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 01, 2026 17:05 UTC
Author

Motivation

Reland ROCm/TheRock#6436 by reverting the revert from ROCm/TheRock#7963.

ROCm/TheRock#6436 added the first mirage/rocjitsu emulation tests to the TheRock CI matrix. It was reverted while the mirage/rocjitsu fix in ROCm/rocm-systems#11312 was still pending. That rocm-systems fix has now landed upstream, so this PR restores the TheRock-side emulation test wiring.

The original motivation still applies: rocrtst and most runtime tests need a real GPU, which ties them to limited GPU runners. Running selected tests through mirage and rocjitsu lets CI exercise ROCr/runtime behavior on CPU runners and eventually on architectures without silicon in the pool.

Technical Details

This PR is intentionally a revert-of-revert. It restores the #6436 changes and resolves only the conflicts caused by later changes on main.

Restored behavior:

  • Adds test_tools/emulation.py for the emulated matrix entry and mirage run command construction.

  • Adds test_tools/emulation_test.py, which checks that the emulated GPU comes up and reports the expected target.

  • Adds a CPU-runner emulated rocrtst (emulated mi350x) matrix entry, pinned to the quick category with ROCRTST_PLATFORM_OVERRIDE=EMULATOR.

  • Adds the TEST_COMPONENT fallback in test_component.yml so decorated job names still run the undecorated component tests.

  • Restores docs and generator unit coverage from #6436, merged with the current main requirements/test-tier docs.

  • Resolves the zizmor findings from the reland by suppressing local self-repository uses: paths that actionlint requires and documenting the dynamic test container image expression.
  • Emulator artifacts:

  • Emulated component jobs fetch the component under test plus mirage and rocjitsu artifacts from the current workflow run.

  • The emulation stage builds mirage and rocjitsu from the same TheRock source checkout as the rest of the workflow. Release workflows use the release branch's rocm-systems submodule; external rocm-systems CI can still use the existing external source override path.

  • A fixed historical/prebuilt emulator baseline is left as future work and should use published/prebuilt artifacts or stage reuse rather than checking out a second rocm-systems tree.

  • The testing docs now describe this behavior and the future baseline path.
  • Issue Tracking

  • Original PR: ROCm/TheRock#6436

  • Revert: ROCm/TheRock#7963

  • rocm-systems fix now landed upstream: ROCm/rocm-systems#11312

  • Original emulation tracking: https://github.com/ROCm/rocm-systems/issues/8384

  • Revert/fix tracking: ROCm/TheRock#7964
  • Test Plan

  • Commit hooks / pre-commit hooks run during git commit.

  • python3 -m unittest build_tools.github_actions.tests.fetch_test_configurations_test

  • pre-commit run --all-files
  • Test Result

  • Commit hooks passed.

  • pre-commit run --all-files: passed.

  • python3 -m unittest build_tools.github_actions.tests.fetch_test_configurations_test: 70 tests passed.
  • The original #6436 PR body contains the full end-to-end emulated rocrtst validation and matrix-parity results that this reland restores.

    Diff: 389 lines (+291 / -98) across 4 files Reviewer: endurthiabhilash Review duration: 87861m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.50) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 389 lines diff across 4 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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.357
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #8668"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% 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: 50.1% (MEDIUM) · Higher = larger blast radius
    50.1%
    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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 27.7% · Safe to merge
    27.7%
    Repository