Skip to content

Commit

Permalink
Add name for cluster dump artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec committed Mar 8, 2024
1 parent b014446 commit 89eb7b4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 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 Down
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
2 changes: 2 additions & 0 deletions .github/workflows/branch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ jobs:
- name: Dump cluster state
if: ${{ failure() }}
uses: ./.github/actions/dump-cluster
with:
name: cli-migration-e2e

- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
Expand Down
1 change: 1 addition & 0 deletions test/cloud-slack-dev-e2e/cloud_slack_dev_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ func TestCloudSlackE2E(t *testing.T) {
if !cfg.Slack.DisconnectWorkspaceAfterTests {
return
}
t.Log("Disconnecting Slack workspace...")
gqlCli.MustDeleteSlackWorkspace(t, cfg.BotkubeCloud.TeamOrganizationID, slackWorkspace.ID)
})

Expand Down

0 comments on commit 89eb7b4

Please sign in to comment.