-
Notifications
You must be signed in to change notification settings - Fork 45
Test Suite - Fixes #577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Test Suite - Fixes #577
Conversation
RPP Voxel Test suite fixes
There was a problem hiding this 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 generalizesfunc_group_finder
/process_layout
/directory_name_generator
to accept a group map - Updates all HOST/HIP
runVoxelTests.py
andrunImageTests.py
to use the new grouping interface - Replaces
return -1
withreturn 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 infunc_group_finder
introduce grouping logic that isn’t directly covered by existing tests. Add unit tests forfunc_group_finder
withvoxelAugmentationGroupMap
, 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):
@@ -350,7 +350,7 @@ def rpp_test_suite_parser_and_validator(): | |||
srcPath1 = inFilePath1 | |||
srcPath2 = inFilePath2 | |||
for layout in range(3): | |||
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", func_group_finder) | |||
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", imageAugmentationMap, func_group_finder) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call passes imageAugmentationMap
instead of the intended ImageAugmentationGroupMap
, which will cause grouping to break or a NameError. Update it to ImageAugmentationGroupMap
to match the other invocations.
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", imageAugmentationMap, func_group_finder) | |
dstPathTemp, logFileLayout = process_layout(layout, qaMode, case, dstPath, "hip", ImageAugmentationGroupMap, func_group_finder) |
Copilot uses AI. Check for mistakes.
There was a problem hiding this 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
Minor PR to fix grouping in voxel unit tests and add appropriate return error code for variants not implemented
10000