@@ -80,11 +80,12 @@ public String getTypeDescription() {
80
80
}
81
81
82
82
@ Option (
83
- name = "ignore_unsupported_sandboxing" ,
84
- defaultValue = "false" ,
85
- documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
86
- effectTags = {OptionEffectTag .UNKNOWN },
87
- help = "Do not print a warning when sandboxed execution is not supported on this system." )
83
+ name = "ignore_unsupported_sandboxing" ,
84
+ defaultValue = "false" ,
85
+ documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
86
+ effectTags = {OptionEffectTag .UNKNOWN },
87
+ help = "Do not print a warning when sandboxed execution is not supported on this system."
88
+ )
88
89
public boolean ignoreUnsupportedSandboxing ;
89
90
90
91
@ Option (
@@ -114,19 +115,21 @@ public String getTypeDescription() {
114
115
public String sandboxBase ;
115
116
116
117
@ Option (
117
- name = "sandbox_fake_hostname" ,
118
- defaultValue = "false" ,
119
- documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
120
- effectTags = {OptionEffectTag .UNKNOWN },
121
- help = "Change the current hostname to 'localhost' for sandboxed actions." )
118
+ name = "sandbox_fake_hostname" ,
119
+ defaultValue = "false" ,
120
+ documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
121
+ effectTags = {OptionEffectTag .UNKNOWN },
122
+ help = "Change the current hostname to 'localhost' for sandboxed actions."
123
+ )
122
124
public boolean sandboxFakeHostname ;
123
125
124
126
@ Option (
125
- name = "sandbox_fake_username" ,
126
- defaultValue = "false" ,
127
- documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
128
- effectTags = {OptionEffectTag .UNKNOWN },
129
- help = "Change the current username to 'nobody' for sandboxed actions." )
127
+ name = "sandbox_fake_username" ,
128
+ defaultValue = "false" ,
129
+ documentationCategory = OptionDocumentationCategory .UNCATEGORIZED ,
130
+ effectTags = {OptionEffectTag .UNKNOWN },
131
+ help = "Change the current username to 'nobody' for sandboxed actions."
132
+ )
130
133
public boolean sandboxFakeUsername ;
131
134
132
135
@ Option (
@@ -184,13 +187,14 @@ public String getTypeDescription() {
184
187
public TriState useSandboxfs ;
185
188
186
189
@ Option (
187
- name = "experimental_sandboxfs_path" ,
188
- defaultValue = "sandboxfs" ,
189
- documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
190
- effectTags = {OptionEffectTag .UNKNOWN },
191
- help =
192
- "Path to the sandboxfs binary to use when --experimental_use_sandboxfs is true. If a "
193
- + "bare name, use the first binary of that name found in the PATH." )
190
+ name = "experimental_sandboxfs_path" ,
191
+ defaultValue = "sandboxfs" ,
192
+ documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
193
+ effectTags = {OptionEffectTag .UNKNOWN },
194
+ help =
195
+ "Path to the sandboxfs binary to use when --experimental_use_sandboxfs is true. If a "
196
+ + "bare name, use the first binary of that name found in the PATH."
197
+ )
194
198
public String sandboxfsPath ;
195
199
196
200
@ Option (
@@ -243,48 +247,50 @@ public ImmutableSet<Path> getInaccessiblePaths(FileSystem fs) {
243
247
}
244
248
245
249
@ Option (
246
- name = "experimental_collect_local_sandbox_action_metrics" ,
247
- defaultValue = "false" ,
248
- documentationCategory = OptionDocumentationCategory .UNDOCUMENTED ,
249
- effectTags = {OptionEffectTag .EXECUTION },
250
- help =
251
- "When enabled, execution statistics (such as user and system time) are recorded for "
252
- + "locally executed actions which use sandboxing" )
250
+ name = "experimental_collect_local_sandbox_action_metrics" ,
251
+ defaultValue = "false" ,
252
+ documentationCategory = OptionDocumentationCategory .UNDOCUMENTED ,
253
+ effectTags = {OptionEffectTag .EXECUTION },
254
+ help =
255
+ "When enabled, execution statistics (such as user and system time) are recorded for "
256
+ + "locally executed actions which use sandboxing"
257
+ )
253
258
public boolean collectLocalSandboxExecutionStatistics ;
254
259
255
260
@ Option (
256
- name = "experimental_enable_docker_sandbox" ,
257
- defaultValue = "false" ,
258
- documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
259
- effectTags = {OptionEffectTag .EXECUTION },
260
- help =
261
- "Enable Docker-based sandboxing. This option has no effect if Docker is not installed." )
261
+ name = "experimental_enable_docker_sandbox" ,
262
+ defaultValue = "false" ,
263
+ documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
264
+ effectTags = {OptionEffectTag .EXECUTION },
265
+ help = "Enable Docker-based sandboxing. This option has no effect if Docker is not installed." )
262
266
public boolean enableDockerSandbox ;
263
267
264
268
@ Option (
265
- name = "experimental_docker_image" ,
266
- defaultValue = "" ,
267
- documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
268
- effectTags = {OptionEffectTag .EXECUTION },
269
- help =
270
- "Specify a Docker image name (e.g. \" ubuntu:latest\" ) that should be used to execute a"
271
- + " sandboxed action when using the docker strategy and the action itself doesn't"
272
- + " already have a container-image attribute in its remote_execution_properties in"
273
- + " the platform description. The value of this flag is passed verbatim to 'docker"
274
- + " run', so it supports the same syntax and mechanisms as Docker itself." )
269
+ name = "experimental_docker_image" ,
270
+ defaultValue = "" ,
271
+ documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
272
+ effectTags = {OptionEffectTag .EXECUTION },
273
+ help =
274
+ "Specify a Docker image name (e.g. \" ubuntu:latest\" ) that should be used to execute "
275
+ + "a sandboxed action when using the docker strategy and the action itself doesn't "
276
+ + "already have a container-image attribute in its remote_execution_properties in the "
277
+ + "platform description. The value of this flag is passed verbatim to 'docker run', so "
278
+ + "it supports the same syntax and mechanisms as Docker itself."
279
+ )
275
280
public String dockerImage ;
276
281
277
282
@ Option (
278
- name = "experimental_docker_use_customized_images" ,
279
- defaultValue = "true" ,
280
- documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
281
- effectTags = {OptionEffectTag .EXECUTION },
282
- help =
283
- "If enabled, injects the uid and gid of the current user into the Docker image before"
284
- + " using it. This is required if your build / tests depend on the user having a name"
285
- + " and home directory inside the container. This is on by default, but you can"
286
- + " disable it in case the automatic image customization feature doesn't work in your"
287
- + " case or you know that you don't need it." )
283
+ name = "experimental_docker_use_customized_images" ,
284
+ defaultValue = "true" ,
285
+ documentationCategory = OptionDocumentationCategory .EXECUTION_STRATEGY ,
286
+ effectTags = {OptionEffectTag .EXECUTION },
287
+ help =
288
+ "If enabled, injects the uid and gid of the current user into the Docker image before "
289
+ + "using it. This is required if your build / tests depend on the user having a name "
290
+ + "and home directory inside the container. This is on by default, but you can disable "
291
+ + "it in case the automatic image customization feature doesn't work in your case or "
292
+ + "you know that you don't need it."
293
+ )
288
294
public boolean dockerUseCustomizedImages ;
289
295
290
296
@ Option (
@@ -353,9 +359,8 @@ public ImmutableSet<Path> getInaccessiblePaths(FileSystem fs) {
353
359
},
354
360
help =
355
361
"If set to true, enables the legacy implicit fallback from sandboxed to local strategy."
356
- + " This flag will eventually default to false and then become a no-op. Use"
357
- + " --strategy, --spawn_strategy, or --dynamic_local_strategy to configure fallbacks"
358
- + " instead." )
362
+ + " This flag will eventually default to false and then become a no-op. You should"
363
+ + " use --strategy or --spawn_strategy to configure fallbacks instead." )
359
364
public boolean legacyLocalFallback ;
360
365
361
366
/** Converter for the number of threads used for asynchronous tree deletion. */
0 commit comments