1. 23 Nov, 2017 2 commits
    • Andrii Shyshkalov's avatar
      git_cache: remove redundant code. · 82d8dcd6
      Andrii Shyshkalov authored
      R=iannucci@chromium.org, nodir@chromium.org
      
      Change-Id: If7d48775b01a55e884a4c1fd6c26b1ff65992f4e
      Reviewed-on: https://chromium-review.googlesource.com/786823Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
      82d8dcd6
    • Andrii Shyshkalov's avatar
      Revert "Show GIT_TRACE for git command in bot_update.py" · 25b1da95
      Andrii Shyshkalov authored
      This reverts commit 6e215cef.
      
      Reason for revert: seems to have broken bot_update 
      https://ci.chromium.org/swarming/task/39ff1814b3bb5b10?server=chromium-swarm.appspot.com
      
      Original change's description:
      > Show GIT_TRACE for git command in bot_update.py
      > 
      > GIT_TRACE=true tells us which internal git command is slow.
      > https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
      > 
      > I got following results in my local repository.
      > Let me confirm the bots show similar behavior.
      > 
      > C:\src\chromium\src>set GIT_TRACE=true
      > 
      > C:\src\chromium\src>git rebase-update
      > 21:32:36.519698 git.c:576               trace: exec: 'git-rebase-update'
      > 21:32:36.519698 run-command.c:626       trace: run_command: 'git-rebase-update'
      > 21:32:38.889848 git.c:344               trace: built-in: git 'fetch' '--multiple' 'origin'
      > 21:32:38.893846 run-command.c:626       trace: run_command: 'fetch' '--append' 'origin'
      > Fetching origin
      > 21:32:38.911858 git.c:344               trace: built-in: git 'fetch' '--append' 'origin'
      > 21:32:38.983909 run-command.c:626       trace: run_command: 'remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:32:39.002923 git.c:576               trace: exec: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:32:39.003923 run-command.c:626       trace: run_command: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:32:43.782266 run-command.c:626       trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > 21:32:43.827301 run-command.c:626       trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/'
      > remote: Counting objects: 74400, done
      > remote: Finding sources: 100% (19/19)
      > 21:35:49.348951 run-command.c:626       trace: run_command: 'unpack-objects' '--pack_header=2,19'
      > 21:35:49.368985 git.c:344               trace: built-in: git 'unpack-objects' '--pack_header=2,19'
      > remote: Total 19 (delta 1), reused 18 (delta 1)
      > Unpacking objects: 100% (19/19), done.
      > 21:35:49.597328 run-command.c:626       trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > 21:35:49.612375 git.c:344               trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > From https://chromium.googlesource.com/chromium/src
      >    e8994685157b..fd56d3ad0528  master     -> origin/master
      > 21:35:50.281845 run-command.c:1452      run_processes_parallel: preparing to run up to 1 tasks
      > 21:35:50.287848 run-command.c:1484      run_processes_parallel: done
      > 21:35:50.309865 run-command.c:626       trace: run_command: 'gc' '--auto'
      > 21:35:50.328880 git.c:344               trace: built-in: git 'gc' '--auto'
      > 21:35:50.453967 run-command.c:1452      run_processes_parallel: preparing to run up to 1 tasks
      > 21:35:50.460971 run-command.c:1484      run_processes_parallel: done
      > 21:35:50.460971 run-command.c:626       trace: run_command: 'gc' '--auto'
      > 21:35:50.480985 git.c:344               trace: built-in: git 'gc' '--auto'
      > Rebasing: direct_goma
      > Rebasing: python_pool
      > 
      > C:\src\chromium\src>git fetch
      > 21:36:23.409703 git.c:344               trace: built-in: git 'fetch'
      > 21:36:23.486758 run-command.c:626       trace: run_command: 'remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:36:23.506772 git.c:576               trace: exec: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:36:23.506772 run-command.c:626       trace: run_command: 'git-remote-https' 'origin' 'https://chromium.googlesource.com/chromium/src.git'
      > 21:36:28.542596 run-command.c:626       trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > 21:36:28.578620 run-command.c:626       trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/'
      > 21:36:28.601635 git.c:344               trace: built-in: git 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--include-tag' '--thin' 'https://chromium.googlesource.com/chromium/src.git/'
      > remote: Counting objects: 67598, done
      > remote: Finding sources: 100% (28/28)
      > 21:39:29.787441 run-command.c:626       trace: run_command: 'unpack-objects' '--pack_header=2,28'
      > 21:39:29.812462 git.c:344               trace: built-in: git 'unpack-objects' '--pack_header=2,28'
      > remote: Total 28 (delta 2), reused 20 (delta 2)
      > Unpacking objects: 100% (28/28), done.
      > 21:39:30.083690 run-command.c:626       trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > 21:39:30.108704 git.c:344               trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
      > From https://chromium.googlesource.com/chromium/src
      >    fd56d3ad0528..fbcc09282dc8  master     -> origin/master
      > 21:39:30.788186 run-command.c:1452      run_processes_parallel: preparing to run up to 1 tasks
      > 21:39:30.795191 run-command.c:1484      run_processes_parallel: done
      > 21:39:30.813200 run-command.c:626       trace: run_command: 'gc' '--auto'
      > 21:39:30.836212 git.c:344               trace: built-in: git 'gc' '--auto'
      > 
      > 
      > Bug:749709
      > Change-Id: I5b94549c42271885365c2354dc3f58399d6aebe0
      > Reviewed-on: https://chromium-review.googlesource.com/786691
      > Reviewed-by: Ryan Tseng <hinoka@chromium.org>
      > Commit-Queue: Takuto Ikuta <tikuta@google.com>
      
      TBR=hinoka@chromium.org,agable@chromium.org,tandrii@chromium.org,tikuta@google.com
      
      Change-Id: I970ddac1fd21e904c69dc18e48169d49293b1800
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Bug: 749709
      Reviewed-on: https://chromium-review.googlesource.com/786413Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
      Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
      25b1da95
  2. 22 Nov, 2017 5 commits
  3. 21 Nov, 2017 2 commits
  4. 20 Nov, 2017 1 commit
  5. 18 Nov, 2017 3 commits
  6. 17 Nov, 2017 5 commits
  7. 16 Nov, 2017 7 commits
  8. 15 Nov, 2017 2 commits
  9. 14 Nov, 2017 2 commits
  10. 13 Nov, 2017 1 commit
  11. 10 Nov, 2017 3 commits
    • Jonathan Nieder's avatar
      Do not delete users' draft comments · 1ea21322
      Jonathan Nieder authored
      Gerrit's "Set Review" API has a built-in trap:
      
       drafts (optional)
      	How draft comments are handled that are already in the
      	database but that were not also described in this input.
      
      	Allowed values are DELETE, PUBLISH, PUBLISH_ALL_REVISIONS and
      	KEEP. All values except PUBLISH_ALL_REVISIONS operate only on
      	drafts for a single revision.
      
      	If not set, the default is DELETE.
      
      That destructive default is almost never what a person wants.  Use
      KEEP instead.
      
      Noticed because "git cl try" was losing people's comments.
      
      Bug: gerrit:6812
      Change-Id: I1d09231ea23b13c925d301241bef266df2ddf1cf
      Reviewed-on: https://chromium-review.googlesource.com/764488Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
      Commit-Queue: Jonathan Nieder <jrn@google.com>
      1ea21322
    • Raphael Kubo da Costa's avatar
      presubmit: Add InputApi.CreateTemporaryFile() · f2d1615b
      Raphael Kubo da Costa authored
      Sometimes, InputApi users need to create temporary files, write to them and
      pass them to another process, like this:
      
        with input_api.tempfile.NamedTemporaryFile() as f:
          f.write('foo')
          input_api.subprocess.check_output(['/path/to/script',
              '--reading-from', f.name])
      
      While this works fine on Unix, on Windows subprocess cannot open and read
      the file while we have it open for writing.
      
      To work around this, we now offer a CreateTemporaryFile() that wraps a call
      to tempfile.NamedTemporaryFile(delete=False), and we then take care of
      removing all files created this way at the end of a presubmit run.
      
      The idea is for users to do something like this:
      
        with input_api.CreateTemporaryFile() as f:
          f.write('foo')
          f.close()
          input_api.subprocess.check_output(['/path/to/script',
              '--reading-from', f.name])
      
      with the temporary file being removed automatically in a transparent fashion
      later.
      
      Bug: 780629
      Change-Id: I0d705a5d52928a43f39a51f94a2c48d277bd5ced
      Reviewed-on: https://chromium-review.googlesource.com/758637
      Commit-Queue: Raphael Kubo da Costa (rakuco) <raphael.kubo.da.costa@intel.com>
      Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
      f2d1615b
    • Nodir Turakulov's avatar
      [gclient hooks] add .bat to vpython on windows · 0ffcc877
      Nodir Turakulov authored
      Bug: 781430
      Change-Id: Idcba016f78078aa9678b8a246e964b3dcb09a016
      Reviewed-on: https://chromium-review.googlesource.com/762389Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
      Commit-Queue: Nodir Turakulov <nodir@chromium.org>
      0ffcc877
  12. 09 Nov, 2017 5 commits
  13. 08 Nov, 2017 2 commits