🥟 ci: Type-Check Workspaces with bun check (#17009)
Some checks failed
Backend Unit Tests / Build packages (push) Waiting to run
Backend Unit Tests / Codegraph select (push) Waiting to run
Backend Unit Tests / TypeScript type checks (push) Blocked by required conditions
Backend Unit Tests / Circular dependency checks (push) Waiting to run
Backend Unit Tests / Tests: api (shard 1/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 2/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: api (shard 3/3) (push) Blocked by required conditions
Backend Unit Tests / Tests: data-provider (push) Blocked by required conditions
Backend Unit Tests / Tests: data-schemas (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 1/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 2/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 3/4) (push) Blocked by required conditions
Backend Unit Tests / Tests: @librechat/api (shard 4/4) (push) Blocked by required conditions
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run
Frontend Unit Tests / Client build recovery regression (push) Waiting to run
Frontend Unit Tests / Codegraph select (push) Waiting to run
Frontend Unit Tests / Build packages (push) Waiting to run
Frontend Unit Tests / TypeScript type checks (client) (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/chat (push) Blocked by required conditions
Frontend Unit Tests / Tests: @librechat/client (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 1/2) (push) Blocked by required conditions
Frontend Unit Tests / Tests: Ubuntu (shard 2/2) (push) Blocked by required conditions
Frontend Unit Tests / Vite build verification (push) Blocked by required conditions
Main Promotion Policy Tests / Main promotion denial and fast-forward tests (push) Has been cancelled

* ci: Type-Check Workspaces with bun check

Make every workspace tsconfig valid under TypeScript 7 semantics while
staying clean on the installed tsc 5.9: explicit types arrays (TS 7 no
longer auto-includes node_modules/@types), es2017 target for
data-provider, rootDir for api specs that import client contracts, and
noUncheckedSideEffectImports off for the CSS and matchMedia mock imports.

Fix the four client type errors newer DOM and Intl libs expose, and drop
the fetch.preconnect copy in useRum that only existed to satisfy the
leaked @types/bun globals.

Switch the client typecheck script and the CI type-check steps to
bun check (Bun 1.4.3); tsc --noEmit stays available as typecheck:tsc.

* chore: Fall Back to tsc When bun check Is Unavailable

Add scripts/typecheck.mts, which runs bun check when the installed Bun
provides it and the repository's tsc otherwise, so contributors without
Bun can still type-check. The client typecheck script and the
static-checks TypeScript gate both resolve their checker through it,
keeping local runs on the same checker CI uses whenever Bun is present.

* ci: Type-Check the Chat Package Through the Shared Checker

* ci: Run the Type Check When Only the Shared Checker Changes

A change to scripts/typecheck.mts alone started neither frontend review
nor the static-checks TypeScript gate, so a broken resolver could merge
unexercised. Add it to the frontend-review triggers and to every
typecheck project's paths.

The suppression-baseline scenarios copy static-checks.mts into synthetic
roots; copy its new typecheck.mts import alongside i18n.mts so the runner
loads there. Add scenarios for the checker choice and its fallback.
This commit is contained in:
Marco Beretta 2026-10-12 12:40:07 +02:00 • committed by GitHub
parent ee1d59e590
commit e1b4e09d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 264 additions and 25 deletions

View file

@ -301,14 +301,19 @@ jobs:
name: build-api
path: packages/api/dist
- name: Use Bun 1.4.3
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.4.3'
- name: Type check data-provider
run: npx tsc --noEmit -p packages/data-provider/tsconfig.json
run: bun check -p packages/data-provider/tsconfig.json
- name: Type check data-schemas
run: npx tsc --noEmit -p packages/data-schemas/tsconfig.json
run: bun check -p packages/data-schemas/tsconfig.json
- name: Type check @librechat/api
run: npx tsc --noEmit -p packages/api/tsconfig.json
run: bun check -p packages/api/tsconfig.json
- name: OpenAPI spec drift check
run: npm run -w @librechat/api openapi:check
@ -317,7 +322,7 @@ jobs:
run: npm run -w @librechat/api openapi:test
- name: Type check @librechat/client
run: npx tsc --noEmit -p packages/client/tsconfig.json
run: bun check -p packages/client/tsconfig.json
circular-deps:
name: Circular dependency checks

View file

@ -8,6 +8,7 @@ on:
- 'packages/client/**'
- 'packages/chat/**'
- 'packages/data-provider/**'
- 'scripts/typecheck.mts'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/frontend-review.yml'
@ -23,6 +24,7 @@ on:
- 'packages/client/**'
- 'packages/chat/**'
- 'packages/data-provider/**'
- 'scripts/typecheck.mts'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/frontend-review.yml'
@ -284,6 +286,11 @@ jobs:
name: build-chat-package
path: packages/chat/dist
- name: Use Bun 1.4.3
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.4.3'
- name: Type check client
run: npm run typecheck
working-directory: client
@ -324,6 +331,11 @@ jobs:
name: build-data-provider
path: packages/data-provider/dist
- name: Use Bun 1.4.3
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.4.3'
- name: Type check
run: npm run typecheck
working-directory: packages/chat