Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Issue 180243006: Make gclient_scm.py use cache_dir (Closed)

Created:
6 years, 10 months ago by Ryan Tseng
Modified:
6 years, 9 months ago
Reviewers:
agable
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, iannucci
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Make gclient_scm.py use cache_dir Instead of having custom logic for dealing with cache directories, use git_cache.py to populate caches. Also fixes a bug in git_cache.py where it was looking for lockfiles in cwd rather than the cache dir. Other changes: * _Run now returns output. * Always print to stdout in CheckCallAndFilterOutput, even if it gets a carriage return. This is done because git progress report are carriage returns and not newlines and we don't want everything on the same line and not strip out the CRs. * Removed members changed tests, its not very useful to know a new import is added. BUG=339171 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=254248

Patch Set 1 #

Patch Set 2 : Also break the config lock while we're at it, and remove the CPU limit #

Total comments: 5

Patch Set 3 : Review fix, also deleted members changed test #

Total comments: 9

Patch Set 4 : Remove cache_locks, also more membership tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -194 lines) Patch
M gclient.py View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M gclient_scm.py View 1 2 3 6 chunks +6 lines, -111 lines 0 comments Download
M gclient_utils.py View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M git_cache.py View 1 2 chunks +6 lines, -2 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 2 chunks +0 lines, -53 lines 0 comments Download
M tests/gclient_utils_test.py View 1 2 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ryan Tseng
6 years, 10 months ago (2014-02-26 01:46:05 UTC) #1
agable
https://codereview.chromium.org/180243006/diff/10001/gclient.py File gclient.py (left): https://codereview.chromium.org/180243006/diff/10001/gclient.py#oldcode1832 gclient.py:1832: if os.environ.get('CHROME_HEADLESS') == '1': This seems dangerous until we're ...
6 years, 10 months ago (2014-02-26 22:43:11 UTC) #2
Ryan Tseng
Re-upped +Robbie FYI for gclient_utils_test.py https://codereview.chromium.org/180243006/diff/10001/gclient.py File gclient.py (left): https://codereview.chromium.org/180243006/diff/10001/gclient.py#oldcode1832 gclient.py:1832: if os.environ.get('CHROME_HEADLESS') == '1': ...
6 years, 9 months ago (2014-02-27 23:31:40 UTC) #3
agable
https://codereview.chromium.org/180243006/diff/30001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/180243006/diff/30001/gclient_scm.py#newcode150 gclient_scm.py:150: cache_dir = None ...I don't see *any* code in ...
6 years, 9 months ago (2014-02-28 02:06:32 UTC) #4
Ryan Tseng
Removed more membership changed tests, this time in gclient_scm.py. They're silly tests that don't test ...
6 years, 9 months ago (2014-02-28 02:22:50 UTC) #5
agable
https://codereview.chromium.org/180243006/diff/30001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/180243006/diff/30001/gclient_scm.py#newcode150 gclient_scm.py:150: cache_dir = None On 2014/02/28 02:22:50, Ryan T. wrote: ...
6 years, 9 months ago (2014-02-28 02:38:24 UTC) #6
agable
lgtmshipitshipit
6 years, 9 months ago (2014-02-28 21:57:56 UTC) #7
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 9 months ago (2014-02-28 22:00:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@google.com/180243006/50001
6 years, 9 months ago (2014-02-28 22:00:38 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 22:02:32 UTC) #10
Message was sent while issue was closed.
Change committed as 254248

Powered by Google App Engine
This is Rietveld 408576698