← Back to Pull requests

fix(test): build the pytest skip marker from a single concrete GPU target #9749

Closed
unknown closed this pull request without merging on Nov 14, 2026 00:57 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 00:10 UTC
Author

JIRA ID : AIHPBLAS-5490

Motivation


pytest_runner.py builds not skip-<arch> from AMDGPU_FAMILIES via extract_gpu_arch() (gfx\w+), which yields a family token (gfx125X, matches no marker) or drops the stepping (gfx1250-strict → gfx1250). So AMDGPU_TARGETS=gfx1250-strict gives (gfx1250-strict) and not skip-gfx1250, deselecting every gfx1250-strict TensileLite config (all carry skip-gfx1250). A gfx1250-strict emulation run selected 1 of ~97.

Technical Details


  • New resolve_skip_arch(): a lone AMDGPU_TARGETS entry replaces the family token; multi-target families (gfx120X-all) keep it, since configMarks() already skips per detected arch. No family → no term (unchanged).

  • extract_gpu_arch() keeps -strict (gfx\w+(?:-strict)?, as in ROCm/TheRock#8944), so the target-less gfx1250-strict family stops falling back to gfx1250. -dcgpu/-all unchanged.

  • Single-target families: configs configMarks() already skipped are now deselected.

  • Docstring documents AMDGPU_TARGETS.
  • | AMDGPU_FAMILIES | AMDGPU_TARGETS | before | after |
    |---|---|---|---|
    | gfx1250 | gfx1250-strict | skip-gfx1250 | skip-gfx1250-strict |
    | gfx1250-strict | (empty) | skip-gfx1250 | skip-gfx1250-strict |
    | gfx125X-dcgpu | gfx1250 | skip-gfx125X | skip-gfx1250 |
    | gfx94X-dcgpu | gfx942 | skip-gfx94X | skip-gfx942 |
    | gfx120X-all | gfx1200,gfx1201 | skip-gfx120X | skip-gfx120X |

    Test Plan


  • python -m pytest build_tools/github_actions/tests/pytest_runner_test.py
  • Test Result


  • 56 passed (11 new)

  • pre-commit clean
  • Submission Checklist


  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • 🤖 Generated with Claude Code

    Diff: 221 lines (+165 / -56) across 2 files Reviewer: geomin12 Review duration: 13006m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 221 lines diff across 2 files
    0.37
    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%
    56%
    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.323
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9749"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.9% · Safe to merge
    15.9%
    Repository