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 20, 2023
1 parent 7623c0e commit 25c0132
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
run: tests/scripts/validate_modified_files.sh gen-rbac

- name: consider debugging
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
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
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -257,6 +258,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -304,6 +306,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -357,6 +360,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -455,6 +459,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -528,6 +533,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -577,6 +583,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -629,6 +636,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -698,6 +706,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -749,6 +758,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -801,6 +811,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -881,6 +892,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -943,6 +955,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -997,6 +1010,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -1247,6 +1261,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -1275,6 +1290,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -1306,6 +1322,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -1387,6 +1404,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
Expand Down Expand Up @@ -1439,6 +1457,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
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,6 +63,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
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,6 +57,7 @@ jobs:

- name: consider debugging
if: failure() && github.event_name == 'pull_request'
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
1 change: 1 addition & 0 deletions .github/workflows/push-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
- name: consider debugging
if: failure()
timeout-minutes: 60
uses: ./.github/workflows/tmate_debug
with:
use-tmate: ${{ secrets.USE_TMATE }}
9 changes: 1 addition & 8 deletions .github/workflows/tmate_debug/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ description: "Setup tmate session if the test fails"
inputs:
use-tmate:
description: "boolean for enabling TMATE"
required: false
timeout-minutes:
description: "timeout tmate debug session"
required: false
default: '60'
# ...name, description and inputs as above
required: true
runs:
using: "composite"
steps:
Expand All @@ -20,9 +15,7 @@ runs:
if [ "$GITHUB_REPOSITORY_OWNER" = "rook" ] || [ -n "${{ inputs.use-tmate }}" ] || [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
echo USE_TMATE=1 >> $GITHUB_ENV
fi
echo "${{ inputs.timeout-minutes }}"
- name: set up tmate session for debugging
if: failure() && env.USE_TMATE
uses: mxschmitt/action-tmate@v3
timeout-minutes: "${{ inputs.timeout-minutes }}"

0 comments on commit 25c0132

Please sign in to comment.