tools/perf/PRESUBMIT.py
def _CommonChecks(input_api, output_api, block_on_failure=False):
  """Performs common checks, which includes running pylint.

    block_on_failure: For some failures, we would like to warn the
        user but still allow them to upload the change. However, we
        don't want them to commit code with those failures, so we
        need to block the change on commit.
  """
  results = []

  results.extend(_CheckExpectations(input_api, output_api))
  results.extend(_CheckJson(input_api, output_api))
  results.extend(
      _CheckPerfDataCurrentness(input_api, output_api, block_on_failure))
  results.extend(
      _CheckPerfJsonConfigs(input_api, output_api, block_on_failure))
  results.extend(_CheckWprShaFiles(input_api, output_api))
  results.extend(_CheckShardMaps(input_api, output_api, block_on_failure))
  results.extend(_CheckVersionsInSmokeTests(input_api, output_api))
  results.extend(input_api.RunTests(input_api.canned_checks.GetPylint(
      input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api),
      pylintrc='pylintrc')))
  return results
Performs common checks, which includes running pylint.

    block_on_failure: For some failures, we would like to warn the
        user but still allow them to upload the change. However, we
        don't want them to commit code with those failures, so we
        need to block the change on commit.
  
Performs common checks, which includes running pylint.
block_on_failure: For some failures, we would like to warn the
user but still allow them to upload the change. However, we
don't want them to commit code with those failures, so we
need to block the change on commit.
Performs common checks which includes running pylint . block_on_failure : For some failures we would like to warn the user but still allow them to upload the change . However we don ' t want them to commit code with those failures so we need to block the change on commit .
def _CommonChecks(input_api, output_api, block_on_failure=False):
  results = []
  results.extend(_CheckExpectations(input_api, output_api))
  results.extend(_CheckJson(input_api, output_api))
  results.extend(
      _CheckPerfDataCurrentness(input_api, output_api, block_on_failure))
  results.extend(
      _CheckPerfJsonConfigs(input_api, output_api, block_on_failure))
  results.extend(_CheckWprShaFiles(input_api, output_api))
  results.extend(_CheckShardMaps(input_api, output_api, block_on_failure))
  results.extend(_CheckVersionsInSmokeTests(input_api, output_api))
  results.extend(input_api.RunTests(input_api.canned_checks.GetPylint(
      input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api),
      pylintrc='pylintrc')))
  return results
def _CommonChecks ( input_api , output_api , block_on_failure = False ) : results = [ ] results . extend ( _CheckExpectations ( input_api , output_api ) ) results . extend ( _CheckJson ( input_api , output_api ) ) results . extend ( _CheckPerfDataCurrentness ( input_api , output_api , block_on_failure ) ) results . extend ( _CheckPerfJsonConfigs ( input_api , output_api , block_on_failure ) ) results . extend ( _CheckWprShaFiles ( input_api , output_api ) ) results . extend ( _CheckShardMaps ( input_api , output_api , block_on_failure ) ) results . extend ( _CheckVersionsInSmokeTests ( input_api , output_api ) ) results . extend ( input_api . RunTests ( input_api . canned_checks . GetPylint ( input_api , output_api , extra_paths_list = _GetPathsToPrepend ( input_api ) , pylintrc = 'pylintrc' ) ) ) return results
Performs common checks, which includes running pylint.
Performs common checks which includes running pylint .
"""Performs common checks, which includes running pylint.

    block_on_failure: For some failures, we would like to warn the
        user but still allow them to upload the change. However, we
        don't want them to commit code with those failures, so we
        need to block the change on commit.
  """
input_api
output_api
block_on_failure