Merge pull request #12579 from subhamkrai/update-tmate

ci: add detached mode in tmate
This commit is contained in:
Blaine Gardner authored and GitHub committed 2023-07-25 14:46:47 -06:00
commit f2bf76893e
10 files changed
+154 -187

No files matched your search

+10 -13
View File
@@ -25,6 +25,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- uses: actions/setup-go@v4
with:
go-version: "1.20"
@@ -71,12 +76,6 @@ jobs:
- name: validate gen-rbac
run: tests/scripts/validate_modified_files.sh gen-rbac
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
linux-build-all:
runs-on: ubuntu-20.04
@@ -91,6 +90,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup golang ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
@@ -104,10 +108,3 @@ jobs:
- name: build.all rook with go ${{ matrix.go-version }}
run: |
tests/scripts/github-action-helper.sh build_rook_all
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
+103 -120
View File
@@ -34,6 +34,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -232,12 +237,6 @@ jobs:
with:
name: canary
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
raw-disk:
runs-on: ubuntu-20.04
@@ -248,6 +247,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -286,12 +290,6 @@ jobs:
with:
name: canary
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
two-osds-in-device:
runs-on: ubuntu-20.04
@@ -301,6 +299,10 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
@@ -334,12 +336,6 @@ jobs:
with:
name: canary
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
osd-with-metadata-device:
runs-on: ubuntu-20.04
@@ -350,6 +346,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -388,12 +389,6 @@ jobs:
with:
name: canary
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption:
runs-on: ubuntu-20.04
@@ -404,6 +399,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -436,11 +436,6 @@ jobs:
with:
name: canary
- name: setup tmate session for debugging when event is PR
if: failure() && github.event_name == 'pull_request'
uses: mxschmitt/action-tmate@v3
timeout-minutes: 60
lvm:
runs-on: ubuntu-20.04
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
@@ -450,6 +445,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -487,12 +487,6 @@ jobs:
with:
name: canary
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
pvc:
runs-on: ubuntu-20.04
@@ -503,6 +497,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -561,12 +560,6 @@ jobs:
with:
name: pvc
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
pvc-db:
runs-on: ubuntu-20.04
@@ -577,6 +570,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -611,12 +609,6 @@ jobs:
with:
name: pvc-db
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
pvc-db-wal:
runs-on: ubuntu-20.04
@@ -627,6 +619,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -664,12 +661,6 @@ jobs:
with:
name: pvc-db-wal
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc:
runs-on: ubuntu-20.04
@@ -680,6 +671,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -729,12 +725,6 @@ jobs:
with:
name: encryption-pvc
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc-db:
runs-on: ubuntu-20.04
@@ -745,6 +735,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -781,12 +776,6 @@ jobs:
with:
name: encryption-pvc-db
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc-db-wal:
runs-on: ubuntu-20.04
@@ -797,6 +786,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -843,12 +837,6 @@ jobs:
with:
name: encryption-pvc-db-wal
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc-kms-vault-token-auth:
runs-on: ubuntu-20.04
@@ -859,6 +847,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -926,12 +919,6 @@ jobs:
with:
name: encryption-pvc-kms-vault-token-auth
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc-kms-vault-k8s-auth:
runs-on: ubuntu-20.04
@@ -942,6 +929,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -989,12 +981,6 @@ jobs:
with:
name: encryption-pvc-kms-vault-k8s-auth
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
lvm-pvc:
runs-on: ubuntu-20.04
@@ -1005,6 +991,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -1044,12 +1035,6 @@ jobs:
with:
name: lvm-pvc
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
multi-cluster-mirroring:
runs-on: ubuntu-20.04
@@ -1060,6 +1045,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -1300,12 +1290,6 @@ jobs:
with:
name: multi-cluster-mirroring
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
rgw-multisite-testing:
@@ -1317,6 +1301,12 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: run RGW multisite test
uses: ./.github/workflows/rgw-multisite-test
with:
@@ -1330,12 +1320,6 @@ jobs:
name: rgw-multisite-testing
path: test
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
encryption-pvc-kms-ibm-kp:
@@ -1345,6 +1329,12 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: run encryption KMS IBM Key Protect
uses: ./.github/workflows/encryption-pvc-kms-ibm-kp
if: "env.IBM_KP_SERVICE_INSTANCE_ID != '' && env.IBM_KP_SERVICE_API_KEY != ''"
@@ -1363,12 +1353,6 @@ jobs:
name: encryption-pvc-kms-ibm-kp
path: test
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
multus-cluster-network:
@@ -1380,6 +1364,12 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup golang
uses: actions/setup-go@v4
with:
@@ -1443,12 +1433,6 @@ jobs:
with:
name: canary-multus
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
csi-hostnetwork-disabled:
@@ -1460,6 +1444,12 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/canary-test-config
with:
@@ -1496,10 +1486,3 @@ jobs:
uses: ./.github/workflows/collect-logs
with:
name: csi-hostnetwork-disabled
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -32,6 +32,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup latest cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -63,10 +68,3 @@ jobs:
with:
name: ceph-helm-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -31,6 +31,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -57,10 +62,3 @@ jobs:
with:
name: ceph-mgr-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -32,6 +32,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -59,10 +64,3 @@ jobs:
with:
name: ceph-multi-cluster-deploy-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -32,6 +32,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup latest cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -58,10 +63,3 @@ jobs:
with:
name: ceph-object-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -32,6 +32,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -58,10 +63,3 @@ jobs:
with:
name: ceph-smoke-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
@@ -32,6 +32,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -59,11 +64,6 @@ jobs:
name: ceph-upgrade-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: setup tmate session for debugging when event is PR
if: failure() && github.event_name == 'pull_request'
uses: mxschmitt/action-tmate@v3
timeout-minutes: 60
TestHelmUpgradeSuite:
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && !contains(github.event.pull_request.labels.*.name, 'skip-ci') }}
runs-on: ubuntu-20.04
@@ -77,6 +77,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- name: setup cluster resources
uses: ./.github/workflows/integration-test-config-latest-k8s
with:
@@ -106,10 +111,3 @@ jobs:
with:
name: ceph-upgrade-helm-suite-artifact-${{ matrix.kubernetes-versions }}
path: /home/runner/work/rook/rook/tests/integration/_output/tests/
- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
+5 -7
View File
@@ -25,6 +25,11 @@ jobs:
with:
fetch-depth: 0
- name: consider debugging
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
- uses: actions/setup-go@v4
with:
go-version: "1.20"
@@ -75,10 +80,3 @@ jobs:
GITHUB_REF: $ {{ env.GITHUB_REF }}
run: |
tests/scripts/build-release.sh
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
+1
View File
@@ -20,3 +20,4 @@ runs:
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: false
detached: true