Skip to content

Commit 4c031d1

Browse files
WyveraldYannic
andauthored
[5.1] Undocument --bes_best_effort (bazelbuild#15066)
We've heared from several people that they tried passing the flag and it did not have any efect (as expected from a no-op), so let's undocument the flag so it's no longer discoverable. On a related note, we should document `--bes_upload_mode` which seems to be what people want to do. Closes bazelbuild#14333. PiperOrigin-RevId: 435317406 Co-authored-by: Yannic Bonenberger <[email protected]>
1 parent cb6500a commit 4c031d1

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRulesModule.java

+11
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,17 @@ public static final class AllCommandGraveyardOptions extends OptionsBase {
487487
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
488488
help = "No-op")
489489
public boolean enableCpuUsageProfiling;
490+
491+
@Option(
492+
name = "bes_best_effort",
493+
defaultValue = "false",
494+
deprecationWarning =
495+
"BES best effort upload has been removed. The flag has no more "
496+
+ "functionality attached to it and will be removed in a future release.",
497+
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
498+
effectTags = {OptionEffectTag.AFFECTS_OUTPUTS},
499+
help = "No-op")
500+
public boolean besBestEffort;
490501
}
491502

492503
@Override

src/main/java/com/google/devtools/build/lib/buildeventservice/BuildEventServiceOptions.java

-13
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ public class BuildEventServiceOptions extends OptionsBase {
6565
allowMultiple = true)
6666
public List<Map.Entry<String, String>> besHeaders;
6767

68-
@Option(
69-
name = "bes_best_effort",
70-
defaultValue = "false",
71-
deprecationWarning =
72-
"BES best effort upload has been removed. The flag has no more "
73-
+ "functionality attached to it and will be removed in a future release.",
74-
documentationCategory = OptionDocumentationCategory.LOGGING,
75-
effectTags = {OptionEffectTag.AFFECTS_OUTPUTS},
76-
help =
77-
"BES best effort upload has been removed. The flag has no more "
78-
+ "functionality attached to it and will be removed in a future release.")
79-
public boolean besBestEffort;
80-
8168
@Option(
8269
name = "bes_lifecycle_events",
8370
defaultValue = "true",

0 commit comments

Comments
 (0)