test(miopen): name gtest prefixes after test_categories tiers #15490
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #15490"
general
weight: 0.35
JonathanLichtnerAMD
JIRA ID : ALMIOPEN-1197
Motivation
The prefix on a MIOpen gtest name (
Smoke/,Full/,Standard/,Perf/,Unit/) did not say where the test runs:Full/suites run on every PR (standard tier).Full/GPU_Softmaxalone is about 30% of standard time.Full/was also used for suites that run only nightly, only in full, or in no tier at all.Smoke<Variant>/suites (SmokeNhwc/,SmokeDense/, …) never ran in quick, becauseSmoke/does not match them.test_categories.yamlworked by hand-kept lists:- about 95 family globs to select tests;
- long
Full/...exclude lists to drop the slower instantiations from the lower tiers;- about 25 unprefixed GPU suites named one by one, repeated in three tiers.
A new test that missed the right lists ran nowhere, with no error.
TEST/TEST_Fsuites had no prefix. Quick needed its ownCPU_pattern, and the-DMIOPEN_TEST_ALL=Offfilter (Smoke) did not match them.After this PR, a test's prefix is the tier that first runs it, and every tier selects by prefix only. To add a test you pick its prefix; to move a test to another tier you rename its prefix. No YAML edit is needed.
Technical Details
1. Prefix rename (parameterized instantiations)
Each suite's tier comes from the
origin/developtest_categories.yamlon gfx94X Linux, ignoring the per-GPU excludes.| Old prefix | New prefix | Suites |
|---|---|---|
|
Smoke/|Quick/| 762 ||
Smoke/GPU_MIOpenDriverGemmTest_FP16(excluded from quick) |Standard/| 1 ||
Smoke<Variant>/(all ran in standard) |Standard<Variant>/| 198 ||
Full/that already ran in standard |Standard/| 276 ||
Full<Variant>/(FullSUM,FullSubbatch, …) |Standard<Variant>/| 25 ||
Full/that ran only in comprehensive |Comprehensive/| 121 ||
Full/that ran only in full |Full/| 31 ||
Full/that no tier runs (DeepBench,MIOpenTestConv,ConvGrpActivInfer,Lrn,Reduce_FP64, …) |Full/, still excluded in full | 49 ||
Perf/GPU_PReLU_bwd_|StandardPerf/(Standard/was taken by the renamedFull/copy) | 3 ||
Unit/CPU_SplitKValidation_Parameterized_NONE|Standard/| 1 |X_INSTANTIATE_CAST(binary_tensor_ops.cpp) now takes aTIERargument, because one macro instantiates bothComprehensiveandFulltype pairs.2. Plain
TEST/TEST_Fsuites get a prefix tooTEST_Pon::testing::TestWithParam<int>, through either a fixture base or ausingalias. Each has oneINSTANTIATE_TEST_SUITE_P(<Tier>, Suite, ::testing::Values(0)), so a test is named<Tier>/Suite.Test/0.- 114 CPU suites →
Quick/, exceptCPU_PerfDb_NONE→Standard/(quick excluded it before).- 25 GPU suites that standard named one by one →
Standard/.- 13 GPU suites that no tier ran →
Full/, excluded by name in full.-
CPU_DBSyncTarget_NONE-
CPU_WrapperRoutingResolveDefault_NONE-
CPU_WrapperRoutingDisabledSetReport_NONE-
GPU_BN_SpatialRegression_FP32-
GPU_HipBLASLtGEMMTestException_{FP32,FP16,BFP16,FP8,BFP8}-
GPU_PerfConfig_HipImplicitGemm3DGroupFwdXdlopsSearch_FP16- the child-worker filter in
perfdb.cpp-
wrapper_reentry_macrointest/gtest/CMakeLists.txt-
DEFAULT_FILTERinscript/check_plugin_reentry.pyHipdnnShim) stay plain, because the forwarding_parity entries replay them by name.3.
test_categories.yamlselects by prefix| Tier | test_patterns |
|---|---|
| quick |
Quick/|| standard |
Quick/,Standard/|| comprehensive | the standard patterns plus
Comprehensive/|| full | the comprehensive patterns plus
Full/|- the family allowlist
- the list of unprefixed GPU suites
- every exclude whose only job was to remove higher-tier suites
- the dead
BigTensorexclude- the per-GPU quarantines, renamed to the new names
-
DISABLED- in full: the DeepBench /
MIOpenTestConvoption gates and the suites that no tier runsHipdnnShimand theV4R1Fwd_BFP16/0case. The tiers are cumulative, so every tier above quick has to drop these itself.4. Guards and other references
test/utils/gtest_formating_checks.py(pre-commit) now rejects a plainTEST/TEST_Foutside theHipdnnShimsurface, because an unprefixed suite runs in no tier.- Both this check and
test/gtest/check_names.py(CI) accept onlyQuick|Standard|Comprehensive|Full, plus an optional suffix, as an instantiation prefix.test/gtest/CMakeLists.txt, the-DMIOPEN_TEST_ALL=Offprefix is nowQuick(it wasSmoke), and theadd_gtest_negative_filternames use the new prefixes.test/gtest/README.md,projects/miopen/AGENTS.md, theJenkinsfileTestSet comment, and the source comments.Behaviour changes
MIOPEN_TEST_ALL=On,FP32:NONE): unchanged.-DMIOPEN_TEST_ALL=Offruns (Jenkins debug/UBSan smoke, localmake check): they now run exactly the quick tier, including the CPU tests. They no longer run the oldSmoke<Variant>/suites, which are nowStandard<Variant>/./0suffix, so their dashboard history starts fresh.Test Plan
- Downloaded
miopen_gtestfrom develop run 44408719040 (602c8b16a2a) and from this PR's run 44424949817.- Listed each binary with the exact
--gtest_filterof every suite in its installedbin/MIOpen/CTestTestfile.cmake. For Windows, the filters were regenerated from each side's YAML.- Mapped every develop test name to its new name and compared the name sets, not just the counts.
Linux/Windows, gfx1201 Linux/Windows, gfx950.
test/gtestsource file passesclang++ -fsyntax-onlywith CI's compile flags.-
gtest_formating_checks.pypasses on the whole test folder; a scratch file confirmed that it rejects a plainTEST/TEST_Fand allows shim suites.-
check_names.pypasses on the new names.-
test_check_plugin_reentry.py: 27 passed.-
parse_test_categories.pygenerates the same 21 ctest suites.-
pre-commitpasses.Test Result
CI binaries, develop vs this PR. The sets of test names match in every cell, not just the counts:
| Tier | Generic | gfx110X | gfx115X Linux / Windows | gfx120X Linux / Windows | gfx950 |
|---|---|---|---|---|---|
| quick | 13,819 / 13,819 | 13,693 / 13,693 | 13,694 / 13,694 | 13,694 / 13,694 | 13,805 / 13,805 |
| standard | 35,064 / 35,064 | 27,191 / 27,191 | 27,243 / 27,243 · 27,245 / 27,245 | 27,245 / 27,245 · 27,247 / 27,247 | 35,050 / 35,050 |
| comprehensive | 58,173 / 58,173 | 48,093 / 48,093 | 48,142 / 48,142 · 48,136 / 48,136 | 48,146 / 48,146 · 48,148 / 48,148 | 58,160 / 58,160 |
| full | 62,371 / 62,371 | 52,278 / 52,278 | 52,327 / 52,327 · 52,321 / 52,321 | 52,331 / 52,331 · 52,333 / 52,333 | 62,358 / 62,358 |
| ffm-quick | 499 / 499 | | | | |
d3d350a8a91, the offline model again shows no difference in any tier:Full ran locally:
The full tier ran locally on gfx942 (MI300X) with no failures, and the tests that changed most behave exactly as they do
on develop, so there were no failures to trace back to the renaming.
Builds. I used CI's own builds rather than building locally:
- This PR: run 44664391473, head 3a3bd7415d8.
- Develop: run 44659875822, at d3d350a8a91, the commit the PR is based on.
Full tier on the PR build. It ran the exact miopen_gtest_full_suite filter from the build's CTestTestfile.cmake, split
across 8 GPUs, about 65 minutes per shard.
| Tests | Passed | Skipped | Failed |
|---|---|---|---|
| 62,384 | 57,309 | 5,075 | 0 |
Most-changed tests, PR vs develop. These are the 186 suites whose code changed beyond a prefix rename: every
TEST/TEST_F→TEST_P conversion, the renamed clashing suites, and the X_INSTANTIATE_CAST macro suites. That is 7,792 tests,
including the converted suites that no tier runs. I ran them on both builds and compared each test's result through the
old→new name map.
| Build | Passed | Skipped | Disabled (not run) | Failed |
|---|---|---|---|---|
| Develop | 5,385 | 37 | 2,370 | 0 |
| PR | 5,385 | 37 | 2,370 | 0 |
No test changed status and none went missing. Specific checks:
- perfdb.cpp starts child processes by test name. In the full run, 64 child processes ran with the new
Quick/CPU_PerfDb_ChildWorker_NONE.ProcessWork/0 filter, and none printed "Running 0 tests".
- The renamed or merged-fixture suites all ran: Standard/GPU_BN_SpatialRegression_FP32 passed,
Standard/GPU_StreamTracker_FP32 passed 24/24, Comprehensive/GPU_binaryTensorOps_cast_ passed 2,592/2,592, and
Quick/CPU_LgbmPcfg matched develop.
The one failure seen was a setup problem. My first attempt aborted in every shard with "rocBLAS … TensileLibrary.dat not
found for gfx942". I had downloaded the PR artifacts before CI uploaded blas_lib_gfx942. After re-downloading, the lib
sets matched develop's and the rerun was clean.
What didn't run (CI's build doesn't compile these):
- The hipDNN-wrapper tests: 10 Quick/CPU_WrapperRouting suites, Quick/CPU_HipdnnEraseOutsideLock_NONE and
Full/GPU_HipdnnReentry_FP32. They are only built with -DMIOPEN_ENABLE_HIPDNN_WRAPPER=ON. The repo's flag-on workflow is
dispatch-only and runs no GPU tests either.
- Two feature-off stubs: Quick/CPU_CandidateSelectionDisabled_NONE and Quick/CPU_ConvNDKernelTuningDisabled_NONE. They are
only compiled when the AI feature is disabled.
- So far these are only syntax-checked and pass the naming check. Running them needs a wrapper-ON build of MIOpen plus
hipDNN, which takes hours. Say if you want me to do that.
Selection check. I also listed these two CI binaries with every ctest suite's filter. All 21 suites select the same tests
on develop and the PR, and both binaries contain 69,575 tests. Generic counts on this commit:
| Tier | Tests |
|---|---|
| quick | 13,830 |
| standard | 35,077 |
| comprehensive | 58,186 |
| full | 62,384 |
| ffm-quick | 499 |
Submission Checklist
gtest_formating_checks.py; selection shown to be identical)test/gtest/README.md,AGENTS.md,test_categories.yamlheader)make format&make check_formatto ensure the changes have been formatted (via pre-commit clang-format)