这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: correctly read execution args from watch command #10381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kade-robertson
Copy link
Contributor

Description

This is a follow-up fix to: #10236

As it turns out, this change presented a regression in how the --concurrency flag behaves in watch mode. Previously, since this flag was read from the execution_args directly, it worked as expected. After switching it to read from config, it no longer worked in watch mode, as Args would only extract correctly from the Run command.

This change lets the Args::execution_args() getter return the execution args from the watch command that has been run, if present. This is a pretty significant change, as previously none of the run mode execution args would be respected in watch mode. I'm not totally confident this is desired.

The alternative is to bring back the special case for concurrency, and try to read from execution_args directly when parsing it, and falling back to config otherwise.

Testing Instructions

  1. Clone main and pnpm build:turbo
  2. Run ./path/to/turbo watch <some-cmd> in a repository where more than 10 tasks (the default) are persistent
  3. Observe that even specifying --concurrency=<task-count> does not override this setting
  4. Checkout the v2.5.0 commit and rebuild
  5. Run the same test, and observe that the concurrency flag works as expected
  6. Finally, clone this branch and rebuild
  7. Run the same test, and observe that the concurrency flag works as expected

@kade-robertson kade-robertson requested a review from a team as a code owner April 24, 2025 14:29
@turbo-orchestrator turbo-orchestrator bot added the needs: triage New issues get this label. Remove it after triage label Apr 24, 2025
Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 2:29pm

Copy link

vercel bot commented Apr 24, 2025

@kade-robertson is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@chris-olszewski chris-olszewski merged commit ab419ff into vercel:main Apr 25, 2025
35 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants