-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: timeout-minutes has a known issue with composite
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
Showing
10 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,5 @@ jobs: | |
- name: consider debugging | ||
if: failure() | ||
timeout-minutes: 60 | ||
uses: ./.github/workflows/tmate_debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |