Skip to content

feat(hip-tests): add test filter standardization - #12266

Merged
amilanov-amd merged 1 commit into
developfrom
users/amilanov/add-test-filter-standardization
Oct 28, 2026
Merged

amilanov-amd merged 1 commit into
developfrom
users/amilanov/add-test-filter-standardization

Conversation

@amilanov-amd

@amilanov-amd amilanov-amd commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Add test filter standardization to hip-tests

Technical Details

configs/test_categories.yaml defines four categories as sets of levels:

  • quick {0}
  • standard {0, 1}
  • comprehensive {0, 1, 2}
  • full {0, 1, 2 , 3, 4}

parse_config.py emits each as a Catch2 tag

Because ctest -L labels never reaches the binary, categories are resolves via a map emitted into hip_test_parameters.hh — so HIP_TEST_LEVEL=quick selects and parameterizes, reusing the existing priority/filter/listener logic unchanged.

Exclusions reuse the existing yaml config disabled list, which emits exclusion tags in the form exclude_<>. Supported exclusions are:

  • {platform}_{os_name} amd_linux, nvidia_windows, ...
  • {arch} any platform and OS
  • {os_name}{arch} linux, windows_
  • asan ASAN builds only

create_test_definition also now accepts {os_name}_{arch} in the disabled list

Issue Tracking

JIRA ID: AIRUNTIME-2908

Test Plan

Ensure build passes. All tests pass

Test Result

Local build passed, local tests pass

Submission Checklist

@amilanov-amd
amilanov-amd requested review from a team as code owners September 25, 2026 13:22
Copilot AI lite review requested due to automatic review settings September 25, 2026 13:22
@therock-pr-bot

therock-pr-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Description

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Only a minor documentation schedule alignment nit remains; no blocking issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds standardized quick through full test categories to hip-tests, with YAML-driven Catch2 tags, level resolution, exclusions, tests, and documentation.

Changes:

  • Generates category tags and C++ level mappings.
  • Supports category names in HIP_TEST_LEVEL and Catch2 filters.
  • Adds exclusion handling, tests, documentation, and build integration.
File Reviewed change
projects/​hip-tests/​catch/​README.md Documents categories and exclusions.
projects/​hip-tests/​catch/​include/​hip_test_level.hh Documents category-aware level selection.
projects/​hip-tests/​catch/​hipTestMain/​tests/​hip_test_level_test.cc Adds category resolution tests.
projects/​hip-tests/​catch/​hipTestMain/​tests/​CMakeLists.txt Adds generated-header dependencies and include paths.
projects/​hip-tests/​catch/​hipTestMain/​hip_test_level.cc Resolves category names into test levels.
projects/​hip-tests/​catch/​config/​parse_config.py Generates category tags and mappings.
projects/​hip-tests/​catch/​config/​configs/​test_categories.yaml Defines categories and execution metadata.
projects/​hip-tests/​catch/​config/​CMakeLists.txt Integrates category configuration generation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation, build integration, documentation, and tests consistently support the proposed category model.

Review effort: Balanced
Findings: None

@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from feaea65 to 62be4ed Compare September 28, 2026 15:26

@mangupta mangupta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI-assisted pre-review (for @mangupta)

@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from 62be4ed to db743ea Compare September 30, 2026 14:06
@mangupta

mangupta commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (db743eacac44) — no new findings at or above the posting threshold.

@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from db743ea to 5ac00be Compare October 6, 2026 13:24
@mangupta

mangupta commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (5ac00be5176f) — no new findings at or above the posting threshold.

@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from 5ac00be to 4629a19 Compare October 7, 2026 12:14
@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from 4629a19 to dd667b7 Compare October 8, 2026 11:42
Base automatically changed from users/amilanov/add-level-default-all-remove-cmd-options to develop October 8, 2026 16:49
@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from dd667b7 to a86bc61 Compare October 8, 2026 16:49
@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from a86bc61 to b63bd18 Compare October 9, 2026 12:58
@amilanov-amd amilanov-amd changed the title [hip-tests] Add test filter standardization feat(hip-tests): add test filter standardization Oct 9, 2026
@amilanov-amd
amilanov-amd force-pushed the users/amilanov/add-test-filter-standardization branch from b63bd18 to 190ee17 Compare October 20, 2026 14:51
@mangupta

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (190ee174c222) — no new findings at or above the posting threshold.

@amilanov-amd
amilanov-amd merged commit 727b8b5 into develop Oct 28, 2026
317 of 328 checks passed
@amilanov-amd
amilanov-amd deleted the users/amilanov/add-test-filter-standardization branch October 28, 2026 14:06
ywang103-amd pushed a commit that referenced this pull request Oct 28, 2026
## Motivation

Add test filter standardization to hip-tests

## Technical Details

configs/test_categories.yaml defines four categories as sets of levels:
- quick {0}
- standard {0, 1}
- comprehensive {0, 1, 2}
- full {0, 1, 2 , 3, 4}

parse_config.py emits each as a Catch2 tag

Because ctest -L labels never reaches the binary, categories are
resolves via a map emitted into hip_test_parameters.hh — so
HIP_TEST_LEVEL=quick selects and parameterizes, reusing the existing
priority/filter/listener logic unchanged.

Exclusions reuse the existing yaml config disabled list, which emits
exclusion tags in the form exclude_<>. Supported exclusions are:
- {platform}_{os_name}    amd_linux, nvidia_windows, ...
- {arch}                             any platform and OS
- {os_name}_{arch}           linux_<arch>, windows_<arch>
- asan                               ASAN builds only

create_test_definition also now accepts {os_name}_{arch} in the disabled
list

## Issue Tracking

JIRA ID: AIRUNTIME-2908

## Test Plan

Ensure build passes. All tests pass

## Test Result

Local build passed, local tests pass

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants