Skip to content

Test Suite - Fixes#577

Merged
kiritigowda merged 11 commits intoROCm:developfrom
r-abishek:ar/test_suite_mods_12
Jul 25, 2025
Merged

Test Suite - Fixes#577
kiritigowda merged 11 commits intoROCm:developfrom
r-abishek:ar/test_suite_mods_12

Conversation

@r-abishek
Copy link
Copy Markdown
Member

Minor PR to fix grouping in voxel unit tests and add appropriate return error code for variants not implemented

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors test grouping logic and standardizes error codes for unimplemented variants in the voxel test suite.

  • Introduces voxelAugmentationGroupMap and generalizes func_group_finder/process_layout/directory_name_generator to accept a group map
  • Updates all HOST/HIP runVoxelTests.py and runImageTests.py to use the new grouping interface
  • Replaces return -1 with return RPP_ERROR_NOT_IMPLEMENTED in C++ test binaries for unsupported cases

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
utilities/test_suite/common.py Added voxelAugmentationGroupMap and refactored grouping functions to take a groupMap parameter
utilities/test_suite/HOST/runVoxelTests.py Removed local func_group_finder and updated calls to process_layout with voxelAugmentationGroupMap
utilities/test_suite/HOST/runImageTests.py Updated process_layout calls to pass ImageAugmentationGroupMap
utilities/test_suite/HOST/Tensor_voxel_host.cpp Changed return -1 to RPP_ERROR_NOT_IMPLEMENTED for unimplemented test cases
utilities/test_suite/HIP/runVoxelTests.py Removed duplicate func_group_finder and passed voxelAugmentationGroupMap to process_layout
utilities/test_suite/HIP/runImageTests.py Updated most process_layout calls to pass ImageAugmentationGroupMap (one instance still uses the wrong variable)
utilities/test_suite/HIP/Tensor_voxel_hip.cpp Changed return -1 to RPP_ERROR_NOT_IMPLEMENTED for unsupported variants
Comments suppressed due to low confidence (2)

utilities/test_suite/common.py:140

  • The new voxelAugmentationGroupMap and its usage in func_group_finder introduce grouping logic that isn’t directly covered by existing tests. Add unit tests for func_group_finder with voxelAugmentationGroupMap, covering each group and edge cases.
voxelAugmentationGroupMap = {

utilities/test_suite/common.py:246

  • Consider using os.path.join to build the destination path instead of manual string concatenation (e.g., path + "/rpp_...") for better cross-platform compatibility.
def directory_name_generator(qaMode, affinity, layoutType, case, path, groupMap, func_group_finder):

Copy link
Copy Markdown
Contributor

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

please address all the review comments

@kiritigowda kiritigowda self-assigned this Jul 21, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #577      +/-   ##
===========================================
- Coverage    87.97%   87.95%   -0.02%     
===========================================
  Files          190      190              
  Lines        80802    80802              
===========================================
- Hits         71080    71066      -14     
- Misses        9722     9736      +14     

see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kiritigowda kiritigowda merged commit fb925a1 into ROCm:develop Jul 25, 2025
21 of 22 checks passed
ManasaDattaT pushed a commit to ManasaDattaT/rpp that referenced this pull request Dec 19, 2025
* Fix function grouping and error returns

* Adress review comments

---------

Co-authored-by: HazarathKumarM <hazarathkumar@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
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.

5 participants