← Back to Pull requests

Expand PyTorch default config test coverage by exclusions removal #10435

Open
unknown opened this pull request with 386 lines diff across 4 files
View on GitHub
unknown unknown commented on Dec 02, 2026 15:50 UTC
Author

Motivation

This PR expands PyTorch default-config test coverage in nightly TheRock CI by removing tests that pass from the exclusion list. It also fixes CI breaking when an entire skip block is empty.

JIRA ID: AIPYTORCH-1493

Technical Details

  • 33df6b992 (create_skip_tests.py): get_tests() returned the bare string "not " when no tests applied to a family, version and platform. pytest rejects that as an invalid -k expression (exit code 4, no tests run). It now returns an empty string, which pytest treats as no filter.

  • 4bb08b10c (generic.py, pytorch_2.13.py): removes the exclusions for tests that pass on the tested GPU families. The pytorch_2.13.py common block is removed entirely.

  • 284637af6 (generic.py): re-adds four TestMemPool tests to common → cuda:

  • - test_mempool_empty_cache_inactive
    - test_mempool_limited_memory_with_allocator
    - test_mempool_with_allocator
    - test_tensor_delete_after_allocator_delete

    They JIT-compile a dummy_allocator extension and fail with fatal error: 'hipblas/hipblas.h' file not found, because the wheel test environment does not install the ROCm development headers. They fail consistently on gfx94X-dcgpu, gfx90a and gfx950-dcgpu for torch 2.13, 2.14 and 2.15.

    Test Plan

  • Ran the PyTorch wheel build and test workflow (Multi-Arch Build Portable Linux PyTorch Wheels, standard tests) for release/2.13, release/2.14 and release/2.15, on the GPU families below.

  • Checked the generated skip expressions for torch 2.13, 2.14 and 2.15 with create_skip_tests.py.

  • Ran skip_tests_test.py.
  • Test Result

    Test jobs were run at commit 284637af6. Links are to the workflow runs:

    | Branch | GPU Arch | Job Link | Result |
    | --- | --- | --- | --- |
    | release/2.13 | gfx94X-dcgpu;gfx950-dcgpu;gfx90a | 46823055090 | All test jobs passed |
    | release/2.14 | gfx94X-dcgpu;gfx950-dcgpu;gfx90a | 46823153224 | All test jobs passed |
    | release/2.15 | gfx94X-dcgpu;gfx950-dcgpu;gfx90a | 46823235293 | All test jobs passed |
    | release/2.13 | gfx110X-all;gfx1151;gfx117X-all;gfx120X-all | 46813709870 | All test jobs passed |
    | release/2.14 | gfx110X-all;gfx1151;gfx117X-all;gfx120X-all | 46813814943 | gfx110X-all and gfx1151 passed. gfx120X-all failed because the runner found no GPU matching the pattern. gfx117X-all was still queued. |
    | release/2.15 | gfx110X-all;gfx1151;gfx117X-all;gfx120X-all | 46813886133 | gfx110X-all, gfx1151 and gfx120X-all passed. gfx117X-all was still queued. |

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 386 lines (+289 / -97) across 4 files Reviewer: ethanwee1 Review duration: 4043m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.66) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 386 lines diff across 4 files
    0.66
    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%
    46%
    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.356
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #10435"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 46.7% reviewed sensitive_module
    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: 66.2% (HIGH) · Higher = larger blast radius
    66.2%
    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: 46.7% · Lower = rushed or shallow review
    46.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: 35.3% · Moderate risk
    35.3%
    Repository