Merge pull request #12701 from subhamkrai/fix-all-canary-ci
ci: fix all the canary test (backport)
This commit is contained in:
12 files changed
+381
-362
No files matched your search
+11
-26
@@ -25,7 +25,12 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.19
|
||||
|
||||
@@ -71,18 +76,6 @@ jobs:
|
||||
- name: validate gen-rbac
|
||||
run: tests/scripts/validate_modified_files.sh gen-rbac
|
||||
|
||||
- name: consider debugging
|
||||
if: failure()
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
linux-build-all:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -97,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@v3
|
||||
with:
|
||||
@@ -110,16 +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()
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -31,6 +31,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -219,19 +231,6 @@ jobs:
|
||||
with:
|
||||
name: canary
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
raw-disk:
|
||||
runs-on: ubuntu-20.04
|
||||
if: "!contains(github.event.pull_request.labels.*.name, 'skip-ci')"
|
||||
@@ -241,6 +240,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -279,18 +290,6 @@ jobs:
|
||||
with:
|
||||
name: canary
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
two-osds-in-device:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -300,6 +299,17 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
@@ -333,18 +343,6 @@ jobs:
|
||||
with:
|
||||
name: canary
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
osd-with-metadata-device:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -355,6 +353,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -393,18 +403,6 @@ jobs:
|
||||
with:
|
||||
name: canary
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -415,6 +413,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -447,11 +457,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')"
|
||||
@@ -461,6 +466,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -498,18 +515,6 @@ jobs:
|
||||
with:
|
||||
name: canary
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
pvc:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -520,6 +525,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -578,18 +595,6 @@ jobs:
|
||||
with:
|
||||
name: pvc
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
pvc-db:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -600,6 +605,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -634,18 +651,6 @@ jobs:
|
||||
with:
|
||||
name: pvc-db
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
pvc-db-wal:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -656,6 +661,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -693,18 +710,6 @@ jobs:
|
||||
with:
|
||||
name: pvc-db-wal
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -715,6 +720,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -764,18 +781,6 @@ jobs:
|
||||
with:
|
||||
name: encryption-pvc
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc-db:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -786,6 +791,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -822,18 +839,6 @@ jobs:
|
||||
with:
|
||||
name: encryption-pvc-db
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc-db-wal:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -844,6 +849,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -890,18 +907,6 @@ jobs:
|
||||
with:
|
||||
name: encryption-pvc-db-wal
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc-kms-vault-token-auth:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -912,6 +917,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -979,18 +996,6 @@ jobs:
|
||||
with:
|
||||
name: encryption-pvc-kms-vault-token-auth
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc-kms-vault-k8s-auth:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1001,6 +1006,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -1048,18 +1065,6 @@ jobs:
|
||||
with:
|
||||
name: encryption-pvc-kms-vault-k8s-auth
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
lvm-pvc:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1070,6 +1075,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -1109,18 +1126,6 @@ jobs:
|
||||
with:
|
||||
name: lvm-pvc
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
multi-cluster-mirroring:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1131,6 +1136,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -1371,18 +1388,7 @@ jobs:
|
||||
with:
|
||||
name: multi-cluster-mirroring
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
rgw-multisite-testing:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1393,6 +1399,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: run RGW multisite test
|
||||
uses: ./.github/workflows/rgw-multisite-test
|
||||
with:
|
||||
@@ -1406,18 +1425,7 @@ jobs:
|
||||
name: rgw-multisite-testing
|
||||
path: test
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
encryption-pvc-kms-ibm-kp:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1426,6 +1434,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- 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 != ''"
|
||||
@@ -1444,18 +1465,7 @@ jobs:
|
||||
name: encryption-pvc-kms-ibm-kp
|
||||
path: test
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
multus-cluster-network:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1466,6 +1476,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup golang
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
@@ -1529,18 +1552,7 @@ jobs:
|
||||
with:
|
||||
name: canary-multus
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
|
||||
csi-hostnetwork-disabled:
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -1551,6 +1563,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/canary-test-config
|
||||
with:
|
||||
@@ -1587,16 +1612,3 @@ jobs:
|
||||
uses: ./.github/workflows/collect-logs
|
||||
with:
|
||||
name: csi-hostnetwork-disabled
|
||||
|
||||
- name: consider debugging
|
||||
if: failure() && github.event_name == 'pull_request'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup latest cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -60,16 +72,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -28,6 +28,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -54,16 +66,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -56,16 +68,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup latest cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -55,16 +67,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -55,16 +67,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -29,6 +29,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -56,11 +68,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
|
||||
@@ -74,6 +81,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
|
||||
- name: setup cluster resources
|
||||
uses: ./.github/workflows/integration-test-config-latest-k8s
|
||||
with:
|
||||
@@ -103,16 +122,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'
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -25,7 +25,12 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
- name: consider debugging
|
||||
uses: ./.github/workflows/tmate_debug
|
||||
with:
|
||||
use-tmate: ${{ secrets.USE_TMATE }}
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.19
|
||||
|
||||
@@ -75,16 +80,3 @@ jobs:
|
||||
GITHUB_REF: $ {{ env.GITHUB_REF }}
|
||||
run: |
|
||||
tests/scripts/build-release.sh
|
||||
|
||||
- name: consider debugging
|
||||
if: failure()
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ secrets.USE_TMATE }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: failure() && env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
timeout-minutes: 60
|
||||
@@ -0,0 +1,23 @@
|
||||
name: "Tmate debugging tests"
|
||||
description: "Setup tmate session if the test fails"
|
||||
inputs:
|
||||
use-tmate:
|
||||
description: "boolean for enabling TMATE"
|
||||
required: true
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: consider debugging
|
||||
shell: bash --noprofile --norc -eo pipefail -x {0}
|
||||
run: |
|
||||
# Enable tmate only in the Rook fork, where the USE_TMATE secret is set in the repo, or if the action is re-run
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ inputs.use-tmate }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
|
||||
echo USE_TMATE=1 >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: set up tmate session for debugging
|
||||
if: env.USE_TMATE
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
with:
|
||||
limit-access-to-actor: false
|
||||
detached: true
|
||||
@@ -222,6 +222,12 @@ function deploy_manifest_with_local_build() {
|
||||
kubectl create -f $1
|
||||
}
|
||||
|
||||
# Deploy toolbox with same ceph version as the cluster-test for ci
|
||||
function deploy_toolbox() {
|
||||
sed -i 's/image: quay\.io\/ceph\/ceph:.*/image: quay.io\/ceph\/ceph:v18/' toolbox.yaml
|
||||
kubectl create -f toolbox.yaml
|
||||
}
|
||||
|
||||
function replace_ceph_image() {
|
||||
local file="$1" # parameter 1: the file in which to replace the ceph image
|
||||
local ceph_image="${2:-}" # parameter 2: the new ceph image to use
|
||||
@@ -268,7 +274,7 @@ function deploy_cluster() {
|
||||
kubectl create -f filesystem-mirror.yaml
|
||||
kubectl create -f nfs-test.yaml
|
||||
kubectl create -f subvolumegroup.yaml
|
||||
deploy_manifest_with_local_build toolbox.yaml
|
||||
deploy_toolbox
|
||||
}
|
||||
|
||||
function deploy_csi_hostnetwork_disabled_cluster() {
|
||||
@@ -286,7 +292,7 @@ function deploy_csi_hostnetwork_disabled_cluster() {
|
||||
kubectl create -f nfs-test.yaml
|
||||
kubectl create -f cluster-test.yaml
|
||||
kubectl create -f filesystem-test.yaml
|
||||
deploy_manifest_with_local_build toolbox.yaml
|
||||
deploy_toolbox
|
||||
}
|
||||
|
||||
function wait_for_prepare_pod() {
|
||||
@@ -386,7 +392,7 @@ function deploy_first_rook_cluster() {
|
||||
yq w -i -d1 cluster-test.yaml spec.storage.useAllDevices false
|
||||
yq w -i -d1 cluster-test.yaml spec.storage.deviceFilter "${BLOCK}"1
|
||||
kubectl create -f cluster-test.yaml
|
||||
deploy_manifest_with_local_build toolbox.yaml
|
||||
deploy_toolbox
|
||||
}
|
||||
|
||||
function deploy_second_rook_cluster() {
|
||||
@@ -398,7 +404,7 @@ function deploy_second_rook_cluster() {
|
||||
yq w -i -d1 cluster-test.yaml spec.dataDirHostPath "/var/lib/rook-external"
|
||||
kubectl create -f cluster-test.yaml
|
||||
yq w -i toolbox.yaml metadata.namespace rook-ceph-secondary
|
||||
deploy_manifest_with_local_build toolbox.yaml
|
||||
deploy_toolbox
|
||||
}
|
||||
|
||||
function wait_for_rgw() {
|
||||
@@ -577,7 +583,7 @@ function deploy_multus_cluster() {
|
||||
cd deploy/examples
|
||||
sed -i 's/.*ROOK_CSI_ENABLE_NFS:.*/ ROOK_CSI_ENABLE_NFS: \"true\"/g' operator.yaml
|
||||
deploy_manifest_with_local_build operator.yaml
|
||||
deploy_manifest_with_local_build toolbox.yaml
|
||||
deploy_toolbox
|
||||
sed -i "s|#deviceFilter:|deviceFilter: ${BLOCK/\/dev\//}|g" cluster-multus-test.yaml
|
||||
kubectl create -f cluster-multus-test.yaml
|
||||
kubectl create -f filesystem-test.yaml
|
||||
|
||||
@@ -111,9 +111,9 @@ function test_csi {
|
||||
fi
|
||||
if [ -n "$IS_MULTUS" ]; then
|
||||
echo "verifying csi holder interfaces (multus ones must be present)"
|
||||
kubectl -n rook-ceph exec -t ds/csi-rbdplugin-holder-my-cluster -- grep net /proc/net/dev
|
||||
kubectl -n rook-ceph exec -t ds/csi-cephfsplugin-holder-my-cluster -- grep net /proc/net/dev
|
||||
kubectl -n rook-ceph exec -t ds/csi-nfsplugin-holder-my-cluster -- grep net /proc/net/dev
|
||||
kubectl -n rook-ceph exec -t ds/csi-rbdplugin-holder-my-cluster -- grep eth0 /proc/net/dev
|
||||
kubectl -n rook-ceph exec -t ds/csi-cephfsplugin-holder-my-cluster -- grep eth0 /proc/net/dev
|
||||
kubectl -n rook-ceph exec -t ds/csi-nfsplugin-holder-my-cluster -- grep eth0 /proc/net/dev
|
||||
fi
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user