Skip to content

Commit

Permalink
add tmate config in helm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 14, 2024
1 parent 069fe65 commit a845cb6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci-helm-installation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
description: 'Run the build with tmate debugging enabled'
required: false
default: false
debug_delay_duration_minutes:
type: number
description: 'Duration to delay job completion in minutes'
required: false
default: 5

jobs:
smoke-test-with-helm:
Expand All @@ -31,6 +36,18 @@ jobs:
version: v0.21.0
wait: 90s
cluster_name: helm-test-cluster

- name: "Debug: SSH to runner"
uses: scality/actions/action-ssh-to-runner@v1
with:
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
detached: true
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
timeout-minutes: 10
continue-on-error: true

- name: Build COSI Driver Docker Image
run: |
Expand All @@ -56,6 +73,13 @@ jobs:
chmod +x .github/scripts/verify_helm_install.sh
.github/scripts/verify_helm_install.sh
- name: "Delay completion"
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: scality/actions/[email protected]
with:
completion_delay_m: ${{ inputs.debug_delay_duration_minutes }}
continue-on-error: true

- name: Cleanup Helm Release and Namespace
run: |
helm uninstall scality-cosi-driver -n scality-object-storage
Expand Down

0 comments on commit a845cb6

Please sign in to comment.