From fb7f4ce33b53577b7f9d10813b5eb54f32b3f8a5 Mon Sep 17 00:00:00 2001 From: subhamkrai Date: Wed, 23 Jun 2021 12:24:19 +0530 Subject: [PATCH] ci: set tmate for 120min in case of ci failure this commit enable tmate session for every ci failure with 120min timeout. Signed-off-by: subhamkrai --- .github/workflows/build.yml | 2 ++ .github/workflows/canary-integration-test.yml | 30 ++++++++++++------- .../integration-test-cassandra-suite.yaml | 3 +- .../integration-test-flex-suite.yaml | 3 +- .../integration-test-helm-suite.yaml | 3 +- .../workflows/integration-test-mgr-suite.yaml | 3 +- .../integration-test-multi-cluster-suite.yaml | 3 +- .../workflows/integration-test-nfs-suite.yaml | 3 +- .../integration-test-smoke-suite.yaml | 3 +- .../integration-test-upgrade-suite.yaml | 3 +- .../integration-tests-on-release.yaml | 7 +++++ 11 files changed, 45 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ee3912f7dad..6000547bcb86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -75,3 +76,4 @@ jobs: - name: setup tmate session for debugging if: failure() uses: mxschmitt/action-tmate@v3 + timeout-minutes: 120 diff --git a/.github/workflows/canary-integration-test.yml b/.github/workflows/canary-integration-test.yml index bf48cbbe628e..837d95cf386f 100644 --- a/.github/workflows/canary-integration-test.yml +++ b/.github/workflows/canary-integration-test.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/integration-test-cassandra-suite.yaml b/.github/workflows/integration-test-cassandra-suite.yaml index 72dcb3e5943d..2ad42d299de5 100644 --- a/.github/workflows/integration-test-cassandra-suite.yaml +++ b/.github/workflows/integration-test-cassandra-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-flex-suite.yaml b/.github/workflows/integration-test-flex-suite.yaml index a6bb51e8d9ba..d2fedcf2d64f 100644 --- a/.github/workflows/integration-test-flex-suite.yaml +++ b/.github/workflows/integration-test-flex-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-helm-suite.yaml b/.github/workflows/integration-test-helm-suite.yaml index 554ec8c876e7..60fd3c7d6a88 100644 --- a/.github/workflows/integration-test-helm-suite.yaml +++ b/.github/workflows/integration-test-helm-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-mgr-suite.yaml b/.github/workflows/integration-test-mgr-suite.yaml index 49f4dfa2dd97..24cdeeb88281 100644 --- a/.github/workflows/integration-test-mgr-suite.yaml +++ b/.github/workflows/integration-test-mgr-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-multi-cluster-suite.yaml b/.github/workflows/integration-test-multi-cluster-suite.yaml index 3fb39d847a8b..deb318c8d8f1 100644 --- a/.github/workflows/integration-test-multi-cluster-suite.yaml +++ b/.github/workflows/integration-test-multi-cluster-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-nfs-suite.yaml b/.github/workflows/integration-test-nfs-suite.yaml index a9502381dfe9..0b447c633604 100644 --- a/.github/workflows/integration-test-nfs-suite.yaml +++ b/.github/workflows/integration-test-nfs-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-smoke-suite.yaml b/.github/workflows/integration-test-smoke-suite.yaml index 5bac5d4fc89e..2ff3266e335e 100644 --- a/.github/workflows/integration-test-smoke-suite.yaml +++ b/.github/workflows/integration-test-smoke-suite.yaml @@ -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 diff --git a/.github/workflows/integration-test-upgrade-suite.yaml b/.github/workflows/integration-test-upgrade-suite.yaml index bde0dbaf449f..5dfe5c4c92fe 100644 --- a/.github/workflows/integration-test-upgrade-suite.yaml +++ b/.github/workflows/integration-test-upgrade-suite.yaml @@ -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 diff --git a/.github/workflows/integration-tests-on-release.yaml b/.github/workflows/integration-tests-on-release.yaml index d7d44ab0374a..2e4f1426a668 100644 --- a/.github/workflows/integration-tests-on-release.yaml +++ b/.github/workflows/integration-tests-on-release.yaml @@ -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-*' @@ -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-*' @@ -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-*' @@ -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-*' @@ -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-*' @@ -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-*' @@ -363,3 +369,4 @@ jobs: - name: setup tmate session for debugging if: failure() uses: mxschmitt/action-tmate@v3 + timeout-minutes: 120