Skip to content

Commit

Permalink
ci: set tmate for 120min in case of ci failure
Browse files Browse the repository at this point in the history
this commit enable tmate session for every ci failure
with 120min timeout.

Signed-off-by: subhamkrai <[email protected]>
  • Loading branch information
subhamkrai committed Jun 23, 2021
1 parent 76e82e4 commit fb7f4ce
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

linux-build-all:
runs-on: ubuntu-18.04
Expand All @@ -75,3 +76,4 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
30 changes: 20 additions & 10 deletions .github/workflows/canary-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-canary')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

pvc:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -166,8 +167,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-canary-pvc')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

pvc-db:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -230,8 +232,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-canary-pvc-db')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

pvc-db-wal:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -298,8 +301,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-canary-pvc-db-wal')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

encryption-pvc:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -365,8 +369,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-encryption-pvc')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

encryption-pvc-db:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -432,8 +437,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-encryption-pvc-db')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

encryption-pvc-db-wal:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -500,8 +506,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-encryption-pvc-db-wal')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120


encryption-pvc-kms-vault-token-auth:
Expand Down Expand Up @@ -587,8 +594,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-encryption-pvc-kms-vault-token-auth')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

lvm-pvc:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -649,8 +657,9 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-lvm-pvc')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

multi-cluster-mirroring:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -768,5 +777,6 @@ jobs:
path: test

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-multi-cluster-mirroring')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-cassandra-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-cassandra-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-flex-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-flex-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-helm-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-helm-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-mgr-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-mgr-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-multi-cluster-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-multi-cluster-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-nfs-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-nfs-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-smoke-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-smoke-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
3 changes: 2 additions & 1 deletion .github/workflows/integration-test-upgrade-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
path: /home/runner/work/rook/rook/tests/integration/_output/tests/

- name: setup tmate session for debugging
if: failure() && contains(github.event.pull_request.labels.*.name, 'debug-upgrade-suite')
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120
7 changes: 7 additions & 0 deletions .github/workflows/integration-tests-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestCephHelmSuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -112,6 +113,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestCephMultiClusterDeploySuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -162,6 +164,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestCephSmokeSuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -211,6 +214,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestCephUpgradeSuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -260,6 +264,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestCassandraSuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -310,6 +315,7 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

TestNFSSuite:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/tags/release-*'
Expand Down Expand Up @@ -363,3 +369,4 @@ jobs:
- name: setup tmate session for debugging
if: failure()
uses: mxschmitt/action-tmate@v3
timeout-minutes: 120

0 comments on commit fb7f4ce

Please sign in to comment.