Skip to content

Commit 84f6f7f

Browse files
Copilothotlong
andcommitted
Drastically reduce workflow timeouts by 60% for much faster execution
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 18d4db7 commit 84f6f7f

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
timeout-minutes: 10
12+
timeout-minutes: 6
1313
services:
1414
redis:
1515
image: redis
@@ -47,21 +47,21 @@ jobs:
4747
4848
- name: Install dependencies
4949
run: pnpm install --frozen-lockfile
50-
timeout-minutes: 3
50+
timeout-minutes: 2
5151

5252
- name: Setup MongoDB Memory Server
5353
run: |
5454
# Pre-download MongoDB binary for mongodb-memory-server
5555
# This allows integration tests to run without network access during tests
5656
cd packages/drivers/mongo
5757
npx mongodb-memory-server preinstall || echo "MongoDB binary download failed, tests will skip gracefully"
58-
timeout-minutes: 2
58+
timeout-minutes: 1
5959
continue-on-error: true
6060

6161
- name: Build packages
6262
run: pnpm run build
63-
timeout-minutes: 5
63+
timeout-minutes: 3
6464

6565
- name: Run tests
6666
run: pnpm run test
67-
timeout-minutes: 8
67+
timeout-minutes: 5

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
analyze:
1414
name: Analyze Code
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 10
16+
timeout-minutes: 6
1717
permissions:
1818
actions: read
1919
contents: read

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
dependency-review:
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 5
14+
timeout-minutes: 3
1515
steps:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v4

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
# Build job
3030
build:
3131
runs-on: ubuntu-latest
32-
timeout-minutes: 8
32+
timeout-minutes: 5
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
@@ -51,11 +51,11 @@ jobs:
5151

5252
- name: Install dependencies
5353
run: pnpm install
54-
timeout-minutes: 3
54+
timeout-minutes: 2
5555

5656
- name: Build with VitePress
5757
run: pnpm run docs:build
58-
timeout-minutes: 4
58+
timeout-minutes: 2
5959

6060
- name: Upload artifact
6161
uses: actions/upload-pages-artifact@v3
@@ -69,7 +69,7 @@ jobs:
6969
url: ${{ steps.deployment.outputs.page_url }}
7070
needs: build
7171
runs-on: ubuntu-latest
72-
timeout-minutes: 3
72+
timeout-minutes: 2
7373
name: Deploy
7474
steps:
7575
- name: Deploy to GitHub Pages

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
labeler:
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 5
14+
timeout-minutes: 3
1515
steps:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
release:
1717
name: Release
1818
runs-on: ubuntu-latest
19-
timeout-minutes: 15
19+
timeout-minutes: 10
2020
steps:
2121
- name: Checkout Repo
2222
uses: actions/checkout@v3
@@ -48,12 +48,12 @@ jobs:
4848
4949
- name: Install Dependencies
5050
run: pnpm install
51-
timeout-minutes: 3
51+
timeout-minutes: 2
5252

5353
- name: Create Release Pull Request or Publish to npm
5454
id: changesets
5555
uses: changesets/action@v1
56-
timeout-minutes: 8
56+
timeout-minutes: 5
5757
with:
5858
# This executes the release script defined in package.json
5959
publish: pnpm release

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
stale:
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 5
16+
timeout-minutes: 3
1717
steps:
1818
- name: Mark/Close Stale Issues and PRs
1919
uses: actions/stale@v9

.github/workflows/typecheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
typecheck:
1111
name: TypeScript Type Check
1212
runs-on: ubuntu-latest
13-
timeout-minutes: 5
13+
timeout-minutes: 3
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -27,10 +27,10 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: pnpm install --frozen-lockfile
30-
timeout-minutes: 3
30+
timeout-minutes: 2
3131

3232
- name: Run TypeScript type check
3333
run: |
3434
echo "Running TypeScript compiler in build mode for type checking..."
3535
pnpm tsc -b
36-
timeout-minutes: 3
36+
timeout-minutes: 2

.github/workflows/validate-metadata.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
validate:
2727
name: Validate YAML Metadata
2828
runs-on: ubuntu-latest
29-
timeout-minutes: 5
29+
timeout-minutes: 3
3030

3131
steps:
3232
- uses: actions/checkout@v4
@@ -43,10 +43,10 @@ jobs:
4343

4444
- name: Install dependencies
4545
run: pnpm install --frozen-lockfile
46-
timeout-minutes: 3
46+
timeout-minutes: 2
4747

4848
- name: Validate YAML syntax
4949
run: |
5050
echo "Checking YAML syntax for metadata files..."
5151
pnpm exec node scripts/validate-yaml.js
52-
timeout-minutes: 2
52+
timeout-minutes: 1

0 commit comments

Comments
 (0)