1. 29 Jun, 2022 2 commits
  2. 28 Jun, 2022 2 commits
  3. 27 Jun, 2022 3 commits
  4. 24 Jun, 2022 2 commits
  5. 23 Jun, 2022 3 commits
  6. 22 Jun, 2022 3 commits
  7. 21 Jun, 2022 1 commit
  8. 17 Jun, 2022 2 commits
    • dan sinclair's avatar
      Add some c++17 headers to the list of known headers. · 9a3c4bc6
      dan sinclair authored
      This CL updates cpplint.py to add some of the c++17 header files to the
      list of known c++ headers. We're specifically using optional and variant
      in the Tint project and would like to remove the NOLINT lines necessary
      to keep the linter happy.
      
      Bug: dawn:1379
      Change-Id: I41cacd21e0742f992cdd6913b7f4def556b543c5
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3709241
      Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
      Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
      Commit-Queue: Josip Sokcevic <sokcevic@google.com>
      9a3c4bc6
    • Bruce Dawson's avatar
      Mitigate Python 3 multiprocessing bug on Windows · 8254f06b
      Bruce Dawson authored
      The multiprocessing module on Windows has a bug where if you ask for
      more than 60 child processes then it will hang. This is related to the
      MAXIMUM_WAIT_OBJECTS (64) limit of WaitForMultipleObjects. Other sources
      have listed the multiprocessing limit as being 61, or have said that the
      the maximum number of objects that can be waited on is actually 63, but
      those details don't really matter.
      
      The original fix for this class of issues was crrev.com/c/2785844. This
      change extends those fixes to depot_tools, which was missed last year.
      This change also updates how PyLint is called by further limiting the
      number of jobs to the number of files being processed divided by 10.
      This is because there is a significant cost to creating PyLint
      subprocesses - each takes about 0.5 s on my test machine. So there needs
      to be enough parallelism to justify this.
      
      Patches for PyLint and a bug for cpython are planned.
      
      This will stop PyLint from hanging during presubmits on many-core
      machines. The command used to reproduce the hangs and validate the fix
      was:
      
        git cl presubmit -v --force --files "chrome/test/mini_installer/*.py"
      
      Prior to this change this command would use (on my many-core test
      machine) 96 processes and would hang. How it uses just two processes
      because there are only 16 files to analyze.
      
      Output before:
        Pylint (16 files using ['--disable=cyclic-import'] on 96 cores)
      Output after:
        Pylint (16 files using ['--disable=cyclic-import'] on 2 processes)
      
      This is actually not quite true because the hang would prevent the
      old message from being displayed.
      
      Bug: 1190269, 1336854
      Change-Id: Ie82baf91df4364a92eb664a00cf9daf167e0a548
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3711282Reviewed-by: 's avatarGavin Mak <gavinmak@google.com>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      8254f06b
  9. 16 Jun, 2022 6 commits
  10. 15 Jun, 2022 3 commits
  11. 14 Jun, 2022 2 commits
  12. 13 Jun, 2022 2 commits
    • Aravind Vasudevan's avatar
      Add protocol_override entry to .gclient · 810598d1
      Aravind Vasudevan authored
      The meta quest browser has an issue with the initial design where the all the dependencies within the same tree are overridden with the solution URL's scheme. This fix updates fetch to add a .gclient entry instead of implicitly overriding the URL's scheme.
      
      Bug: 1336027
      Change-Id: Iabe5b9017f6eb9e682a0c721f43dd5f347ffcbfb
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3703942Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
      Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com>
      810598d1
    • Aleksey Khoroshilov's avatar
      Reland "Make depot_tools scripts return exit codes properly on all platforms." · 544594e0
      Aleksey Khoroshilov authored
      This reverts commit 6754c49e.
      
      Reason for revert: will be relanded with fixed batch comments that triggered parser error.
      
      Original change's description:
      > Revert "Make depot_tools scripts return exit codes properly on all platforms."
      >
      > This reverts commit 7c4f7ec4.
      >
      > Reason for revert: bugs reported by users (see comments in Gerrit).
      > error: block. was unexpected at this time.
      >
      > Original change's description:
      > > Make depot_tools scripts return exit codes properly on all platforms.
      > >
      > > Changes:
      > > 1. Windows: exit /b %errorlevel% should be used instead of goto :EOF to get valid exit codes during cmd /c <script>.bat invocation.
      > > 2. Windows: delayed var expansion is required in update_depot_tools.bat exit code generation.
      > > 3. Posix: update_depot_tools returns exit code from update_git_repo function in case of a failure.
      > >
      > > A rule of thumb on Windows: goto :EOF should not be used if %errorlevel% must be returned for all possible invocations.
      > >
      > > Test case for update_depot_tools changes:
      > > 1. Make a change to depot_tools sources that will conflict with next depot_tools update
      > > 2. Run update_depot_tools either directly or via gclient
      > > 3. Expect a git error is triggered
      > > 4. Inspect %errorlevel% or $? depending on platform
      > > 5. Expected 1, but the actual result is 0.
      > >
      > > Test case for changes in other .bat files:
      > > 1. Make a change to depot_tools sources that will conflict with next depot_tools update
      > > 2. Run cmd /c gclient
      > > 3. Expect a git error is triggered
      > > 4. Inspect %errorlevel%
      > > 5. Expected 1, but the actual result is 0.
      > >
      > > Change-Id: I64459982bcd9cc3db1319a9b39224b7a7af8c5aa
      > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3688632
      > > Reviewed-by: Josip Sokcevic <sokcevic@google.com>
      > > Commit-Queue: Josip Sokcevic <sokcevic@google.com>
      > > Auto-Submit: Aleksey Khoroshilov <akhoroshilov@brave.com>
      > > Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
      >
      > Change-Id: I85d598af01d75588cdee77165d6af22270ee031d
      > No-Presubmit: true
      > No-Tree-Checks: true
      > No-Try: true
      > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3694139
      > Auto-Submit: Josip Sokcevic <sokcevic@google.com>
      > Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
      
      Change-Id: I377f966ea1b1a567de815caca703b5e124a76b64
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3696396Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
      Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
      Commit-Queue: Josip Sokcevic <sokcevic@google.com>
      Auto-Submit: Aleksey Khoroshilov <akhoroshilov@brave.com>
      544594e0
  13. 10 Jun, 2022 2 commits
    • recipe-roller's avatar
      Roll recipe dependencies (trivial). · 6fbb7442
      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/8811716339900330657
      
      recipe_engine:
      https://chromium.googlesource.com/infra/luci/recipes-py.git/+/dfb53acac971bed26ea89cbeeedd748de5ca7938
        dfb53ac (jkusuma@google.com)
            Update resultdb recipe module to support gcs uri.
      
      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: I873e31a9bd0d955f7f04b11305874c6f083840e3
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3699409
      Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      6fbb7442
    • Bruce Dawson's avatar
      Report when vpython (Python 2) is run during presubmits · f2b0421f
      Bruce Dawson authored
      While all Chromium PRESUBMIT.py scripts have been running on Python 2
      for a long time they continue to invoke child scripts under Python 2.
      Part of the reason for slow progress on this transition is that it is
      not easy to tell that this is happening, and most developers probably
      assume that Python 3 presubmits implies a lack of Python 2.
      
      This change adds a warning when it detects Python 2 scripts being run.
      Typical output (edited for clarity) looks like this:
      
        git cl presubmit --files "chrome/updater/tools/*;ppapi/generators/*"
      ...
        Python 2 scripts were run during Python 3 presubmits. Please ask ??? if help is needed in preventing this.
         "depot_tools\pylint-1.5" --args-on-stdin from chrome\updater\tools \
         "depot_tools\pylint-1.5" --args-on-stdin from chrome\updater\tools \
         idl_tests.py from ppapi\generators
      
      If Python 2 scripts launch child scripts, especially if they use
      sys.executable, then they will not be reported. However this is a good
      thing because it means that the report focuses on the top-level scripts
      that drive Python 2 usage.
      
      This change works by modifying vpython.bat to write invocation
      information to a text file. The data in this text file is picked up by
      presubmit_support.py when it finishes running a set of presubmits.
      
      Bug: 1313804
      Change-Id: Ic632b38eae07eca2e02e94358305cc9c998818e9
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3699002Reviewed-by: 's avatarGavin Mak <gavinmak@google.com>
      Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
      f2b0421f
  14. 09 Jun, 2022 4 commits
  15. 08 Jun, 2022 3 commits