From 08d1a00be7f3c84a56d9bbef88b0b6c74fcdc999 Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Thu, 7 Nov 2024 11:10:54 +0100 Subject: [PATCH] COSI-57: Use cosi-scality-runner for COSI E2E test --- .github/workflows/ci-e2e-tests.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-e2e-tests.yml b/.github/workflows/ci-e2e-tests.yml index 860e1dec..1cf2716a 100644 --- a/.github/workflows/ci-e2e-tests.yml +++ b/.github/workflows/ci-e2e-tests.yml @@ -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: @@ -30,12 +35,17 @@ 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: | @@ -43,6 +53,10 @@ jobs: .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: