Skip to content

Commit 8e549ee

Browse files
authored
CTS: Report error when CTS fails (shader-slang#4219)
The CTS nightly stops report error because of `continue-on-error` is set to true. Remove that field such that it will fail the job. Add slack notification about the CTS status, this will report the status of CTS nightly result to our slack dev channel.
1 parent a4cc5b0 commit 8e549ee

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/vk-gl-cts-nightly.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
build:
1313
runs-on: [Windows, self-hosted]
1414
timeout-minutes: 180
15-
continue-on-error: true
1615
steps:
1716
- uses: actions/checkout@v4
1817
with:
@@ -54,3 +53,14 @@ jobs:
5453
working-directory: ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64
5554
run: |
5655
.\deqp-vk.exe --deqp-archive-dir=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 --deqp-caselist-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-passing-tests.txt
56+
- name: result notification
57+
id: slack-notify
58+
if : always()
59+
uses: slackapi/slack-github-action@v1.26.0
60+
with:
61+
payload: |
62+
{
63+
"CTS-Nightly": "CTS nightly status: ${{ job.status }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
64+
}
65+
env:
66+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)