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

Issue 2049583003: Add resource locking in gclient (Closed)

Created:
4 years, 6 months ago by Ryan Tseng
Modified:
4 years, 6 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add resource locking in gclient There are entries in the DEPS file where two folders uses the same git URL (ie. freetype2). This doesn't work well with git caches because each task will run on it's own and might try to clobber on top of each other. This adds another field in a WorkItem which is a list of resources. When the work queue is flushed, it has to make sure that none of a newly added workitem has any resource conflicts. BUG=618124 Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/885e5b1ee2f72dc80668fe426b410fe6ffc44f1d

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review #

Total comments: 1

Patch Set 3 : Review and fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M gclient.py View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M gclient_utils.py View 1 3 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049583003/1
4 years, 6 months ago (2016-06-08 00:44:40 UTC) #2
Ryan Tseng
I think this will fix the issue we were seeing
4 years, 6 months ago (2016-06-08 00:45:16 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Depot Tools Presubmit on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Depot%20Tools%20Presubmit/builds/570)
4 years, 6 months ago (2016-06-08 00:50:50 UTC) #6
Sergey Berezin
Looks mostly good - just a couple of comments. Thanks! https://codereview.chromium.org/2049583003/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/2049583003/diff/1/gclient.py#newcode380 ...
4 years, 6 months ago (2016-06-08 01:28:36 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049583003/20001
4 years, 6 months ago (2016-06-08 18:36:32 UTC) #9
hinoka
https://codereview.chromium.org/2049583003/diff/1/gclient.py File gclient.py (right): https://codereview.chromium.org/2049583003/diff/1/gclient.py#newcode380 gclient.py:380: url_segments = url.split('@') On 2016/06/08 01:28:36, Sergey Berezin wrote: ...
4 years, 6 months ago (2016-06-08 18:38:46 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Depot Tools Presubmit on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Depot%20Tools%20Presubmit/builds/575)
4 years, 6 months ago (2016-06-08 18:43:03 UTC) #13
Sergey Berezin
LGTM + nit (and of course, fix the bug - see presubmit failure). Thanks! https://codereview.chromium.org/2049583003/diff/20001/gclient.py ...
4 years, 6 months ago (2016-06-08 18:50:48 UTC) #14
Ryan Tseng
Review and fix
4 years, 6 months ago (2016-06-08 19:01:26 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049583003/40001
4 years, 6 months ago (2016-06-08 19:01:32 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 19:05:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049583003/40001
4 years, 6 months ago (2016-06-08 19:16:02 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Depot Tools Presubmit on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Depot%20Tools%20Presubmit/builds/579)
4 years, 6 months ago (2016-06-08 19:23:13 UTC) #24
Ryan Tseng
4 years, 6 months ago (2016-06-08 19:25:23 UTC) #26
Ryan Tseng
+Owners plz. For various reasons, required for Win10 GCE bots.
4 years, 6 months ago (2016-06-08 21:30:04 UTC) #28
Dirk Pranke
hm. I thought we already handled this case somewhere ... lgtm if that's not the ...
4 years, 6 months ago (2016-06-08 21:32:46 UTC) #30
Ryan Tseng
Unfortunately after some digging i couldn't find any hints of this case being taken care ...
4 years, 6 months ago (2016-06-08 21:36:16 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049583003/40001
4 years, 6 months ago (2016-06-08 21:36:35 UTC) #33
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 21:40:12 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/tools/depot_tools/+/885e5b1ee2f72d...

Powered by Google App Engine
This is Rietveld 408576698