← Back to Pull requests

CI: skip multi-arch tests for StinkyTofu changes #8109

Closed
unknown closed this pull request without merging on Sep 14, 2026 19:38 UTC
View on GitHub
unknown unknown commented on Sep 09, 2026 20:36 UTC
Author

Summary

Issue: https://github.com/ROCm/rocm-libraries/issues/11885

Skip TheRock multi-arch test selection when the only changed external subtree is shared/stinkytofu.

StinkyTofu currently affects gfx1250, while the multi-arch CI test runners cover older GPU architectures. Running those tests for StinkyTofu-only changes consumes constrained runners without providing relevant test coverage. Build selection remains unchanged, so the applicable build validation still runs.

Changes

  • Map shared/stinkytofu to an empty test dependency list.

  • Distinguish between:

  • - no changed projects supplied, which continues to select all tests ();
    - an explicitly supplied project that intentionally maps to no tests, which selects an empty test list.
  • Preserve tests selected by other projects when StinkyTofu appears in a mixed change.

  • Add unit coverage for the empty and mixed-project behaviors.
  • Test plan

    python -m pytest test_tools/tests/determine_rocm_test_dependencies_test.py
    71 passed
    

    pre-commit run --files \
      test_tools/determine_rocm_test_dependencies.py \
      test_tools/tests/determine_rocm_test_dependencies_test.py
    
    All checks passed
    

    Verified GitHub Actions output for a StinkyTofu-only change:

    projects_to_test=
    

    Also verified:

  • no changed projects still produces ;

  • shared/stinkytofu with shared/origami still selects the Origami-related tests.
  • Follow-up work

    After this PR lands, a follow-up ROCm/rocm-libraries PR will:

    1. Update multi_arch_test_projects.py so shared/stinkytofu is forwarded to TheRock unchanged instead of being expanded into BLAS test projects.
    2. Update its tests to verify that StinkyTofu is treated as build-only and does not remove tests selected by other changed projects.
    3. Update therock-multi-arch-ci.yml to pin the TheRock commit containing this change.

    A future follow-up can enable appropriate StinkyTofu runtime tests when gfx1250 test runners become available.

    Diff: 255 lines (+191 / -64) across 3 files Reviewer: ammallya Review duration: 7142m
    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 · 255 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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8109"
    general weight: 0.35
    Reviewers
    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.1% (MEDIUM) · Higher = larger blast radius
    39.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: 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