Skip to content

[Issue] Linux gfx950-dcgpu rocblas: — rtest.py reports "FAILED xml test suite!" despite 0 gtest failures #9395

Description

@TriveniTadapaneni

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)

Metadata

Metadata

Assignees

Labels

bump-prissues related to the bump PRs in The Rock repositorycode-regressionissues observed in bump pr ci, introduced due to new code changesgfx950run CI on gfx950monitoringissues created/monitoring by monitoring teamplatform: Linuxissues / prs related to linux platformproject: rocblas

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions