Repository navigation
ci: run the turbo gate one task per vCPU so its runner keeps enough memory - #2696
Conversation
…emory At turbo's default concurrency of 10, gate-turbo's GitHub-hosted runner (4 vCPU, 16 GB, 3 GB swap) ran out of memory on wide graphs, and the hosted runner's agent stopped it: every running task exited 137 under "The runner has received a shutdown signal". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The review identifies only a non-blocking documentation nit while the workflow change is a straightforward concurrency flag adjustment intended to reduce runner memory pressure, with no active issues raised against merging.
No open issues 🎉
What changed in this PR
This pull request updates the gate-turbo CI workflow to limit Turbo’s task execution concurrency to one task per vCPU (--concurrency=100%) on GitHub-hosted ubuntu-24.04 runners, reducing peak memory pressure and avoiding runner shutdowns (exit 137) caused by overly parallel builds.
Changes:
- Add
--concurrency=100%to theturbo runinvocation in thegate-turbojob so concurrency scales with available CPUs rather than using Turbo’s default of 10. - Add/adjust workflow comments documenting the rationale (hosted runner memory/swap pressure and shutdown behavior).
Noted nit (non-blocking): the workflow comment currently hard-codes the runner’s vCPU count (“4 here”); since --concurrency=100% already adapts to runner sizing, that wording could become misleading if runner specs change.
| File | Summary |
|---|---|
.github/workflows/ci-turbo.yml |
Limit Turbo graph concurrency to 100% of available vCPUs for gate-turbo to reduce memory pressure on hosted runners and prevent runner shutdowns. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
gate-turboruns its graph at turbo's default concurrency of 10 on a GitHub-hostedubuntu-24.04runner (4 vCPU, 16 GB, 3 GB swap, per the runner's ownnproc/free). On a wide graph that fills memory, and the hosted runner's agent stops the runner. Every running task then exits 137 in the same second, underThe runner has received a shutdown signal. This PR runs the gate's graph one task per vCPU (--concurrency=100%, 4 on this runner).Since 2026-11-03 this has killed 9
gate-turbojobs on 8 branches: #2451 (twice), #2452, the merge-queue entry of #2675, a Dependabot PR and four others. Main's own forced nightly hit it on 2026-10-31.full-prnever does: it runs ondepot-ubuntu-24.04-16(64 GB). The turbo jobs moved to hosted runners in #2483, which noted that resource use there was not yet validated.The kill is not the kernel's OOM killer. dmesg logged no kill, and systemd-oomd is inactive on these runners. A probe run sampled memory every 5 s. At concurrency 10, in the last 30 s before the shutdown:
full).compileprocesses held 9.3 GB. Four separategocommands (the server's build, vet, lint, test and database-lane tasks each run their own) were each compiling a large package of the server module at 1.5–1.8 GB.next buildheld 1.1–1.6 GB, plus a vitest browser suite.Validation
Forced runs (
force=true, no cache, every task and both database lanes) of #2451's heada488aa1e0on this branch, from a temporary probe commit that has since been dropped. It checked out that commit, sampled memory, and skipped the journey and e2e-lanes jobs:--concurrencyRuns: 10, 6, 4. For comparison, main's forced nightly at the default concurrency took 29 min on 2026-11-03. One task per vCPU is no slower, because ten CPU-bound tasks on four cores bought no throughput.
turbo run lint --concurrency=100% --dry=json --filter=@zitadel/server(turbo 2.11.7 accepts the percentage form)ruby -ryaml -e '…'over the workflow,git diff --checknode scripts/check-pr-title.mjs --title "…"Release notes / changeset
No changeset required — no shipped behavior changed.
🤖 Generated with Claude Code