Skip to content

fix(ci): serialize tsc-multi builds in GitHub workflows#1076

Merged
seratch merged 2 commits intomainfrom
fix/serialize-ci-build
Mar 8, 2026
Merged

fix(ci): serialize tsc-multi builds in GitHub workflows#1076
seratch merged 2 commits intomainfrom
fix/serialize-ci-build

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Mar 8, 2026

This pull request fixes an intermittent CI build failure caused by tsc-multi running parallel target builds that can race on shared .d.ts outputs. The failure surfaced in the coverage job as a transient TypeScript TS7006 error in packages/agents-extensions/src/ai-sdk-ui/uiMessageStream.ts, even though the underlying source code was unchanged and reruns passed.

The change adds a dedicated build:ci script in package.json that preserves the normal prebuild and postbuild lifecycle while forcing tsc-multi --maxWorkers 1 on GitHub runners. It then updates the relevant workflows in .github/workflows/test.yml, .github/workflows/docs.yml, .github/workflows/release.yml, and .github/workflows/update-docs.yml to use that serialized CI build path instead of the default parallel build.

Behaviorally, local developer builds remain unchanged and fast because pnpm build still uses the existing parallel configuration. Only CI builds are serialized to reduce flakiness and keep declaration generation stable across targets.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 8, 2026

⚠️ No Changeset found

Latest commit: 808e43c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@seratch seratch enabled auto-merge (squash) March 8, 2026 02:12
@seratch seratch merged commit 6538719 into main Mar 8, 2026
6 checks passed
@seratch seratch deleted the fix/serialize-ci-build branch March 8, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant