1. 14 Oct, 2019 4 commits
  2. 12 Oct, 2019 1 commit
  3. 11 Oct, 2019 8 commits
  4. 10 Oct, 2019 4 commits
  5. 09 Oct, 2019 5 commits
  6. 08 Oct, 2019 11 commits
  7. 07 Oct, 2019 7 commits
    • Edward Lesmes's avatar
      depot_tools: Run git_cache_test and git_footers_test on windows. · ab51754c
      Edward Lesmes authored
      Bug: Some
      Change-Id: I74eef44bfe3d940c773e548e6d1035dee4cd45ae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1842638
      Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarAnthony Polito <apolito@google.com>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      ab51754c
    • Bob Haarman's avatar
      Revert "gclient_utils: buffer output as bytestrings in Annotated" · eeafa0ea
      Bob Haarman authored
      This reverts commit 5d284fdf.
      
      Reason for revert: breaks buildbots, crbug.com/1011982
      
      Original change's description:
      > gclient_utils: buffer output as bytestrings in Annotated
      > 
      > In Python 3 byestrings and normal strings can't be concatenated.
      > To fix this we buffer as bytestrings in the Annotated wrapper.
      > We can't decode to a string because the output might come byte-by-byte, so it doesn't work with Unicode characters like .
      > 
      > Also had to update gclient_test.py, where double-wrapping stdout with Annotated caused made output not work and include_zero=True working caused other unintended side-effects.
      > 
      > Example error from "fetch chromium":
      > Traceback (most recent call last):
      >   File "C:\Google\depot_tools\gclient_scm.py", line 1045, in _Clone
      >     self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
      >   File "C:\Google\depot_tools\gclient_scm.py", line 1370, in _Run
      >     gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
      >   File "C:\Google\depot_tools\gclient_utils.py", line 583, in CheckCallAndFilter
      >     show_header_if_necessary(needs_header, attempt)
      >   File "C:\Google\depot_tools\gclient_utils.py", line 533, in show_header_if_necessary
      >     stdout_write(header.encode())
      >   File "C:\Google\depot_tools\gclient_utils.py", line 391, in write
      >     obj[0] += out
      > TypeError: can only concatenate str (not "bytes") to str
      > 
      > Bug: 984182
      > Change-Id: If7037d30e9faf524f2405258281f6e6cd0bcdcae
      > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1778745
      > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      > Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
      > Auto-Submit: Raul Tambre <raul@tambre.ee>
      
      TBR=dpranke@chromium.org,ehmaldonado@chromium.org,raul@tambre.ee
      
      Change-Id: I5ea8d3249c58a3487996649a264bb5be059fe884
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: 984182
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1845500Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      eeafa0ea
    • Edward Lemur's avatar
      depot_tools: Remove buildbucket.py · 3306bbe4
      Edward Lemur authored
      Change-Id: I6b66880361a5fcbff4652b40adbe96da85ecabac
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1845819
      Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
      Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@google.com>
      3306bbe4
    • recipe-roller's avatar
      Roll recipe dependencies (trivial). · c9598be3
      recipe-roller authored
      This is an automated CL created by the recipe roller. This CL rolls recipe
      changes from upstream projects (e.g. depot_tools) into downstream projects
      (e.g. tools/build).
      
      
      More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
      recipe_engine:
        https://crrev.com/60cb7d1afaec1ce649a9d233e9575dc752881b5f scheduler: stop supporting using `properties`. (tandrii@google.com)
      
      
      TBR=iannucci@chromium.org
      
      Recipe-Tryjob-Bypass-Reason: Autoroller
      Bugdroid-Send-Email: False
      Change-Id: I068e32f1df035e83701cbc25872175fb765a9086
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1845820Reviewed-by: 's avatarRecipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
      c9598be3
    • Raul Tambre's avatar
      gclient_utils: buffer output as bytestrings in Annotated · 5d284fdf
      Raul Tambre authored
      In Python 3 byestrings and normal strings can't be concatenated.
      To fix this we buffer as bytestrings in the Annotated wrapper.
      We can't decode to a string because the output might come byte-by-byte, so it doesn't work with Unicode characters like .
      
      Also had to update gclient_test.py, where double-wrapping stdout with Annotated caused made output not work and include_zero=True working caused other unintended side-effects.
      
      Example error from "fetch chromium":
      Traceback (most recent call last):
        File "C:\Google\depot_tools\gclient_scm.py", line 1045, in _Clone
          self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
        File "C:\Google\depot_tools\gclient_scm.py", line 1370, in _Run
          gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
        File "C:\Google\depot_tools\gclient_utils.py", line 583, in CheckCallAndFilter
          show_header_if_necessary(needs_header, attempt)
        File "C:\Google\depot_tools\gclient_utils.py", line 533, in show_header_if_necessary
          stdout_write(header.encode())
        File "C:\Google\depot_tools\gclient_utils.py", line 391, in write
          obj[0] += out
      TypeError: can only concatenate str (not "bytes") to str
      
      Bug: 984182
      Change-Id: If7037d30e9faf524f2405258281f6e6cd0bcdcae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1778745
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      Auto-Submit: Raul Tambre <raul@tambre.ee>
      5d284fdf
    • Raphael Kubo da Costa's avatar
      download_from_google_storage: Decode string passed to re.search() · 5189047f
      Raphael Kubo da Costa authored
      The code in _downloader_worker_thread() does not work with Python 3:
      
      Exception in thread Thread-1:
      Traceback (most recent call last):
        File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
          self.run()
        File "/usr/lib/python3.7/threading.py", line 870, in run
          self._target(*self._args, **self._kwargs)
        File "/home/rakuco/src/depot_tools/download_from_google_storage.py", line 343, in _downloader_worker_thread
          elif re.search(r'executable:\s*1', out):
        File "/usr/lib/python3.7/re.py", line 183, in search
          return _compile(pattern, flags).search(string)
      TypeError: cannot use a string pattern on a bytes-like object
      
      Bug: 984182, 1007872
      Change-Id: I09df8169d802b010596ac4f34501b4bda805e6f7
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1844833
      Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      5189047f
    • Raphael Kubo da Costa's avatar
      download_from_google_storage: Do not call decode() on a string twice · e225ef6a
      Raphael Kubo da Costa authored
      This throws an exception when running with Python 3:
      
      Exception in thread Thread-1:
      Traceback (most recent call last):
        File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
          self.run()
        File "/usr/lib/python3.7/threading.py", line 870, in run
          self._target(*self._args, **self._kwargs)
        File "/home/rakuco/src/depot_tools/download_from_google_storage.py", line 259, in _downloader_worker_thread
          file_url = '%s/%s' % (base_url, input_sha1_sum.decode())
      AttributeError: 'str' object has no attribute 'decode'
      
      We are already calling bytes.decode() in enumerate_input(), whose output
      is passed to _downloader_worker_thread().
      
      Bug: 984182, 1007872
      Change-Id: I55c4835192caf69a8dee9e89ae1bb5531f4bacae
      Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1844832
      Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
      Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
      Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
      e225ef6a