Skip to content

Test suite error detection enhancement#350

Merged
r-abishek merged 12 commits intor-abishek:ar/test_suite_mods_8from
Dineshbabu-Ravichandran:db/error_detection
Nov 26, 2024
Merged

Test suite error detection enhancement#350
r-abishek merged 12 commits intor-abishek:ar/test_suite_mods_8from
Dineshbabu-Ravichandran:db/error_detection

Conversation

@Dineshbabu-Ravichandran
Copy link
Copy Markdown

  • Made changes to detect the errors in image HIP and HOST test suites and print them at the end

Copy link
Copy Markdown
Collaborator

@HazarathKumarM HazarathKumarM left a comment

Choose a reason for hiding this comment

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

@Dineshbabu-Ravichandran please resolve the comments

stdout_data, stderr_data = result.communicate()
print(stdout_data.decode())
exit_code = result.returncode
if(exit_code != 0):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please use camel case

if (axisMaskCase):
result = result + "_" + str(nDim) + "d" + "_axisMask" + str(axisMask)
if (permOrderCase):
result =result + "_" + str(nDim) + "d" + "_permOrder" + str(permOrder)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

add space after =


def get_signal_name_from_return_code(return_code):
result = ""
if return_code < 0:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please use camel case for all variables

elif case == "26" and (("--input_path1" not in sys.argv and "--input_path2" not in sys.argv) or qaMode == 1):
srcPath1 = lensCorrectionInFilePath
srcPath2 = lensCorrectionInFilePath
else :
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

No space before colon. Same on L333

print(stdoutData.decode())
exitCode = result.returncode
if(exitCode != 0):
log_detected_errors("Returned non-zero exit status : "+ str(exitCode) + " " + stderrData.decode(), errorLog, imageAugmentationMap[int(case)][0], get_bit_depth(int(bitDepth)), get_image_layout_type(layout, outputFormatToggle, "HOST"), get_signal_name_from_return_code(exitCode))
Copy link
Copy Markdown
Owner

@r-abishek r-abishek Nov 20, 2024

Choose a reason for hiding this comment

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

L76-L80 is repeating almost 36 times in this PR with minor changes in arguments, can we consolidate to put it in one function in common.py, so all calls are single line calls?

Copy link
Copy Markdown
Owner

@r-abishek r-abishek left a comment

Choose a reason for hiding this comment

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

@Dineshbabu-Ravichandran Pls address comments

@r-abishek r-abishek added the enhancement New feature or request label Nov 20, 2024
@r-abishek r-abishek changed the base branch from develop to ar/test_suite_mods_8 November 26, 2024 17:06
Copy link
Copy Markdown
Owner

@r-abishek r-abishek left a comment

Choose a reason for hiding this comment

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

@Dineshbabu-Ravichandran @HazarathKumarM Hope all HIP/HOST tests are passing for this PR.

@r-abishek r-abishek merged commit ec1aa9b into r-abishek:ar/test_suite_mods_8 Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants