Skip to content

Commit 6ae10d5

Browse files
authored
Add Discord notification when smoke alert test fails (and fix the path to the server) (#11)
2 parents 4298480 + f1ef374 commit 6ae10d5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/mcp-smoke-test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
id: smoke-test
4545
run: |
4646
echo "Running MCP smoke test..."
47-
uv run scripts/test_mcp_server.py zenml_server.py
47+
uv run scripts/test_mcp_server.py server/zenml_server.py
4848
continue-on-error: true
4949

5050
- name: Create issue on failure
@@ -122,8 +122,26 @@ jobs:
122122
});
123123
}
124124
125+
- name: Send Discord notification on failure
126+
if: steps.smoke-test.outcome == 'failure'
127+
uses: sarisia/actions-status-discord@v1
128+
with:
129+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
130+
title: "🚨 MCP Smoke Test Failed"
131+
description: |
132+
The automated MCP smoke test has failed for the ZenML MCP server.
133+
134+
**Workflow:** [Run #${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
135+
**Branch:** ${{ github.ref_name }}
136+
**Commit:** ${{ github.sha }}
137+
**Triggered by:** ${{ github.event_name }}
138+
139+
Please check the workflow logs for detailed error information.
140+
color: 0xff0000
141+
username: "GitHub Actions"
142+
125143
- name: Report success
126144
if: steps.smoke-test.outcome == 'success'
127145
run: |
128146
echo "✅ MCP smoke test passed successfully!"
129-
echo "All MCP server functionality is working as expected."
147+
echo "All MCP server functionality is working as expected."

0 commit comments

Comments
 (0)