1. 16 Jul, 2019 4 commits
    • Debrian Figueroa's avatar
      Updated presubmit error message format. · 0fb33b26
      Debrian Figueroa authored
      Changed all headers in message to be the size of header 4 tags.
      
      Made sure there is always a new line after code tag(```).
      
      Change-Id: I772941a8bbf0634c9496ec648533110997e23cde
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1702293
      Commit-Queue: Debrian Figueroa <debrian@google.com>
      Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      0fb33b26
    • Raul Tambre's avatar
      fix_encoding: Do unicode type checks only on Python 2 · 65c2b1e1
      Raul Tambre authored
      The unicode type doesn't exist in Python 3, because everything's Unicode.
      
      This would resulted in the following error on Python 3:
      <Unicode console <stderr>>.write: NameError("name 'unicode' is not defined")
      
      Bug: 942522
      Change-Id: I3e90d078df64abcec2c79aa69881deea40ff7d01
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1701401Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Raul Tambre <raul@tambre.ee>
      Auto-Submit: Raul Tambre <raul@tambre.ee>
      65c2b1e1
    • Raul Tambre's avatar
      fetch: Decode gclient output if returning stdout · 43271f94
      Raul Tambre authored
      In Python 3 the output of a subprocess is bytes, so they need to be decoded to be used as a string.
      
      This previously caused the following error if there was an existing checkout during a fetch:
      Traceback (most recent call last):
        File "C:\Google\depot_tools\\fetch.py", line 318, in <module>
          sys.exit(main())
        File "C:\Google\depot_tools\\fetch.py", line 313, in main
          return run(options, spec, root)
        File "C:\Google\depot_tools\\fetch.py", line 299, in run
          if not options.force and checkout.exists():
        File "C:\Google\depot_tools\\fetch.py", line 98, in exists
          return (os.path.exists(os.path.join(gclient_root, b'.gclient')) or
        File "C:\Program Files\Python38\lib\ntpath.py", line 109, in join
          genericpath._check_arg_types('join', path, *paths)
        File "C:\Program Files\Python38\lib\genericpath.py", line 151, in _check_arg_types
          raise TypeError("Can't mix strings and bytes in path components") from None
      TypeError: Can't mix strings and bytes in path components
      
      Bug: 939847
      Change-Id: Ibf5b4923268595ba439586d688894f92696ecbb7
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1701403
      Auto-Submit: Raul Tambre <raul@tambre.ee>
      Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
      Commit-Queue: Raul Tambre <raul@tambre.ee>
      43271f94
    • Raul Tambre's avatar
      setup_color: Don't fill created string buffer with nulls · 70eba7d2
      Raul Tambre authored
      This causes an error since Python 3.5 due to a regression (https://bugs.python.org/issue32745):
      Traceback (most recent call last):
        File "C:\Google\depot_tools\metrics.py", line 267, in print_notice_and_exit
          yield
        File "C:\Google\depot_tools\gclient.py", line 3153, in <module>
          sys.exit(main(sys.argv[1:]))
        File "C:\Google\depot_tools\gclient.py", line 3136, in main
          setup_color.init()
        File "C:\Google\depot_tools\setup_color.py", line 70, in init
          buf = ctypes.create_string_buffer('\0', 1024)
        File "C:\Program Files\Python38\lib\ctypes\__init__.py", line 63, in create_string_buffer
          raise TypeError(init)
      TypeError: <Unicode console <stderr>>.write: ArgumentError("argument 2: <class 'ValueError'>: embedded null character")
      
      Simply not filling the buffer with NULLs doesn't change the behaviour.
      
      Bug: 942522
      Change-Id: I1feb81555e995597b0b70f4aee9151fea755510c
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1701402
      Auto-Submit: Raul Tambre <raul@tambre.ee>
      Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
      Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      70eba7d2
  2. 15 Jul, 2019 3 commits
  3. 12 Jul, 2019 5 commits
  4. 11 Jul, 2019 3 commits
  5. 10 Jul, 2019 3 commits
  6. 09 Jul, 2019 1 commit
    • Jesse McKenna's avatar
      Update autoninja's psutil from v5.2.2 to v5.6.2 · 3b07526a
      Jesse McKenna authored
      This incorporates a fix to psutil's calculation of
      the number of processors on Windows systems with
      more than 64 cores.
      
      Windows systems with more than 64 logical
      processors divide the processors into groups, with
      most applications using only one group, i.e. a
      portion of the actual processing power available.
      Prior to v5.4.4, psutil only counted the number of
      processors in the first processor group. This
      resulted in only partial utilization of high-
      processing-power systems.
      
      For example, on the 72-core P920, this change has
      the following effect:
      
      Before:
      > autoninja -C out\nogoma chrome
      "c:\src\depot_tools\ninja.exe" -C out\nogoma base -j 38
      
      After:
      > autoninja -C out\nogoma chrome
      "c:\src\depot_tools\ninja.exe" -C out\nogoma base -j 74
      
      Using this new version of psutil doubles the
      number of processors used for building Chrome on
      the P920 (when not using goma).
      
      A similar bug exists in ninja.exe, so using
      autoninja will be particularly important after
      this fix for users of the P920 and other systems
      with >64 cores. More fixes will be needed
      elsewhere for similar bugs - see crbug.com/980967
      for general progress.
      
      Bug: 980270
      Change-Id: I8de61a72cf95acf28ef1bcef1b0057b7b1225832
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1686081
      Commit-Queue: Jesse McKenna <jessemckenna@google.com>
      Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
      Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      3b07526a
  7. 08 Jul, 2019 1 commit
  8. 04 Jul, 2019 2 commits
  9. 03 Jul, 2019 2 commits
  10. 02 Jul, 2019 1 commit
  11. 28 Jun, 2019 2 commits
  12. 26 Jun, 2019 5 commits
  13. 25 Jun, 2019 4 commits
  14. 24 Jun, 2019 2 commits
  15. 21 Jun, 2019 1 commit
  16. 20 Jun, 2019 1 commit