Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci(perf): keep lint jobs below two minutes (#15867)

Tobias Wochingerfd9d9ec183f3
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 36a1ae9df0..70b12cfb7e 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -101,7 +101,7 @@ jobs:
- 'worker/src/__tests__/llmConnections.test.ts'
lint:
- runs-on: blacksmith-4vcpu-ubuntu-2404
+ runs-on: blacksmith-8vcpu-ubuntu-2404
needs:
- pre-job
# pre-job only runs on push events; everywhere else it resolves as skipped
@@ -159,7 +159,10 @@ jobs:
run: |
cp .env.dev.example .env
- name: lint web
- run: pnpm run lint
+ # Turbo runs up to three packages at once. The largest overlap is web's
+ # four ESLint workers plus two packages with two workers each, matching
+ # this runner's eight vCPUs.
+ run: pnpm turbo run lint --concurrency=3
- name: typecheck
run: pnpm run typecheck
diff --git a/web/package.json b/web/package.json
index aec921e0e1..630f155c97 100644
--- a/web/package.json
+++ b/web/package.json
@@ -12,8 +12,8 @@
"typecheck": "dotenv -e ../.env -- tsc -p tsconfig.json --noEmit --skipLibCheck --incremental --tsBuildInfoFile .tsbuildinfo",
"dev": "dotenv -e ../.env -- next dev",
"dev:http": "dotenv -e ../.env -- next dev --experimental-https --experimental-https-key ./localhost+1-key.pem --experimental-https-cert ./localhost+1.pem",
- "lint": "dotenv -e ../.env -- eslint . --cache --cache-location .next/cache/eslint/ --max-warnings 0 --concurrency 2",
- "lint:fix": "dotenv -e ../.env -- eslint . --cache --cache-location .next/cache/eslint/ --fix --concurrency 2",
+ "lint": "dotenv -e ../.env -- eslint . --cache --cache-location .next/cache/eslint/ --max-warnings 0 --concurrency 4",
+ "lint:fix": "dotenv -e ../.env -- eslint . --cache --cache-location .next/cache/eslint/ --fix --concurrency 4",
"analyze": "dotenv -e ../.env -- next experimental-analyze",
"clean": "rm -rf node_modules",
"start": "dotenv -e ../.env -- sh -c 'NEXT_MANUAL_SIG_HANDLE=true next start'",