Skip to content

Commit 5b33e20

Browse files
committed
fix: Update integration tests for daemon deprecation
- Regenerate turbo-help.t from actual -h output (daemon flags hidden) - Restore --daemon/--no-daemon in bad-flag.t error usage (hide only affects help, not error hints) - Add deprecation warnings to config.t expected output - Remove --no-daemon from run-summary tests (no longer needed)
1 parent 9c85ef3 commit 5b33e20

File tree

2 files changed

+8
-90
lines changed

2 files changed

+8
-90
lines changed

turborepo-tests/integration/tests/other/bad-flag.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Bad flag with an implied run command should display run flags
4646
--cache-workers <CACHE_WORKERS>
4747
--dry-run \[<DRY_RUN>\] (re)
4848
--graph \[<GRAPH>\] (re)
49+
--daemon <DAEMON>
50+
--no-daemon <NO_DAEMON>
4951
--profile [<PROFILE>]
5052
--anon-profile [<ANON_PROFILE>]
5153
--summarize \[<SUMMARIZE>\] (re)

turborepo-tests/integration/tests/other/turbo-help.t

Lines changed: 6 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -93,116 +93,32 @@ Test help flag
9393
Generate a summary of the turbo run [possible values: true, false]
9494
--parallel
9595
Execute all tasks in parallel
96-
-h, --help
97-
Print help (see a summary with '-h')
98-
99-
Run Arguments:
100-
--cache <CACHE>
101-
Set the cache behavior for this run. Pass a list of comma-separated key, value pairs to enable reading and writing to either the local or remote cache
102-
103-
--force [<FORCE>]
104-
Ignore the existing cache (to force execution). Equivalent to `--cache=local:w,remote:w`
105-
106-
[possible values: true, false]
107-
108-
--remote-only [<REMOTE_ONLY>]
109-
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache. Equivalent to `--cache=remote:rw`
110-
111-
[possible values: true, false]
112-
113-
--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
114-
Treat remote cache as read only. Equivalent to `--cache=remote:r;local:rw`
115-
116-
[possible values: true, false]
117-
118-
--no-cache
119-
Avoid saving task results to the cache. Useful for development/watch tasks. Equivalent to `--cache=local:r,remote:r`
120-
121-
--cache-workers <CACHE_WORKERS>
122-
Set the number of concurrent cache operations (default 10)
123-
124-
[default: 10]
125-
126-
--dry-run [<DRY_RUN>]
127-
[possible values: text, json]
128-
129-
--graph [<GRAPH>]
130-
Generate a graph of the task execution and output to a file when a filename is specified (.svg, .png, .jpg, .pdf, .json, .html, .mermaid, .dot). Outputs dot graph to stdout when if no filename is provided
131-
132-
--profile [<PROFILE>]
133-
File to write turbo's performance profile output into. You can load the file up in chrome://tracing to see which parts of your build were slow
134-
135-
--anon-profile [<ANON_PROFILE>]
136-
File to write turbo's performance profile output into. All identifying data omitted from the profile
137-
138-
--summarize [<SUMMARIZE>]
139-
Generate a summary of the turbo run
140-
141-
[possible values: true, false]
142-
143-
--parallel
144-
Execute all tasks in parallel
145-
14696
--cache-dir <CACHE_DIR>
14797
Override the filesystem cache directory
148-
14998
--concurrency <CONCURRENCY>
15099
Limit the concurrency of task execution. Use 1 for serial (i.e. one-at-a-time) execution
151-
152100
--continue[=<CONTINUE>]
153-
Specify how task execution should proceed when an error occurs. Use "never" to cancel all tasks. Use "dependencies-successful" to continue running tasks whose dependencies have succeeded. Use "always" to continue running all tasks, even those whose dependencies have failed
154-
155-
[default: never]
156-
[possible values: never, dependencies-successful, always]
157-
101+
Specify how task execution should proceed when an error occurs. Use "never" to cancel all tasks. Use "dependencies-successful" to continue running tasks whose dependencies have succeeded. Use "always" to continue running all tasks, even those whose dependencies have failed [default: never] [possible values: never, dependencies-successful, always]
158102
--single-package
159103
Run turbo in single-package mode
160-
161104
--framework-inference [<BOOL>]
162-
Specify whether or not to do framework inference for tasks
163-
164-
[default: true]
165-
[possible values: true, false]
166-
105+
Specify whether or not to do framework inference for tasks [default: true] [possible values: true, false]
167106
--global-deps <GLOBAL_DEPS>
168107
Specify glob of global filesystem dependencies to be hashed. Useful for .env and files
169-
170108
--env-mode [<ENV_MODE>]
171-
Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json
172-
173-
Possible values:
174-
- loose: Allow all environment variables for the process to be available
175-
- strict: Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`
176-
109+
Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json [possible values: loose, strict]
177110
-F, --filter <FILTER>
178111
Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turborepo.dev/docs/reference/command-line-reference/run#--filter
179-
180112
--affected
181113
Filter to only packages that are affected by changes between the current branch and `main`
182-
183114
--output-logs <OUTPUT_LOGS>
184-
Set type of process output logging. Use "full" to show all output. Use "hash-only" to show only turbo-computed task hashes. Use "new-only" to show only new output with only hashes for cached tasks. Use "none" to hide process output. (default full)
185-
186-
Possible values:
187-
- full: Displays all output
188-
- none: Hides all task output
189-
- hash-only: Show only the hashes of the tasks
190-
- new-only: Only show output from cache misses
191-
- errors-only: Only show output from task failures
192-
115+
Set type of process output logging. Use "full" to show all output. Use "hash-only" to show only turbo-computed task hashes. Use "new-only" to show only new output with only hashes for cached tasks. Use "none" to hide process output. (default full) [possible values: full, none, hash-only, new-only, errors-only]
193116
--log-order <LOG_ORDER>
194-
Set type of task output order. Use "stream" to show output as soon as it is available. Use "grouped" to show output when a command has finished execution. Use "auto" to let turbo decide based on its own heuristics. (default auto)
195-
196-
[possible values: auto, stream, grouped]
197-
117+
Set type of task output order. Use "stream" to show output as soon as it is available. Use "grouped" to show output when a command has finished execution. Use "auto" to let turbo decide based on its own heuristics. (default auto) [possible values: auto, stream, grouped]
198118
--only
199119
Only executes the tasks specified, does not execute parent tasks
200-
201120
--log-prefix <LOG_PREFIX>
202-
Use "none" to remove prefixes from task logs. Use "task" to get task id prefixing. Use "auto" to let turbo decide how to prefix the logs based on the execution environment. In most cases this will be the same as "task". Note that tasks running in parallel interleave their logs, so removing prefixes can make it difficult to associate logs with tasks. Use --log-order=grouped to prevent interleaving. (default auto)
203-
204-
[default: auto]
205-
[possible values: auto, none, task]
121+
Use "none" to remove prefixes from task logs. Use "task" to get task id prefixing. Use "auto" to let turbo decide how to prefix the logs based on the execution environment. In most cases this will be the same as "task". Note that tasks running in parallel interleave their logs, so removing prefixes can make it difficult to associate logs with tasks. Use --log-order=grouped to prevent interleaving. (default auto) [default: auto] [possible values: auto, none, task]
206122
207123
208124
Test help flag for link command

0 commit comments

Comments
 (0)