From 4dfa506fb254459588794e81b16d218c10f0f8f8 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Tue, 3 Dec 2024 16:57:05 +0100 Subject: [PATCH] try --- .github/actions/debug_wait/action.yaml | 15 +++++++++++++++ .github/workflows/tests.yaml | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/actions/debug_wait/action.yaml diff --git a/.github/actions/debug_wait/action.yaml b/.github/actions/debug_wait/action.yaml new file mode 100644 index 0000000000..12d1b3bb36 --- /dev/null +++ b/.github/actions/debug_wait/action.yaml @@ -0,0 +1,15 @@ +--- +name: "Debug wait" +description: "If debugging is enabled, wait" + +runs: + using: composite + steps: + - name: "Debug: SSH to runner" + uses: scality/actions/action-ssh-to-runner@1.8.0 + continue-on-error: true + with: + tmate-server-host: ${{ env.TMATE_SERVER_HOST }} + tmate-server-port: ${{ env.TMATE_SERVER_PORT }} + tmate-server-rsa-fingerprint: ${{ env.TMATE_SERVER_RSA_FINGERPRINT }} + tmate-server-ed25519-fingerprint: ${{ env.TMATE_SERVER_ED25519_FINGERPRINT }} \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1bbd57f1fc..2953dbd71e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -69,6 +69,11 @@ env: REMOTE_MANAGEMENT_DISABLE: "1" # https://github.com/git-lfs/git-lfs/issues/5749 GIT_CLONE_PROTECTION_ACTIVE: 'false' + # DEBUG WAIT + 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 }} jobs: linting-coverage: runs-on: ubuntu-22.04-2core @@ -212,6 +217,10 @@ jobs: yarn run multiple_backend_test | tee /tmp/artifacts/${{ github.job }}/tests.log env: S3_LOCATION_FILE: tests/locationConfig/locationConfigTests.json + - name: Debug wait + uses: ./.github/actions/debug-wait + timeout-minutes: 60 + if: always() - name: Upload logs to artifacts uses: scality/action-artifacts@v4 with: