@@ -80,12 +80,11 @@ public String getTypeDescription() {
8080 }
8181
8282 @ 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."
88- )
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." )
8988 public boolean ignoreUnsupportedSandboxing ;
9089
9190 @ Option (
@@ -115,21 +114,19 @@ public String getTypeDescription() {
115114 public String sandboxBase ;
116115
117116 @ Option (
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- )
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." )
124122 public boolean sandboxFakeHostname ;
125123
126124 @ Option (
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- )
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." )
133130 public boolean sandboxFakeUsername ;
134131
135132 @ Option (
@@ -187,14 +184,13 @@ public String getTypeDescription() {
187184 public TriState useSandboxfs ;
188185
189186 @ Option (
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- )
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." )
198194 public String sandboxfsPath ;
199195
200196 @ Option (
@@ -247,50 +243,48 @@ public ImmutableSet<Path> getInaccessiblePaths(FileSystem fs) {
247243 }
248244
249245 @ Option (
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- )
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" )
258253 public boolean collectLocalSandboxExecutionStatistics ;
259254
260255 @ Option (
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." )
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." )
266262 public boolean enableDockerSandbox ;
267263
268264 @ Option (
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- )
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." )
280275 public String dockerImage ;
281276
282277 @ Option (
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- )
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." )
294288 public boolean dockerUseCustomizedImages ;
295289
296290 @ Option (
@@ -359,8 +353,9 @@ public ImmutableSet<Path> getInaccessiblePaths(FileSystem fs) {
359353 },
360354 help =
361355 "If set to true, enables the legacy implicit fallback from sandboxed to local strategy."
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." )
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." )
364359 public boolean legacyLocalFallback ;
365360
366361 /** Converter for the number of threads used for asynchronous tree deletion. */
0 commit comments