1. 09 Jun, 2022 2 commits
  2. 08 Jun, 2022 7 commits
  3. 07 Jun, 2022 6 commits
  4. 04 Jun, 2022 1 commit
    • Bruce Dawson's avatar
      Print full path and upgrade details in PyLint warning · 89b222db
      Bruce Dawson authored
      A run of "git cl presubmit --all" shows that PyLint 1.5 is being run
      from nine locations, however the deprecation warnings don't say where.
      This makes it difficult to file bugs or fix the remaining instances.
      This changes the message to list the path to the presubmit that is
      running PyLint 1.5.
      
      This also adds instructions on how to change to version 2.7.
      
      Before:
      
        pylint-1.5 is deprecated, please switch to 2.7 before 2022-07-11
      
      After (with word wrapping):
      
        pylint-1.5 is being run on ...src\tools\find_runtime_symbols
        and is deprecated, please switch to 2.7 before 2022-07-11 (add
        version='2.7' to RunPylint call)
      
      Change-Id: Iece2cb904f5d26ad66e3ab78f7ce7aef1878bfd1
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3688839Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      89b222db
  5. 03 Jun, 2022 5 commits
  6. 02 Jun, 2022 5 commits
  7. 01 Jun, 2022 7 commits
  8. 31 May, 2022 4 commits
  9. 27 May, 2022 3 commits
    • Bruce Dawson's avatar
      Don't halt presubmits on exceptions · 10a82868
      Bruce Dawson authored
      Some presubmit failures result in uncaught exceptions which historically
      have halted presubmit runs. This behavior makes it more difficult to
      find all failures, measure presubmit times, or detect other behavior
      over time. This is particularly problematic when running "git cl
      presubmit --all".
      
      As an example, presubmit --all was broken and would not complete from
      when crrev.com/3642633 landed until crrev.com/c/3657600. The minimal
      repro was this presubmit command:
      
          git cl presubmit --files ui\accessibility\ax_mode.h
      
      This command, or presubmit --all, triggered this error, which halts the
      presubmits:
      
      Evaluation of CheckChangeOnCommit failed: [Errno 2] No such file or directory: 'chrome/browser/resources/accessibility/accessibility.js'
      Traceback (most recent call last):
        File "presubmit_support.py", line 2038, in <module>
          sys.exit(main())
        File "presubmit_support.py", line 2015, in main
          return DoPresubmitChecks(
        File "presubmit_support.py", line 1738, in DoPresubmitChecks
          results += executer.ExecPresubmitScript(presubmit_script, filename)
        File "presubmit_support.py", line 1602, in ExecPresubmitScript
          self._run_check_function(function_name, context, sink,
        File "presubmit_support.py", line 1640, in _run_check_function
          six.reraise(e_type, e_value, e_tb)
        File "C:\Users\brucedawson\.vpython-root\e726d2\lib\site-packages\six.py", line 686, in reraise
          raise value
        File "presubmit_support.py", line 1630, in _run_check_function
          result = eval(function_name + '(*__args)', context)
        File "<string>", line 1, in <module>
        File "PRESUBMIT.py", line 314, in CheckChangeOnCommit
          errs.extend(CheckModesMatch(input_api, output_api))
        File "PRESUBMIT.py", line 283, in CheckModesMatch
          ax_modes_in_js = GetAccessibilityModesFromFile(
        File "PRESUBMIT.py", line 245, in GetAccessibilityModesFromFile
          for line in open(fullpath).readlines():
      FileNotFoundError: [Errno 2] No such file or directory: 'chrome/browser/resources/accessibility/accessibility.js'
      
      With this change the exception is handled and presubmits continue after
      printing this message:
      
      Evaluation of CheckChangeOnCommit failed: [Errno 2] No such file or directory: 'chrome/browser/resources/accessibility/accessibility.js', Traceback (most recent call last):
        File "presubmit_support.py", line 1630, in _run_check_function
          result = eval(function_name + '(*__args)', context)
        File "<string>", line 1, in <module>
        File "PRESUBMIT.py", line 314, in CheckChangeOnCommit
          errs.extend(CheckModesMatch(input_api, output_api))
        File "PRESUBMIT.py", line 283, in CheckModesMatch
          ax_modes_in_js = GetAccessibilityModesFromFile(
        File "PRESUBMIT.py", line 245, in GetAccessibilityModesFromFile
          for line in open(fullpath).readlines():
      FileNotFoundError: [Errno 2] No such file or directory: 'chrome/browser/resources/accessibility/accessibility.js'
      
      That is, the crucial information regarding the failure is printed, but
      subsequent presubmits are not skipped.
      
      Bug: 1309977
      Change-Id: I7cfeda85c830e6c8e567c0df3c50f27af1dbe835
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3653978Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      10a82868
    • recipe-roller's avatar
      Roll recipe dependencies (trivial). · f69f264f
      recipe-roller authored
      This is an automated CL created by the recipe roller. This CL rolls
      recipe changes from upstream projects (recipe_engine) into this repository.
      
      The build that created this CL was
      https://ci.chromium.org/b/8812990573718281121
      
      recipe_engine:
      https://chromium.googlesource.com/infra/luci/recipes-py.git/+/e52acbc0987bdb31369aba51894b98286a418582
        e52acbc (andrewlamb@chromium.org)
            [recipes-py] roll recipe proto.
      
      More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
      
      R=iannucci@chromium.org
      
      Recipe-Tryjob-Bypass-Reason: Autoroller
      Ignore-Freeze: Autoroller
      Bugdroid-Send-Email: False
      Change-Id: I1a16c436667dfcb2a44c760e2d59ad30cf8d8a7b
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3673905
      Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      f69f264f
    • Ryan Heise's avatar
      Add Android Go support to Pinpoint CLI · b6083fac
      Ryan Heise authored
      Bug:1328653
      Change-Id: I812eae65b6ea4f5bcd01d315405e90e0b3f1e732
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3673717
      Auto-Submit: Ryan Heise <heiserya@google.com>
      Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
      Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      b6083fac