Skip to content

Commit

Permalink
COSI-57: Use cosi-scality-runner for COSI E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 12, 2024
1 parent 7bf81c2 commit 08d1a00
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci-e2e-tests.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:
type: number
description: 'Duration to delay job completion in seconds'
required: false
default: 300

jobs:
e2e-tests-with-kind:
Expand All @@ -30,19 +35,28 @@ jobs:
run: |
kubectl cluster-info
kubectl get nodes
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- 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: Capture Kubernetes Logs in artifacts directory
run: |
chmod +x .github/scripts/capture_k8s_logs.sh
.github/scripts/capture_k8s_logs.sh
if: always()

- name: "Delay completion"
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
run: sleep ${{ inputs.debug_delay_duration }}

- name: Upload logs and data to Scality artifacts
uses: scality/action-artifacts@v4
with:
Expand Down

0 comments on commit 08d1a00

Please sign in to comment.