Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTEGRATION [PR#2031 > development/2.8] ZENKO-4749: Enabling ssh login to CI #2034

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/actions/debug-wait/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
name: "Debug wait"
description: "If debugging is enabled, wait"

inputs:
ENABLE_DEBUG:
description: enabling debug wait
required: true
default: "false"

runs:
using: composite
steps:
- name: Archive artifact logs and data
shell: bash
run: |-
if [ $ENABLE_DEBUG = 'true' ]; then
while true; do sleep 10; echo sleep; done
fi
- name: "Debug: SSH to runner"
uses: scality/actions/action-ssh-to-runner@1.6.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 }}
if: failure() && runner.debug == '1'
9 changes: 9 additions & 0 deletions .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ env:
EXPIRE_ONE_DAY_EARLIER: true
TRANSITION_ONE_DAY_EARLIER: true
TIME_PROGRESSION_FACTOR: 1
# 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:
check-dashboard-versions:
Expand Down Expand Up @@ -423,6 +428,7 @@ jobs:
working-directory: ./.github/scripts/end2end
- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
- name: Archive artifact logs and data
uses: ./.github/actions/archive-artifacts
env:
Expand Down Expand Up @@ -490,6 +496,7 @@ jobs:
# working-directory: ./.github/scripts/end2end
- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
- name: Archive artifact logs and data
uses: ./.github/actions/archive-artifacts
env:
Expand Down Expand Up @@ -546,6 +553,7 @@ jobs:
working-directory: ./.github/scripts/end2end
- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
- name: Archive artifact logs and data
uses: ./.github/actions/archive-artifacts
env:
Expand Down Expand Up @@ -609,6 +617,7 @@ jobs:
working-directory: ./.github/scripts/end2end
- name: Debug wait
uses: ./.github/actions/debug-wait
timeout-minutes: 60
- name: Archive artifact logs and data
uses: ./.github/actions/archive-artifacts
env:
Expand Down