Skip to content

Commit 9fe430d

Browse files
authored
[test] Improve e2e test slack message (#18407)
1 parent 3b6621c commit 9fe430d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/actions/integration-tests/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ runs:
116116
if: ${{ (success() || failure()) && inputs.notify_slack_webhook != '' }}
117117
env:
118118
SLACK_WEBHOOK: ${{ inputs.notify_slack_webhook }}
119+
SLACK_ICON_EMOJI: ":test_tube:"
120+
SLACK_USERNAME: "Integration Tests: ${{ inputs.test_suite }}"
119121
SLACK_COLOR: ${{ steps.integration-test.outcome }}
120122
SLACK_MESSAGE: "${{ steps.test_summary.outputs.passed }} tests passed, ${{ steps.test_summary.outputs.failed }} tests failed, ${{ steps.test_summary.outputs.skipped }} tests skipped (took ${{ steps.integration-test.outputs.duration }})"
121123
SLACK_FOOTER: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow logs>"

.github/workflows/workspace-integration-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ jobs:
9898
if: failure()
9999
env:
100100
SLACK_WEBHOOK: ${{ steps.secrets.outputs.WORKSPACE_SLACK_WEBHOOK }}
101+
SLACK_ICON_EMOJI: ":test_tube:"
102+
SLACK_USERNAME: "Integration Tests: workspace"
101103
SLACK_COLOR: ${{ job.status }}
102-
SLACK_MESSAGE: "Workspace Integration Tests failed"
104+
SLACK_MESSAGE: "Workspace Integration Tests failed during configuration, is main build green?"
103105
SLACK_FOOTER: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|Workflow logs>"
104106

105107
infrastructure:

0 commit comments

Comments
 (0)