Skip to content

Commit 25cd4ea

Browse files
authored
Add timeout to github actions (#1716)
* Add timeout to github actions Signed-off-by: elronbandel <[email protected]> * Add UrllibHTTPError to retry exceptions in exponential backoff decorator Signed-off-by: elronbandel <[email protected]> --------- Signed-off-by: elronbandel <[email protected]>
1 parent 5eb89f6 commit 25cd4ea

File tree

11 files changed

+16
-1
lines changed

11 files changed

+16
-1
lines changed

.github/workflows/catalog_consistency.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
consistency:
1515

1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
env:
1819
OS: ubuntu-latest
1920
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/catalog_preparation.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
preparation:
1115

1216
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1318
env:
1419
OS: ubuntu-latest
1520
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
docs:
1515

1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
env:
1819
OS: ubuntu-latest
1920
PYTHONPATH: ./docs

.github/workflows/examples_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
examples:
1818

1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30
2021
env:
2122
OS: ubuntu-latest
2223
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/inference_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
inference:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30
2021
env:
2122
OS: ubuntu-latest
2223
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/library_eager_execution_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
eager:
1515

1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
env:
1819
OS: ubuntu-latest
1920
UNITXT_USE_EAGER_EXECUTION: True

.github/workflows/library_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
unittests:
1515

1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
env:
1819
OS: ubuntu-latest
1920
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/performance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
performance:
1313

1414
runs-on: ubuntu-latest
15+
timeout-minutes: 30
1516
env:
1617
OS: ubuntu-latest
1718
UNITXT_DEFAULT_VERBOSITY: error

.github/workflows/quality.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313
jobs:
1414
quality:
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 30
1617
steps:
1718
- uses: actions/checkout@v4
1819
- uses: actions/setup-python@v5

.github/workflows/test_helm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
helm:
1515

1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
env:
1819
OS: ubuntu-latest
1920

0 commit comments

Comments
 (0)