[rocprof-compute] Fix silent failures in Continuous-Integration CI workflow (#2797)

* fix silent failures in rocprof-compute continuous-integratin CI workflow

* CDash uploads complete before the script fails
This commit is contained in:
jamessiddeley-amd
2026-01-26 12:16:17 -05:00
committed by GitHub
parent e22c9b457e
commit dbd26a88b4
2 changed files with 21 additions and 11 deletions
@@ -91,14 +91,14 @@ jobs:
packages: read
container:
image: ghcr.io/rocm/rocprofiler-ubuntu:${{ matrix.system.os-release }}-systems-ci-${{ matrix.system.arch }}
options:
--privileged
options:
--privileged
--ipc host
--group-add video
--device /dev/kfd
--device /dev/dri
--cap-add CAP_SYS_ADMIN
steps:
- uses: actions/checkout@v5
with:
@@ -162,9 +162,10 @@ jobs:
sleep 10
done
echo "✅ pip requirements installed!"
- name: Configure, Build, and Test
id: test
continue-on-error: true
timeout-minutes: ${{ steps.setup_env.outputs.mode == 'Nightly' && 120 || 90 }}
working-directory: projects/rocprofiler-compute
run: |
@@ -188,9 +189,9 @@ jobs:
-DPYTEST_NUMPROCS=8 \
-- \
-E "${{ steps.setup_env.outputs.excluded_tests }}"
- name: Output Logs
if: failure()
if: steps.test.outcome == 'failure'
working-directory: projects/rocprofiler-compute
run: |
echo "❌ Run Failed: Outputting available log files..."
@@ -201,3 +202,12 @@ jobs:
fi
done
- name: Check Test Results
if: always()
shell: bash
run: |
if [[ "${{ steps.test.outcome }}" == "failure" ]]; then
echo "::error::Tests failed - see CDash for details: https://my.cdash.org/index.php?project=rocprofiler-compute"
exit 1
fi
echo "✅ All tests passed!"
+5 -5
View File
@@ -143,12 +143,12 @@ def generate_dashboard_script(args):
ctest_submit(PARTS Coverage RETURN_VALUE _submit_ret)
endif()
# Report test failures but don't fail the build, post results to CDash
if(NOT ${{_test_ret}} EQUAL 0)
message(WARNING "Some tests failed (see CDash for details)")
endif()
ctest_submit(PARTS Done RETURN_VALUE _submit_ret)
# After all submissions complete, fail if tests failed
if(NOT ${{_test_ret}} EQUAL 0)
message(FATAL_ERROR "Some tests failed (see CDash for details)")
endif()
"""
return _script