CI: timeout-minutes on every job
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 52s
CI / Lint (eslint) (push) Successful in 56s
CI / Security (npm audit) (push) Successful in 18s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m12s
CI / Integration (api) (push) Successful in 2m31s
CI / Lint (eslint) (pull_request) Successful in 22s
CI / Test (jest) (pull_request) Successful in 26s
CI / Security (npm audit) (pull_request) Successful in 14s
CI / UI (playwright) (push) Successful in 2m29s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 2m41s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m53s
CI / UI screenshots (before/after) (pull_request) Successful in 11s
CI / UI (playwright) (pull_request) Successful in 1m56s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 52s
CI / Lint (eslint) (push) Successful in 56s
CI / Security (npm audit) (push) Successful in 18s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m12s
CI / Integration (api) (push) Successful in 2m31s
CI / Lint (eslint) (pull_request) Successful in 22s
CI / Test (jest) (pull_request) Successful in 26s
CI / Security (npm audit) (pull_request) Successful in 14s
CI / UI (playwright) (push) Successful in 2m29s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 2m41s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m53s
CI / UI screenshots (before/after) (pull_request) Successful in 11s
CI / UI (playwright) (pull_request) Successful in 1m56s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
A Test (jest) job sat in npm ci for over 20 minutes; with no timeout a hung step holds main's queue until the runner's own limit (hours). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e6dbb2869b
commit
db1f71aa4c
1 file changed
+10
@@ -27,6 +27,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Lint (eslint)
|
name: Lint (eslint)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20 # a hung step fails instead of blocking main
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -46,6 +47,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Test (jest)
|
name: Test (jest)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -57,6 +59,7 @@ jobs:
|
|||||||
audit:
|
audit:
|
||||||
name: Security (npm audit)
|
name: Security (npm audit)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -85,6 +88,7 @@ jobs:
|
|||||||
integration:
|
integration:
|
||||||
name: Integration (api)
|
name: Integration (api)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
container: node:20-bookworm # the server and workers on production's Node
|
container: node:20-bookworm # the server and workers on production's Node
|
||||||
env:
|
env:
|
||||||
DB_HOST: 127.0.0.1
|
DB_HOST: 127.0.0.1
|
||||||
@@ -109,6 +113,7 @@ jobs:
|
|||||||
scan:
|
scan:
|
||||||
name: Scan (secrets, workflows, shell)
|
name: Scan (secrets, workflows, shell)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -147,6 +152,7 @@ jobs:
|
|||||||
ui:
|
ui:
|
||||||
name: UI (playwright)
|
name: UI (playwright)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
# Official image with Chromium and its system libraries; its version must match
|
# Official image with Chromium and its system libraries; its version must match
|
||||||
# @playwright/test in package.json.
|
# @playwright/test in package.json.
|
||||||
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
||||||
@@ -182,6 +188,7 @@ jobs:
|
|||||||
ui-screenshots:
|
ui-screenshots:
|
||||||
name: UI screenshots (before/after)
|
name: UI screenshots (before/after)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
||||||
env:
|
env:
|
||||||
@@ -231,6 +238,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
needs: [lint, test, audit, scan, integration, ui]
|
needs: [lint, test, audit, scan, integration, ui]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
# Never run two deploys at once; queue instead of cancelling a deploy mid-way.
|
# Never run two deploys at once; queue instead of cancelling a deploy mid-way.
|
||||||
@@ -290,6 +298,7 @@ jobs:
|
|||||||
deploy-worker:
|
deploy-worker:
|
||||||
name: Deploy worker
|
name: Deploy worker
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
needs: [deploy] # the server first: it must understand anything new the worker sends
|
needs: [deploy] # the server first: it must understand anything new the worker sends
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
@@ -356,6 +365,7 @@ jobs:
|
|||||||
notify:
|
notify:
|
||||||
name: Notify
|
name: Notify
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
needs: [lint, test, audit, scan, integration, ui, deploy, deploy-worker]
|
needs: [lint, test, audit, scan, integration, ui, deploy, deploy-worker]
|
||||||
# Alert on any failure on main or in the weekly audit, and on every deploy outcome.
|
# Alert on any failure on main or in the weekly audit, and on every deploy outcome.
|
||||||
if: >-
|
if: >-
|
||||||
|
|||||||
Reference in new issue
Block a user