Skip to content

fix(ci): limit Turbo concurrency to prevent browser test CPU starvation#2095

Merged
nick-inkeep merged 1 commit intomainfrom
fix/ci-turbo-concurrency
Feb 18, 2026
Merged

fix(ci): limit Turbo concurrency to prevent browser test CPU starvation#2095
nick-inkeep merged 1 commit intomainfrom
fix/ci-turbo-concurrency

Conversation

@nick-inkeep
Copy link
Collaborator

Summary

Why --concurrency=8?

Factor Value
Runner vCPUs 4
Concurrency 8 (2x vCPUs)
Rationale Standard oversubscription for mixed I/O + CPU workloads. Cache hits complete instantly and free slots.

What was ruled out

  • Per-task concurrency — doesn't exist in Turborepo
  • Cross-package dependsOn overrides — artificial coupling, maintenance burden
  • Vitest fileParallelism: false — unnecessary if Turbo concurrency is properly constrained
  • CI step splitting (chore: improve CI performance by splitting build and test phases #2092) — works but bypasses Turbo's scheduler

Test plan

🤖 Generated with Claude Code

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: 627b4f6

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

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Feb 18, 2026 3:59am
agents-docs Ready Ready Preview, Comment Feb 18, 2026 3:59am
agents-manage-ui Error Error Feb 18, 2026 3:59am

Request Review

The ubuntu-16gb runner has 4 vCPUs but turbo.json sets concurrency to 15.
During cache-miss runs, 15 concurrent tasks starve Playwright browser tests
of CPU, causing Monaco editor initialization to time out.

Limit CI concurrency to 8 via CLI flag (2x vCPUs), which prevents starvation
while preserving parallelism. Uses --concurrency flag in CI only so local dev
keeps the higher turbo.json setting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(1) Total Issues | Risk: Low

🔴❗ Critical (0) ❗🔴

None.

🟠⚠️ Major (0) 🟠⚠️

None.

🟡 Minor (0) 🟡

None.

💭 Consider (0) 💭

None.

🧹 While You're Here (1) 🧹

🧹 1) .github/workflows/ci.yml Actions pinned to mutable tags instead of SHAs

Issue: GitHub Actions in this workflow (and all other workflows in the repo) use mutable version tags (e.g., actions/checkout@v5, actions/cache@v4) rather than full SHA pins.

Why: While first-party actions/* are lower risk than third-party actions, SHA pinning provides stronger supply chain security guarantees. This is a pre-existing pattern across the repository, not introduced by this PR.

Fix: Consider a follow-up PR to adopt SHA pinning with Dependabot for automated updates, or document the decision to accept mutable tags for first-party actions.

Refs:


✅ APPROVE

Summary: This is a clean, well-justified CI fix. The change correctly limits Turbo concurrency to 8 (2x the 4 vCPU runner spec) to prevent CPU starvation during cache-miss runs that caused Playwright browser tests to time out. The inline comment clearly documents the rationale, and using the CLI --concurrency flag is the right approach — it applies the constraint only in CI while preserving the higher concurrency setting in turbo.json for local development on beefier machines. Ship it! 🚀

Discarded (2)
Location Issue Reason Discarded
.github/workflows/ci.yml:113-115 CI concurrency change is correct and well-justified Positive feedback, not an issue
.github/workflows/ci.yml:112-114 Comment accurately reflects runner spec and rationale Positive feedback, not an issue
Reviewers (1)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
pr-review-devops 3 0 0 1 0 0 2
Total 3 0 0 1 0 0 2

@github-actions github-actions bot deleted a comment from claude bot Feb 18, 2026
@nick-inkeep nick-inkeep merged commit 23e09a2 into main Feb 18, 2026
10 of 11 checks passed
@nick-inkeep nick-inkeep deleted the fix/ci-turbo-concurrency branch February 18, 2026 09:07
nick-inkeep added a commit that referenced this pull request Feb 18, 2026
The ubuntu-16gb runner (4 vCPUs, 16GB RAM) gets OOM-killed when turbo
concurrency=15 triggers multiple Next.js builds concurrently during
cache-miss runs (e.g., any PR touching agents-core). This limits CI
concurrency to 8 via CLI flag (turbo.json stays at 15 for local dev).

Re-applies the fix from #2095 which was reverted in #2116.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments