🐛 fix(ci): ogni workflow condiviso ha un timeout, sul job e sui passi di rete
- timeout-minutes sul job di tutti e 16 i workflow riusabili: 10 per branch-cleanup, 15-20 per release e manutenzione, 30 per i quality gates e le pubblicazioni, 45 per le immagini Docker, 60 per la build Android - timeout-minutes su 95 passi che dipendono dalla rete (checkout, setup-*, cache, install, audit, login, push, upload): con il solo timeout sul job il log non dice quale passo si è impiantato, con questi sì - valori letterali e non input: su un job che chiama un workflow riusabile timeout-minutes non è una chiave ammessa, quindi il limite può stare solo qui, e i valori scelti sono già ampi rispetto alla durata reale dei job Fixes #23 @1h30m
This commit is contained in:
1 parent
ddf60dcd2b
commit
3d28471b2c
16 files changed
+143
No files matched your search
@@ -34,14 +34,19 @@ on:
|
||||
jobs:
|
||||
python-docker-release:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
# Il chiamante non puo' dichiararlo: su un job che usa un workflow
|
||||
# riusabile timeout-minutes non e' una chiave ammessa (devops/shared-actions#23).
|
||||
timeout-minutes: 45
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ inputs.working-directory }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Python
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ inputs.python-version || '3.11' }}
|
||||
@@ -86,6 +91,7 @@ jobs:
|
||||
echo "Registry PyPI di Gitea aggiunto come indice extra (credenziali da netrc)."
|
||||
|
||||
- name: Cache pip
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
@@ -95,6 +101,7 @@ jobs:
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -n "${{ inputs.install-extras }}" ]; then
|
||||
@@ -117,9 +124,11 @@ jobs:
|
||||
run: mypy .
|
||||
|
||||
- name: Test (pytest)
|
||||
timeout-minutes: 20
|
||||
run: pytest --tb=short -q
|
||||
|
||||
- name: Login to container registry
|
||||
timeout-minutes: 5
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
@@ -155,6 +164,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
timeout-minutes: 30
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
|
||||
Reference in new issue
Block a user