← Back to Pull requests

fix(ci): map external repo paths for test selection #7921

Closed
unknown closed this pull request without merging on Sep 03, 2026 20:55 UTC
View on GitHub
unknown unknown commented on Sep 03, 2026 19:55 UTC
Author

Motivation

The rocm-libraries multi-arch CI integration uses TheRock's test dependency selector to decide which tests should run for changed external repo paths.

Some rocm-libraries paths were not mapped into TheRock's selector space, so changes under those paths could fail to select the intended runnable tests. This is a follow-up to the multi-arch CI enablement work tracked in https://github.com/ROCm/TheRock/issues/3343.

GitHub issue: https://github.com/ROCm/TheRock/issues/3343

Technical Details

This PR updates test_tools/determine_rocm_test_dependencies.py to handle the rocm-libraries path gaps in TheRock rather than relying on rocm-libraries-specific workflow workarounds.

The change:

  • Maps shared BLAS helper paths used by rocm-libraries:

  • - shared/stinkytofu
    - shared/tensile
    - shared/origami
    - shared/mxdatagenerator
  • Maps projects/composablekernel to the TheRock graph key composable_kernel.

  • Maps dnn-providers/integration-tests to the relevant hipDNN/MIOpen provider test selectors.

  • Translates hipDNN graph keys such as hipdnn_integration_tests and hipdnn_samples to the hyphenated CI test selector names consumed by the test matrix.

  • Keeps get_subprojects_to_test() in graph-key space while translating selector names at the CLI/GitHub Actions output boundary.

  • Updates --explain output so it reports CI selector aliases when output translation changes the emitted selector names.
  • Test Plan

    Run the focused unit tests for the dependency selector and pre-commit on the changed files.

    Test Result

    Passed:

  • python -m pytest test_tools/tests/determine_rocm_test_dependencies_test.py -q

  • pre-commit run --files test_tools/determine_rocm_test_dependencies.py test_tools/tests/determine_rocm_test_dependencies_test.py
  • Result:

  • 56 passed, 17 subtests passed
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 251 lines (+188 / -63) across 3 files Reviewer: endurthiabhilash Review duration: 60m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 251 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7921"
    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: 39% (MEDIUM) · Higher = larger blast radius
    39%
    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: 15.4% · Safe to merge
    15.4%
    Repository