Skip to content

Commit

Permalink
ci: timeout-minutes has a known issue with composite
Browse files Browse the repository at this point in the history
use timeout for the step in main workflow instead

actions/runner#1979
https://github.com/metabase/metabase/pull/24554/files

once support for timeout-minutes is added we can remove these steps

Signed-off-by: Deepika Upadhyay <[email protected]>
  • Loading branch information
Deepika Upadhyay committed Feb 21, 2023
1 parent aeaa53f commit 1929a8d
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
run: tests/scripts/validate_modified_files.sh gen-rbac

- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

linux-build-all:
Expand Down Expand Up @@ -97,4 +99,5 @@ jobs:
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
19 changes: 19 additions & 0 deletions .github/workflows/canary-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

raw-disk:
Expand Down Expand Up @@ -255,6 +256,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

two-osds-in-device:
Expand Down Expand Up @@ -300,6 +302,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

osd-with-metadata-device:
Expand Down Expand Up @@ -351,6 +354,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption:
Expand Down Expand Up @@ -447,6 +451,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

pvc:
Expand Down Expand Up @@ -518,6 +523,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

pvc-db:
Expand Down Expand Up @@ -565,6 +571,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

pvc-db-wal:
Expand Down Expand Up @@ -615,6 +622,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc:
Expand Down Expand Up @@ -682,6 +690,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc-db:
Expand Down Expand Up @@ -731,6 +740,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc-db-wal:
Expand Down Expand Up @@ -781,6 +791,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc-kms-vault-token-auth:
Expand Down Expand Up @@ -859,6 +870,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc-kms-vault-k8s-auth:
Expand Down Expand Up @@ -919,6 +931,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

lvm-pvc:
Expand Down Expand Up @@ -971,6 +984,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

multi-cluster-mirroring:
Expand Down Expand Up @@ -1219,6 +1233,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

rgw-multisite-testing:
Expand All @@ -1245,6 +1260,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

encryption-pvc-kms-ibm-kp:
Expand Down Expand Up @@ -1274,6 +1290,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

multus-cluster-network:
Expand Down Expand Up @@ -1353,6 +1370,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug

csi-hostnetwork-disabled:
Expand Down Expand Up @@ -1403,4 +1421,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/integration-test-helm-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/integration-test-mgr-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/integration-test-object-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/integration-test-smoke-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/integration-test-upgrade-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
1 change: 1 addition & 0 deletions .github/workflows/push-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ jobs:
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
12 changes: 9 additions & 3 deletions .github/workflows/tmate_debug/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: "Tmate debugging tests"
description: "Setup tmate session if the test fails"
<<<<<<< HEAD
# ...name, description and inputs as above
=======
inputs:
use-tmate:
description: "boolean for enabling TMATE"
required: true
>>>>>>> fef11fa6a (ci: timeout-minutes has a known issue with composite)
runs:
using: "composite"
steps:
- name: consider debugging
shell: bash --noprofile --norc -eo pipefail -x {0}
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" = "koor-tech" ] || [ -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
if: env.USE_TMATE
uses: mxschmitt/action-tmate@v3
timeout-minutes: 60

0 comments on commit 1929a8d

Please sign in to comment.