1. 08 Jun, 2022 2 commits
  2. 07 Jun, 2022 6 commits
  3. 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
  4. 03 Jun, 2022 5 commits
  5. 02 Jun, 2022 5 commits
  6. 01 Jun, 2022 7 commits
  7. 31 May, 2022 4 commits
  8. 27 May, 2022 7 commits
  9. 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
  10. 25 May, 2022 2 commits