Skip to content

Commit 7cc125c

Browse files
committed
test failure messages in build and test steps
1 parent 25c2dae commit 7cc125c

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/therock-ci-linux.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,16 @@ jobs:
142142
--build-dir TheRock/build \
143143
--upload
144144
145+
- name: Notify Microsoft Teams
146+
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') }}
147+
if: failure()
148+
run: |
149+
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
150+
-d '{
151+
"title": "MIOpen GitHub CI Notification",
152+
"text": "X Linux Build failure on branch: '${GITHUB_REF}'"
153+
}'
154+
145155
therock-test-linux:
146156
name: Test (${{ inputs.amdgpu_families }})
147157
needs: [therock-build-linux]

.github/workflows/therock-ci-windows.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ jobs:
164164
--build-dir ${{ env.BUILD_DIR }} \
165165
--upload
166166
167+
- name: Notify Microsoft Teams
168+
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') }}
169+
if: failure()
170+
run: |
171+
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
172+
-d '{
173+
"title": "MIOpen GitHub CI Notification",
174+
"text": "X Windows Build failure on branch: '${GITHUB_REF}'"
175+
}'
176+
167177
therock-test-windows:
168178
name: Test (${{ inputs.amdgpu_families }})
169179
needs: [therock-build-windows]

.github/workflows/therock-test-component.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ jobs:
9090
run: |
9191
${{ fromJSON(inputs.component).test_script }}
9292
93+
- name: Notify Microsoft Teams
94+
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') }}
95+
if: failure()
96+
run: |
97+
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
98+
-d '{
99+
"title": "MIOpen GitHub CI Notification",
100+
"text": "X Test failure on branch: '${GITHUB_REF}'"
101+
}'
102+
93103
# GitHub's 'Complete job' step is unaware of launched executables
94104
# and will fail to clean up orphan processes.
95105
- name: Post-job cleanup processes on Windows

0 commit comments

Comments
 (0)