mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-01 02:40:47 +02:00
fix(ci): small-lane batch — timeouts, right-sizing, windows cache warm-start
- timeout-minutes on the 6 remaining unbounded jobs (actionlint 5, skill-docs 10, version-gate 10, make-pdf-gate 15, pr-title-sync 5, evals build-image 15) — a hung step sat on GitHub's 360-min default - right-size measured-over-long timeouts: dependency-review 10→5, windows-setup-e2e 15→10 - dependency-review: 2-core runner (28s API call on an 8-core box) and drop .github/workflows/** from its trigger paths (workflow edits have no dependencies to review) - windows caches gain restore-keys: a lockfile bump paid the 26s/43s restore for a guaranteed cold miss Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
5cdc02f555
commit
05a45ddb89
@@ -21,6 +21,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
actionlint:
|
actionlint:
|
||||||
runs-on: ubicloud-standard-2
|
runs-on: ubicloud-standard-2
|
||||||
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ on:
|
|||||||
- 'bun.lock'
|
- 'bun.lock'
|
||||||
- '**/package.json'
|
- '**/package.json'
|
||||||
- '**/bun.lock'
|
- '**/bun.lock'
|
||||||
- '.github/workflows/**'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: dependency-review-${{ github.event.pull_request.number }}
|
group: dependency-review-${{ github.event.pull_request.number }}
|
||||||
@@ -18,8 +17,8 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: ubicloud-standard-8
|
runs-on: ubicloud-standard-2
|
||||||
timeout-minutes: 10
|
timeout-minutes: 5
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ jobs:
|
|||||||
# diff — a maintainer's next push rebuilds the image with real perms.
|
# diff — a maintainer's next push rebuilds the image with real perms.
|
||||||
if: github.actor != 'dependabot[bot]'
|
if: github.actor != 'dependabot[bot]'
|
||||||
runs-on: ubicloud-standard-8
|
runs-on: ubicloud-standard-8
|
||||||
|
timeout-minutes: 15
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ jobs:
|
|||||||
# tolerant: true
|
# tolerant: true
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ jobs:
|
|||||||
sync:
|
sync:
|
||||||
name: Sync PR title to VERSION
|
name: Sync PR title to VERSION
|
||||||
runs-on: ubicloud-standard-2
|
runs-on: ubicloud-standard-2
|
||||||
|
timeout-minutes: 5
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
check-freshness:
|
check-freshness:
|
||||||
runs-on: ubicloud-standard-2
|
runs-on: ubicloud-standard-2
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
name: Check VERSION is not stale vs queue
|
name: Check VERSION is not stale vs queue
|
||||||
runs-on: ubicloud-standard-2
|
runs-on: ubicloud-standard-2
|
||||||
|
timeout-minutes: 10
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|||||||
@@ -56,6 +56,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ~/.bun/install/cache
|
path: ~/.bun/install/cache
|
||||||
key: windows-bun-${{ hashFiles('bun.lock') }}
|
key: windows-bun-${{ hashFiles('bun.lock') }}
|
||||||
|
# A lockfile bump starts from the previous cache instead of cold
|
||||||
|
# (restore alone costs ~26s; without this a bump pays it for nothing).
|
||||||
|
restore-keys: |
|
||||||
|
windows-bun-
|
||||||
|
|
||||||
- name: Configure git identity (required by tests that init temp repos)
|
- name: Configure git identity (required by tests that init temp repos)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
windows-setup:
|
windows-setup:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
@@ -53,6 +53,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ~/.bun/install/cache
|
path: ~/.bun/install/cache
|
||||||
key: windows-bun-${{ hashFiles('bun.lock') }}
|
key: windows-bun-${{ hashFiles('bun.lock') }}
|
||||||
|
# A lockfile bump starts from the previous cache instead of cold
|
||||||
|
# (restore alone costs ~43s; without this a bump pays it for nothing).
|
||||||
|
restore-keys: |
|
||||||
|
windows-bun-
|
||||||
|
|
||||||
- name: Configure git identity
|
- name: Configure git identity
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user