Skip to content

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

ci: lint web with four 12 GB ESLint workers (#19516)

Tobias Wochingerd93483cd4b89
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 9a7fc3a6b5..1c3a58a827 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -294,9 +294,15 @@ jobs:
run: |
cp .env.dev.example .env
- name: lint web
- # Respect package-level worker limits: web's typed linting duplicates
- # its TypeScript project state in each worker.
- run: pnpm turbo run lint --filter=!ai-gateway --filter=!@langfuse/native --concurrency=3
+ # Web's typed linting duplicates its TypeScript project state in each
+ # worker (about 6.5 GB each), above Node's default heap limit. The
+ # 64 GB runner fits four workers; local `pnpm lint` stays
+ # single-process with an 8 GB heap for smaller machines. Web's script
+ # passes its own heap flag, which overrides NODE_OPTIONS.
+ env:
+ NODE_OPTIONS: --max_old_space_size=12288
+ WEB_LINT_MAX_OLD_SPACE_SIZE: "12288"
+ run: pnpm turbo run lint --filter=!ai-gateway --filter=!@langfuse/native --concurrency=3 -- --concurrency=4
# Rust packages lint separately (ai-gateway in its own job).
- name: lint native addon (rustfmt, clippy)
run: pnpm --filter @langfuse/native run lint
diff --git a/web/package.json b/web/package.json
index e1cdf7342d..bafcb5d79f 100644
--- a/web/package.json
+++ b/web/package.json
@@ -14,7 +14,7 @@
"typecheck": "dotenv -e ../.env -- tsc -p tsconfig.json --noEmit --skipLibCheck --incremental --tsBuildInfoFile .tsbuildinfo && dotenv -e ../.env -- tsc -p tsconfig.tests.json --noEmit --skipLibCheck --incremental --tsBuildInfoFile .tests.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 -- node --max-old-space-size=8192 node_modules/eslint/bin/eslint.js --cache --cache-location .next/cache/eslint/ --max-warnings 0 --concurrency off",
+ "lint": "dotenv -e ../.env -- node --max-old-space-size=${WEB_LINT_MAX_OLD_SPACE_SIZE:-8192} node_modules/eslint/bin/eslint.js --cache --cache-location .next/cache/eslint/ --max-warnings 0 --concurrency off",
"lint:fix": "dotenv -e ../.env -- node --max-old-space-size=8192 node_modules/eslint/bin/eslint.js . --cache --cache-location .next/cache/eslint/ --fix --concurrency off",
"analyze": "dotenv -e ../.env -- next analyze",
"clean": "rm -rf node_modules",