Bug 1659836 - Don't log to telemetry for mach create-mach-environment r=mhentges,froydnj

`mach create-mach-environment` is what installs `glean_sdk` to the `mach` `virtualenv`. `create-mach-environment` runs on the system Python and we can't assume the system Python has `glean_sdk` installed.

Differential Revision: https://phabricator.services.mozilla.com/D87507
This commit is contained in:
Ricky Stewart 2020-08-19 14:03:46 +00:00
parent 0541f523d9
commit d7122f80af

View File

@ -284,10 +284,12 @@ def bootstrap(topsrcdir, mozilla_dir=None):
def should_skip_telemetry_submission(handler):
# The user is performing a maintenance command.
if handler.name in ('bootstrap', 'doctor', 'mach-commands', 'vcs-setup',
# We call mach environment in client.mk which would cause the
# data submission to block the forward progress of make.
'environment'):
if handler.name in (
'bootstrap', 'doctor', 'mach-commands', 'vcs-setup',
'create-mach-environment',
# We call mach environment in client.mk which would cause the
# data submission to block the forward progress of make.
'environment'):
return True
# Never submit data when running in automation or when running tests.