René's URL Explorer Experiment


Title: bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²) · Issue #3826 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²) · Issue #3826 · triggerdotdev/trigger.dev

X Title: bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²) · Issue #3826 · triggerdotdev/trigger.dev

Description: Provide environment information Bug reproduces in CI (not on the dev machine above): CircleCI machine executor: Ubuntu 24.04, x86_64, Node 22.16.0 trigger.dev / @trigger.dev/sdk: 4.4.6 Deploy build image: node:21.7.3-bookworm-slim Descri...

Open Graph Description: Provide environment information Bug reproduces in CI (not on the dev machine above): CircleCI machine executor: Ubuntu 24.04, x86_64, Node 22.16.0 trigger.dev / @trigger.dev/sdk: 4.4.6 Deploy build...

X Description: Provide environment information Bug reproduces in CI (not on the dev machine above): CircleCI machine executor: Ubuntu 24.04, x86_64, Node 22.16.0 trigger.dev / @trigger.dev/sdk: 4.4.6 Deploy build...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/3826

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²)","articleBody":"### Provide environment information\n\nBug reproduces in CI (not on the dev machine above):\n  - CircleCI machine executor: Ubuntu 24.04, x86_64, Node 22.16.0\n  - trigger.dev / @trigger.dev/sdk: 4.4.6\n  - Deploy build image: node:21.7.3-bookworm-slim\n\n\n### Describe the bug\n\nTrigger 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.\n\n### Reproduction repo\n\nNo standalone repro repo; root cause is in windows.ts (analysis above) and a fix PR follows.\n\n### To reproduce\n\n1. A project with a large task graph (tasks importing a big module graph).\n2. Run `trigger deploy` (CLI 4.4.6) in a non-TTY CI runner (e.g. CircleCI).\n3. It hangs at \"Deploying project\" with one CPU core at ~100% until timeout.\nForcing a plain/ballmer spinner (no truncateMessage) or widening process.stdout.columns confirms it.\n\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/yonaplast","@type":"Person","name":"yonaplast"},"datePublished":"2026-06-03T19:04:09Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/3826"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8b45e357-1222-d2ef-243d-c729f8378ba4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC5A0:155E2E:34E3AED:4BA5C99:6AFB0840
html-safe-nonce33ca6e8f2571e538841eb2029b39d86244201e2ab41fd86fe1e1c7c1fbf9975d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUEwOjE1NUUyRTozNEUzQUVEOjRCQTVDOTk6NkFGQjA4NDAiLCJ2aXNpdG9yX2lkIjoiNDU2ODYzNjE5NzIxNDgxNjMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0d06bee4185ad28c4374416020d9a3146d7905b5da189d02ed6b4edc7bbad9a9
hovercard-subject-tagissue:4582825084
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/3826/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0073c3eba375b6fa052acada45b8b61791b93ea2483fa48f70abb0b374378c42/triggerdotdev/trigger.dev/issues/3826
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0073c3eba375b6fa052acada45b8b61791b93ea2483fa48f70abb0b374378c42/triggerdotdev/trigger.dev/issues/3826
og:image:altProvide environment information Bug reproduces in CI (not on the dev machine above): CircleCI machine executor: Ubuntu 24.04, x86_64, Node 22.16.0 trigger.dev / @trigger.dev/sdk: 4.4.6 Deploy build...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyonaplast
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/3826#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F3826
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F3826
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3826
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3826
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/3826
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3826
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3826
bug: CLI deploy hangs (100% CPU) in non-TTY CI — truncateMessage() is O(n²)https://github.com/triggerdotdev/trigger.dev/issues/3826#top
https://github.com/yonaplast
yonaplasthttps://github.com/yonaplast
on Jun 3, 2026https://github.com/triggerdotdev/trigger.dev/issues/3826#issue-4582825084
https://github.com/rohanranjan0902
rohanranjan0902https://github.com/rohanranjan0902
on Jun 7, 2026https://github.com/triggerdotdev/trigger.dev/issues/3826#issuecomment-4642330824
#3826https://github.com/triggerdotdev/trigger.dev/issues/3826
https://github.com/rohanranjan0902https://github.com/rohanranjan0902
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3826
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/3826
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.