Skip to content

Commit 8daa4e9

Browse files
committed
adding links and more info
1 parent 62d50fa commit 8daa4e9

File tree

3 files changed

+65
-7
lines changed

3 files changed

+65
-7
lines changed

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

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,39 @@ jobs:
3838
- name: "Checking out repository for rocm-libraries"
3939
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4040

41+
name: Notify Microsoft Teams
42+
if: ${{ contains(inputs.project_to_test, 'miopen') }} # && failure()
43+
run: |
44+
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
45+
-d '{
46+
"summary": "GitHub CI Failure",
47+
"themeColor": "FF0000",
48+
"title": "MIOpen GitHub CI Notification",
49+
"sections": [
50+
{
51+
"activityTitle": "Repository: '${GITHUB_REPOSITORY}'",
52+
"facts": [
53+
{ "name": "Workflow", "value": "'${GITHUB_WORKFLOW}'" },
54+
{ "name": "Job", "value": "'${JOB_NAME}'" },
55+
{ "name": "Branch", "value": "'${GITHUB_REF}'" },
56+
{ "name": "Run ID", "value": "'${GITHUB_RUN_ID}'"
57+
}
58+
],
59+
markdown": true
60+
"potentialAction": [
61+
{
62+
"@type": "OpenUri",
63+
"name": "View Failing Step",
64+
"targets": [
65+
{
66+
"os": "default",
67+
"uri": "https://github.com/'${GITHUB_REPOSITORY}'/actions/runs/'${GITHUB_RUN_ID}'"
68+
}
69+
]
70+
}
71+
],
72+
"text": "❌ Test failure on branch: '${GITHUB_REF}'"
73+
}'
4174
# We only want to build MIOpen HEAD against CK HEAD, not applicable for other projects
4275
- name: Checkout composable_kernel repository
4376
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') }}
@@ -142,13 +175,13 @@ jobs:
142175
--build-dir TheRock/build \
143176
--upload
144177
145-
- name: Notify Microsoft Teams
146-
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') && failure() }}
178+
- name: Notify Microsoft Teams 2
179+
if: ${{ contains(inputs.project_to_test, 'miopen') && failure() }}
147180
run: |
148181
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
149182
-d '{
150183
"title": "MIOpen GitHub CI Notification",
151-
"text": "X Linux Build failure on branch: '${GITHUB_REF}'"
184+
"text": " Linux Build failure on branch: '${GITHUB_REF}'"
152185
}'
153186
154187
therock-test-linux:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ jobs:
165165
--upload
166166
167167
- name: Notify Microsoft Teams
168-
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') && failure() }}
168+
if: ${{ contains(inputs.project_to_test, 'miopen') && failure() }}
169169
run: |
170170
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
171171
-d '{
172172
"title": "MIOpen GitHub CI Notification",
173-
"text": "X Windows Build failure on branch: '${GITHUB_REF}'"
173+
"text": " Windows Build failure on branch: '${GITHUB_REF}'"
174174
}'
175175
176176
therock-test-windows:

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,37 @@ jobs:
9191
${{ fromJSON(inputs.component).test_script }}
9292
9393
- name: Notify Microsoft Teams
94-
if: ${{ contains(inputs.project_to_test, 'miopen') || contains(inputs.project_to_test, 'miopen_plugin') && failure() }}
94+
if: ${{ contains(inputs.project_to_test, 'miopen') }} # && failure()
9595
run: |
9696
curl -X POST "${{ secrets.MIOPEN_CI_WEBHOOK_URL }}" -H 'Content-Type: application/json' \
9797
-d '{
98+
"summary": "GitHub CI Failure",
99+
"themeColor": "FF0000",
98100
"title": "MIOpen GitHub CI Notification",
99-
"text": "X Test failure on branch: '${GITHUB_REF}'"
101+
"sections": [
102+
{
103+
"activityTitle": "Repository: '${GITHUB_REPOSITORY}'",
104+
"facts": [
105+
{ "name": "Workflow", "value": "'${GITHUB_WORKFLOW}'" },
106+
{ "name": "Job", "value": "'${JOB_NAME}'" },
107+
{ "name": "Branch", "value": "'${GITHUB_REF}'" },
108+
{ "name": "Run ID", "value": "'${GITHUB_RUN_ID}'"
109+
}
110+
],
111+
markdown": true
112+
"potentialAction": [
113+
{
114+
"@type": "OpenUri",
115+
"name": "View Failing Step",
116+
"targets": [
117+
{
118+
"os": "default",
119+
"uri": "https://github.com/'${GITHUB_REPOSITORY}'/actions/runs/'${GITHUB_RUN_ID}'"
120+
}
121+
]
122+
}
123+
],
124+
"text": "❌ Test failure on branch: '${GITHUB_REF}'"
100125
}'
101126
102127
# GitHub's 'Complete job' step is unaware of launched executables

0 commit comments

Comments
 (0)