Skip to content
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

Test suite - Error code detection and display #483

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from

Conversation

r-abishek
Copy link
Member

Detect error codes in image HIP and HOST test suites and print them at the end for unsuccessful runs.

@kiritigowda kiritigowda requested a review from rrawther November 26, 2024 20:04
@kiritigowda kiritigowda self-assigned this Nov 26, 2024
@kiritigowda kiritigowda marked this pull request as draft December 23, 2024 20:26
@kiritigowda
Copy link
Collaborator

@r-abishek - can you fix the conflicts?

@r-abishek r-abishek marked this pull request as ready for review January 6, 2025 22:14
@rrawther rrawther requested a review from kiritigowda January 7, 2025 22:55
@kiritigowda
Copy link
Collaborator

@r-abishek - failing CI tests on Azure

@kiritigowda
Copy link
Collaborator

@r-abishek failure

------------------------------------------------------------------------------------------
./Tensor_host /home/user/_work/6/rocm/share/rpp/test/HOST/../TEST_IMAGES/three_images_mixed_src1 /home/user/_work/6/rocm/share/rpp/test/HOST/../TEST_IMAGES/three_images_mixed_src2 /home/user/_work/6/s/rpp-tests/QA_RESULTS_HOST_2025-01-08_19-51-32 0 0 49 3 0 
Traceback (most recent call last):
  File "/opt/rocm/share/rpp/test/HOST/runTests.py", line 292, in <module>
    run_unit_test(srcPath1, srcPath2, dstPathTemp, case, numRuns, testType, layout, qaMode, decoderType, batchSize, roiList)
  File "/opt/rocm/share/rpp/test/HOST/runTests.py", line 70, in run_unit_test
    log_detected(result, errorLog, imageAugmentationMap[int(case)][0], get_bit_depth(int(bitDepth)), get_image_layout_type(layout, outputFormatToggle, "HOST"))
  File "/opt/rocm/share/rpp/test/HOST/../common.py", line 462, in log_detected
    stdoutData, stderrData = result.communicate()
AttributeError: 'CompletedProcess' object has no attribute 'communicate'
88% tests passed, 1 tests failed out of 8

Total Test time (real) = 256.90 sec

The following tests FAILED:
	  1 - rpp_qa_tests_tensor_host_all (Failed)
Errors while running CTest

##[error]Bash exited with code '8'.
Finishing: rpp Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants