File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed
projects/rocprofiler-compute/tools Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ jobs:
9191 packages : read
9292 container :
9393 image : ghcr.io/rocm/rocprofiler-ubuntu:${{ matrix.system.os-release }}-systems-ci-${{ matrix.system.arch }}
94- options :
95- --privileged
94+ options :
95+ --privileged
9696 --ipc host
9797 --group-add video
9898 --device /dev/kfd
9999 --device /dev/dri
100100 --cap-add CAP_SYS_ADMIN
101-
101+
102102 steps :
103103 - uses : actions/checkout@v5
104104 with :
@@ -162,9 +162,10 @@ jobs:
162162 sleep 10
163163 done
164164 echo "✅ pip requirements installed!"
165-
165+
166166 - name : Configure, Build, and Test
167167 id : test
168+ continue-on-error : true
168169 timeout-minutes : ${{ steps.setup_env.outputs.mode == 'Nightly' && 120 || 90 }}
169170 working-directory : projects/rocprofiler-compute
170171 run : |
@@ -188,9 +189,9 @@ jobs:
188189 -DPYTEST_NUMPROCS=8 \
189190 -- \
190191 -E "${{ steps.setup_env.outputs.excluded_tests }}"
191-
192+
192193 - name : Output Logs
193- if : failure()
194+ if : steps.test.outcome == ' failure'
194195 working-directory : projects/rocprofiler-compute
195196 run : |
196197 echo "❌ Run Failed: Outputting available log files..."
@@ -201,3 +202,12 @@ jobs:
201202 fi
202203 done
203204
205+ - name : Check Test Results
206+ if : always()
207+ shell : bash
208+ run : |
209+ if [[ "${{ steps.test.outcome }}" == "failure" ]]; then
210+ echo "::error::Tests failed - see CDash for details: https://my.cdash.org/index.php?project=rocprofiler-compute"
211+ exit 1
212+ fi
213+ echo "✅ All tests passed!"
Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ def generate_dashboard_script(args):
143143 ctest_submit(PARTS Coverage RETURN_VALUE _submit_ret)
144144 endif()
145145
146- # Report test failures but don't fail the build, post results to CDash
146+ ctest_submit(PARTS Done RETURN_VALUE _submit_ret)
147+
148+ # After all submissions complete, fail if tests failed
147149 if(NOT ${{_test_ret}} EQUAL 0)
148- message(WARNING "Some tests failed (see CDash for details)")
150+ message(FATAL_ERROR "Some tests failed (see CDash for details)")
149151 endif()
150-
151- ctest_submit(PARTS Done RETURN_VALUE _submit_ret)
152152 """
153153 return _script
154154
You can’t perform that action at this time.
0 commit comments