mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Clean up stacked-changes dogfood
This removes logspam from `git cl` when a user (like me) hasn't opted either in or out. DOGFOOD_STACKED_CHANGES=1 is the codified behavior. This removes the DOGFOOD_STACKED_CHANGES=0 opt-out. Bug: b/265929888 Change-Id: Ia159f898512d815e3a4b76cc8859c599016a7bec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5274266 Auto-Submit: Peter Boström <pbos@chromium.org> Commit-Queue: Joanna Wang <jojwang@chromium.org> Reviewed-by: Joanna Wang <jojwang@chromium.org>
This commit is contained in:
@@ -24,9 +24,6 @@ UPLOAD_SCRIPT = os.path.join(DEPOT_TOOLS, 'upload_metrics.py')
|
||||
|
||||
DEFAULT_COUNTDOWN = 10
|
||||
|
||||
# TODO(b/265929888): Remove this variable when dogfood is over.
|
||||
DEPOT_TOOLS_ENV = ['DOGFOOD_STACKED_CHANGES']
|
||||
|
||||
INVALID_CONFIG_WARNING = (
|
||||
'WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will '
|
||||
'be created.')
|
||||
@@ -221,12 +218,6 @@ class MetricsCollector(object):
|
||||
self._collecting_metrics = True
|
||||
self.add('metrics_version', metrics_utils.CURRENT_VERSION)
|
||||
self.add('command', command_name)
|
||||
for env in DEPOT_TOOLS_ENV:
|
||||
if env in os.environ:
|
||||
self.add_repeated('env_vars', {
|
||||
'name': env,
|
||||
'value': os.environ.get(env)
|
||||
})
|
||||
|
||||
try:
|
||||
start = time.time()
|
||||
|
||||
Reference in New Issue
Block a user