Context
Error
2: [ PASSED ] 98937 tests.
2: [ FAILED ] 0 tests.
2: command line: rocblas-test --gtest_output=xml --gtest_color=yes --gtest_filter=*quick*:*pre_checkin*-*known_bug*
2: FAILED xml test suite!
1/1 Test #2: rocblas-test_standard_suite ......***Failed 616.56 sec
##[error]Process completed with exit code 8.
Suspected Root Cause
Commit 8a7acc7b5a9b ("feat: [rocBLAS] expand supported ctest options #8984") adds USE_RTEST_DRIVER to apply_test_category_labels() in projects/rocblas/clients/gtest/CMakeLists.txt. This routes CTest for the standard suite through python3 rocblas_rtest.py -t ctest_standard instead of directly invoking the rocblas-test GTest binary.
rtest.py's run_cmd() scans every stdout line with re.search(r'error|fail', outstring, re.IGNORECASE). GTest always prints [ FAILED ] 0 tests. at the end of every run — even when zero tests fail — and this line matches the pattern. The text scan overrides the process exit code (0 = all pass) to 1 and prints FAILED xml test suite!.
AI Suggested Fix
In projects/rocblas/rtest.py, exclude GTest bracket-summary lines from the error scan:
# projects/rocblas/rtest.py — run_cmd(), inside the stdout readline loop
# BEFORE:
error = error or re.search(r'error|fail', outstring, re.IGNORECASE)
# AFTER: skip GTest summary lines like "[ FAILED ] 0 tests."
if not re.match(r'^\s*[[\s\w]+]\s*\d+\s+tests?', outstring, re.IGNORECASE):
error = error or re.search(r'error|fail', outstring, re.IGNORECASE)
Context
rocm-librariesfrom37b9981ba57to39d237aab48Test rocblas (shard 5/6) (gfx950-dcgpu)
Test rocblas (shard 3/6) (gfx950-dcgpu)
Test rocblas (shard 1/6) (gfx950-dcgpu) — job 87062203568
gfx950-dcgpuError
Suspected Root Cause
Commit
8a7acc7b5a9b("feat: [rocBLAS] expand supported ctest options #8984") addsUSE_RTEST_DRIVERtoapply_test_category_labels()inprojects/rocblas/clients/gtest/CMakeLists.txt. This routes CTest for thestandardsuite throughpython3 rocblas_rtest.py -t ctest_standardinstead of directly invoking therocblas-testGTest binary.rtest.py'srun_cmd()scans every stdout line withre.search(r'error|fail', outstring, re.IGNORECASE). GTest always prints[ FAILED ] 0 tests.at the end of every run — even when zero tests fail — and this line matches the pattern. The text scan overrides the process exit code (0 = all pass) to 1 and printsFAILED xml test suite!.AI Suggested Fix
In
projects/rocblas/rtest.py, exclude GTest bracket-summary lines from the error scan: