Skip to content

Commit

Permalink
Move new UI out of experimental state
Browse files Browse the repository at this point in the history
The console output stream is turned on by default for quite a while
now, and the decision is made that it should stay the default, and
in the long run the only, console output provided by Bazel. Rename
the respective flags accordingly to avoid giving a wrong impression
about its state.

Change-Id: Iad6240c4f615aae64fc721cd2e26fa5ee30b000d
PiperOrigin-RevId: 239781052
  • Loading branch information
aehlig authored and copybara-github committed Mar 22, 2019
1 parent 8808f95 commit df94cac
Showing 1 changed file with 34 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,58 +202,56 @@ public static class Options extends OptionsBase {
public boolean attemptToPrintRelativePaths;

@Option(
name = "experimental_ui",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Switches to an alternative progress bar that more explicitly shows progress, such "
+ "as loaded packages and executed actions."
)
name = "ui",
oldName = "experimental_ui",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Switches to a progress bar that more explicitly shows progress, such "
+ "as loaded packages and executed actions.")
public boolean experimentalUi;

@Option(
name = "experimental_ui_debug_all_events",
defaultValue = "false",
metadataTags = {OptionMetadataTag.HIDDEN},
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.UNKNOWN},
help = "Report all events known to the experimental new Bazel UI."
)
name = "experimental_ui_debug_all_events",
defaultValue = "false",
metadataTags = {OptionMetadataTag.HIDDEN},
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.UNKNOWN},
help = "Report all events known to the Bazel UI.")
public boolean experimentalUiDebugAllEvents;

@Option(
name = "experimental_ui_actions_shown",
defaultValue = "8",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Number of concurrent actions shown in the alternative progress bar; each "
+ "action is shown on a separate line. The alternative progress bar always shows "
+ "at least one one, all numbers less than 1 are mapped to 1. "
+ "This option has no effect unless --experimental_ui is set."
)
name = "ui_actions_shown",
oldName = "experimental_ui_actions_shown",
defaultValue = "8",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Number of concurrent actions shown in the detailed progress bar; each "
+ "action is shown on a separate line. The progress bar always shows "
+ "at least one one, all numbers less than 1 are mapped to 1. "
+ "This option has no effect if --noui is set.")
public int experimentalUiActionsShown;

@Option(
name = "experimental_ui_limit_console_output",
defaultValue = "0",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Number of bytes to which the experimental UI will limit its output (non-positive "
+ "values indicate unlimited). Once the limit is approaching, the experimental UI "
+ "will try hard to limit in a meaningful way, but will ultimately just drop all "
+ "output."
)
name = "experimental_ui_limit_console_output",
defaultValue = "0",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.UNKNOWN},
help =
"Number of bytes to which the UI will limit its output (non-positive "
+ "values indicate unlimited). Once the limit is approaching, the UI "
+ "will try hard to limit in a meaningful way, but will ultimately just drop all "
+ "output.")
public int experimentalUiLimitConsoleOutput;

@Option(
name = "experimental_ui_deduplicate",
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.LOGGING,
effectTags = {OptionEffectTag.TERMINAL_OUTPUT},
help = "Make the experimental UI deduplicate messages to have a cleaner scroll-back log.")
help = "Make the UI deduplicate messages to have a cleaner scroll-back log.")
public boolean experimentalUiDeduplicate;

public boolean useColor() {
Expand Down

0 comments on commit df94cac

Please sign in to comment.