feat(ci): run TensileLite common GEMM tests in a tensilelite-common job #8459
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
endurthiabhilash
ISSUE ID : https://github.com/ROCm/rocm-libraries/issues/12491
Motivation
TensileLite's
Tensile/Tests/commonsuite is the one that actually generates, builds, and runs GEMM kernels against a CPU reference. Right now it only runs in Math CI'spreliminaryjob. TheRock runs the TensileLite unit tree, but not this. This PR adds atensilelite-commonjob so TheRock covers it too, against the installed artifact, on the same four architecturespreliminaryuses.Companion rocm-libraries PR (adds the
hw-commoncategory this job runs): https://github.com/ROCm/rocm-libraries/pull/12492Technical Details
pytest_runner.py: a newTEST_CATEGORYenv var overridesTEST_TYPE, for jobs that always run one category regardless of tier. Addstensilelite-commontoINSTALLED_COMPONENTS(same install tree astensilelite), soTEST_COMPONENTresolves and the JUnit report gets its own name.fetch_test_configurations.py: a newtensilelite-commonentry runningTEST_CATEGORY=hw-commonthroughpytest_runner.py, with the same tensilelite requirements file. It's a separate job rather than another stage ontensilelite, so a unit-test failure can't hide the GEMM result.test:tensilelitenow selects both jobs.skip-gfxNNNN, and a family with no declarations (gfx1103, gfx115X) would try to run all ~417 configs.determine_rocm_test_dependencies.py: thetensilelitegraph key now fans out to both CI selectors via_CI_TEST_SELECTOR_ALIASES, likerocgdbdoes. I put it there instead of atest_includeintest_policies.toml, becausetest_includeonly fires when tensilelite is the changed project itself. The alias fires wherever the key lands in the result. So TensileLite,shared/origami,shared/stinkytofu, andshared/mxdatageneratorchanges all select it, and hipBLASLt-only or rocroller-only changes select neither.hw-commonyet, and submodule bumps follow their own governance. So when a job pins a category withTEST_CATEGORYand the installed component doesn't define it,pytest_runner.pyexits 0 with a::warning::annotation instead of failing. A missing tier fromTEST_TYPEis 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/testsinclude_family, emptiedinclude_family, removed theTEST_LABEL_GROUPSentry, maderesolve_test_category()ignoreTEST_CATEGORY, and removed the selector alias. Each one turns at least one new test red.fetch_test_configurations.pywith the selector output for aprojects/hipblaslt/tensilelitechange, per family.pre-commit runon the changed files.test:tensilelite-commonlabel.Test Result
post_stage_upload_test.py::test_archives_ccache_subdirectory) ispyzstdmissing from my local venv and is unrelated.tensilelite-commonfor gfx94X, gfx950, gfx90a, and gfx120X, each on its 1-GPU runner label with/dev/kfdand/dev/drimapped. It isn't emitted for gfx1151.hw-commonon 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.pytest_runner.pyagainst thetest_categories.yamlTheRockmainpins today (2e8f62c):hw-commonskips 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
Related: ROCm/TheRock#5183, ROCm/TheRock#7851, ROCm/TheRock#3288