← Back to Pull requests

feat(ci): run TensileLite common GEMM tests in a tensilelite-common job #8459

Closed
unknown closed this pull request without merging on Sep 24, 2026 13:52 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 19:33 UTC
Author

ISSUE ID : https://github.com/ROCm/rocm-libraries/issues/12491

Motivation

TensileLite's Tensile/Tests/common suite is the one that actually generates, builds, and runs GEMM kernels against a CPU reference. Right now it only runs in Math CI's preliminary job. TheRock runs the TensileLite unit tree, but not this. This PR adds a tensilelite-common job so TheRock covers it too, against the installed artifact, on the same four architectures preliminary uses.

Companion rocm-libraries PR (adds the hw-common category this job runs): https://github.com/ROCm/rocm-libraries/pull/12492

Technical Details

  • pytest_runner.py: a new TEST_CATEGORY env var overrides TEST_TYPE, for jobs that always run one category regardless of tier. Adds tensilelite-common to INSTALLED_COMPONENTS (same install tree as tensilelite), so TEST_COMPONENT resolves and the JUnit report gets its own name.

  • fetch_test_configurations.py: a new tensilelite-common entry running TEST_CATEGORY=hw-common through pytest_runner.py, with the same tensilelite requirements file. It's a separate job rather than another stage on tensilelite, so a unit-test failure can't hide the GEMM result. test:tensilelite now selects both jobs.

  • Opt-in by family: gfx90a, gfx94X-dcgpu, gfx950-dcgpu, gfx120X-all. This has to be opt-in. Selection inside the suite works by each config declaring skip-gfxNNNN, and a family with no declarations (gfx1103, gfx115X) would try to run all ~417 configs.

  • determine_rocm_test_dependencies.py: the tensilelite graph key now fans out to both CI selectors via _CI_TEST_SELECTOR_ALIASES, like rocgdb does. I put it there instead of a test_include in test_policies.toml, because test_include only fires when tensilelite is the changed project itself. The alias fires wherever the key lands in the result. So TensileLite, shared/origami, shared/stinkytofu, and shared/mxdatagenerator changes all select it, and hipBLASLt-only or rocroller-only changes select neither.

  • Unsharded, 180 min timeout. With current family flags only gfx942 (~1 hour) is on the PR path. gfx950 (~2 hours) and gfx90a are postsubmit, and gfx120X is nightly. The timeout is sized for gfx950. If gfx950 test machines come back per-PR (#3288), I think we'd want to shard.

  • Graceful skip until the component catches up. TheRock's pinned rocm-libraries doesn't define hw-common yet, and submodule bumps follow their own governance. So when a job pins a category with TEST_CATEGORY and the installed component doesn't define it, pytest_runner.py exits 0 with a ::warning:: annotation instead of failing. A missing tier from TEST_TYPE is still an error. The job starts running for real once the pin includes ROCm/rocm-libraries#12492.
  • Test Plan

  • pytest build_tools/github_actions/tests test_tools/tests

  • Mutation check on the new tests: dropped gfx950 from include_family, emptied include_family, removed the TEST_LABEL_GROUPS entry, made resolve_test_category() ignore TEST_CATEGORY, and removed the selector alias. Each one turns at least one new test red.

  • Local dry run of fetch_test_configurations.py with the selector output for a projects/hipblaslt/tensilelite change, per family.

  • pre-commit run on the changed files.

  • GPU bring-up: this draft with the test:tensilelite-common label.
  • Test Result

  • 1046 passed, 2 skipped. The one failure (post_stage_upload_test.py::test_archives_ccache_subdirectory) is pyzstd missing from my local venv and is unrelated.

  • The dry run emits tensilelite-common for gfx94X, gfx950, gfx90a, and gfx120X, each on its 1-GPU runner label with /dev/kfd and /dev/dri mapped. It isn't emitted for gfx1151.

  • pre-commit passes.

  • GPU bring-up: pending.

  • Ran hw-common on gfx942 via a rocm-libraries dispatch pinned to this PR (run 35915539444). 136 tests were selected, matching Math CI. Every failure came from a worker-to-GPU bug in TensileLite's conftest, now fixed in ROCm/rocm-libraries#12492; every test on a correctly assigned worker passed.

  • Ran pytest_runner.py against the test_categories.yaml TheRock main pins today (2e8f62c): hw-common skips with exit 0 and a warning, and an undefined tier still exits 1.
  • Device / architecture coverage

    This is test infrastructure with no product-code change. The new job itself covers gfx942 on PRs, gfx950 and gfx90a on postsubmit, and gfx120X on nightly. I think PR CI plus the labelled bring-up run is enough; I don't see a need for a sweep.

    Risk level

    3 of 5. It's test-dispatch infra with real integration surface, and it adds about an hour of gfx942 runner time to TensileLite PRs.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Related: ROCm/TheRock#5183, ROCm/TheRock#7851, ROCm/TheRock#3288

    Diff: 620 lines (+465 / -155) across 7 files Reviewer: endurthiabhilash Review duration: 1099m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 620 lines diff across 7 files
    0.50
    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.385
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8459"
    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: 50.3% (MEDIUM) · Higher = larger blast radius
    50.3%
    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: 19.9% · Safe to merge
    19.9%
    Repository