Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve resilience of E2E and integration tests #1406

Merged
merged 8 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/actions/cloud-slack-e2e/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ runs:
- name: Dump cluster state
if: ${{ failure() }}
uses: ./.github/actions/dump-cluster
with:
name: cloud-slack-e2e

- name: Detect failed jobs
if: ${{ failure() }}
Expand All @@ -123,15 +125,15 @@ runs:

echo "footer=${FOOTER}" >> $GITHUB_OUTPUT

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
if: ${{ failure() }}
env:
SLACK_CHANNEL: 'botkube-cloud-ci-alerts'
SLACK_USERNAME: Botkube Cloud CI
SLACK_COLOR: 'red'
SLACK_TITLE: 'Message'
SLACK_MESSAGE: "Cloud Slack ${{ inputs.e2e_type }} E2E tests failed :scream:"
SLACK_ICON_EMOJI: ':this-is-fine-fire:'
SLACK_FOOTER: ${{ steps.footer.outputs.footer }}
SLACK_WEBHOOK: ${{ inputs.slack_alerts_webhook }}
# - name: Slack Notification
# uses: rtCamp/action-slack-notify@v2
# if: ${{ failure() }}
# env:
# SLACK_CHANNEL: 'botkube-cloud-ci-alerts'
# SLACK_USERNAME: Botkube Cloud CI
# SLACK_COLOR: 'red'
# SLACK_TITLE: 'Message'
# SLACK_MESSAGE: "Cloud Slack ${{ inputs.e2e_type }} E2E tests failed :scream:"
# SLACK_ICON_EMOJI: ':this-is-fine-fire:'
# SLACK_FOOTER: ${{ steps.footer.outputs.footer }}
# SLACK_WEBHOOK: ${{ inputs.slack_alerts_webhook }}
pkosiec marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 6 additions & 1 deletion .github/actions/dump-cluster/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Dump cluster state
description: "Creates an artifacts with cluster dump"

inputs:
name:
description: "Cluster name"
required: true

runs:
using: "composite"
steps:
Expand All @@ -17,6 +22,6 @@ runs:
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: cluster_dump_${{github.sha}}
name: cluster_dump_${{github.sha}}_${{ inputs.name }}
path: "output"
retention-days: 5 # Default 90 days
Loading
Loading