1. 07 Jun, 2022 1 commit
  2. 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
  3. 03 Jun, 2022 5 commits
  4. 02 Jun, 2022 5 commits
  5. 01 Jun, 2022 7 commits
  6. 31 May, 2022 4 commits
  7. 27 May, 2022 7 commits
  8. 26 May, 2022 1 commit
    • Bruce Dawson's avatar
      Optimize presubmit --all with --no_diffs option · 09c0c073
      Bruce Dawson authored
      Some of the expensive checks when running presubmit --all, such as
      CheckStableMojomChanges (~300 s) and CheckAddedDepsHaveTargetApprovals
      (~200 s) only look at diffs and are therefore guaranteed to be NOPs when
      running presubmit --all or --files=. Passing along the no_diffs state
      lets these expensive checks be skipped, thus allowing for faster
      iteration times.
      
      Initial testing suggests that (with some supporting changes in the
      Chromium repo) this reduces "presubmit --all" times by about ten
      minutes, or a bit more than 10%, and additional improvements may be
      possible.
      
      Special handling for the no-diffs case also offers a simple way to avoid
      presubmit failures that happen whenever all files are flagged as being
      changed.
      
      Finally, and perhaps most importantly for having a presubmit --all bot,
      when --no_diffs is passed we can treat errors like "Issue wasn't
      uploaded" and "Add a description to the CL" as messages, thus making it
      possible to have zero presubmit errors when run on origin/main.
      
      Bug: 1320937, 1322936
      Change-Id: I0d09dd4aae8fdaa48c8b2f89337441cf96dcff72
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3628368
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      Reviewed-by: 's avatarGavin Mak <gavinmak@google.com>
      09c0c073
  9. 25 May, 2022 3 commits
  10. 24 May, 2022 4 commits
  11. 23 May, 2022 2 commits
    • recipe-roller's avatar
      Roll recipe dependencies (trivial). · 98ed2d20
      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/8813337018642090161
      
      recipe_engine:
      https://chromium.googlesource.com/infra/luci/recipes-py.git/+/ebae866e0d063e60924ab575d39b5c1e222bfe0d
        ebae866 (mohrr@google.com)
            [url] Correct default step name in docstrings
      
      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: Ic2f9e599f439ff9b0ca91314df474b01572112b9
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3661511
      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>
      98ed2d20
    • Bruce Dawson's avatar
      Improve cpplint defaults · 00de780a
      Bruce Dawson authored
      While enabling cpplint on base I found an extraneous error and an overly
      complicated invocation of CheckChangeLintsClean. This change disables
      the extraneous error and improves the file filtering defaults to make it
      easier to invoke cpplint.
      
      The warning was:
      
          base\win\win_util.cc(193):  Missing username in TODO; it should look
          like "// TODO(my_username): Stuff."  [readability/todo] [2]
      
      Chromium has over 10,000 TODO comments that are links to bugs instead of
      users so we clearly want to suppress this warning.
      
      Most calls to CheckChangeLintsClean in Chromium pass in custom file
      filtering in order to only analyze C++ files. Failing to pass a file
      filter leads to errors like this:
      
          Ignoring base\win\embedded_i18n\create_string_rc.py; not a valid
          file name (cc, cuh, cu, cpp, h)
          Ignoring c:\src\chromium\src\components\arc\PRESUBMIT.py; not a
          valid file name (cu, cc, cuh, cpp, h)
      
      It doesn't make sense for the canned checks version of
      CheckChangeLintsClean to default to passing in files that cpplint will
      complain about so if source_file_filter is None then I configure an
      appropriate filter.
      
      This change also switches to vs7 output format by default on Windows,
      and deletes a trailing space.
      
      Bug: 1309977
      Change-Id: I342ca9e56a41502755dfc09307b441dfa6a48ec0
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3655592Reviewed-by: 's avatarWill Harris <wfh@chromium.org>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      00de780a