You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²) #3826
Trigger deploy hangs on "Deploying project" for ~30 min (CI timeout) on a non-TTY runner. node --prof shows ~92% CPU usage on RegExpReplace / StringPrototypeReplace / truncateMessage (packages/cli-v3/src/utilities/windows.ts). On a non-TTY, process.stdout.columns is undefined → truncateMessage assumes 80 and truncates large spinner messages character by character by rescanning the entire string with two ANSI regex on each iteration → O(n²). A fast laptop finishes it in ~1 min; a slow CI core does not. Expected: no truncation when there is no TTY, and O(n) truncation.
Reproduction repo
No standalone repro repo; root cause is in windows.ts (analysis above) and a fix PR follows.
To reproduce
A project with a large task graph (tasks importing a big module graph).
Run trigger deploy (CLI 4.4.6) in a non-TTY CI runner (e.g. CircleCI).
It hangs at "Deploying project" with one CPU core at ~100% until timeout.
Forcing a plain/ballmer spinner (no truncateMessage) or widening process.stdout.columns confirms it.
I'd like to contribute to Trigger.dev and am requesting a vouch.
I'm a final-year B.Tech student at NIT Rourkela with experience in C++, backend development, and TypeScript/JavaScript. I've worked as a C++ Developer Intern and have a strong background in algorithms and problem solving.
I'm interested in working on issue #3826 (CLI deploy hangs due to O(n²) truncateMessage behavior in non-TTY CI environments) and contributing more fixes in the future.
Activity
rohanranjan0902 commentedon Jun 7, 2026
Hi Trigger.dev team,
I'd like to contribute to Trigger.dev and am requesting a vouch.
I'm a final-year B.Tech student at NIT Rourkela with experience in C++, backend development, and TypeScript/JavaScript. I've worked as a C++ Developer Intern and have a strong background in algorithms and problem solving.
I'm interested in working on issue #3826 (CLI deploy hangs due to O(n²) truncateMessage behavior in non-TTY CI environments) and contributing more fixes in the future.
GitHub: https://github.com/rohanranjan0902
Thank you for your consideration.