-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from scality/improvement/COSI-57-use-cosi-scali…
…ty-runner COSI-57: Use cosi-scality-runner for COSI E2E test
- Loading branch information
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
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: Setup COSI Controller, CRDs and Driver | ||
run: | | ||
|
@@ -92,6 +102,13 @@ jobs: | |
chmod +x .github/scripts/e2e_test_bucket_creation.sh | ||
.github/scripts/e2e_test_bucket_creation.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: Cleaup IAM and S3 Services | ||
run: docker compose --profile iam_s3 down | ||
working-directory: .github/s3_and_iam_deployment | ||
|