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

Issue 970203003: Add support for escaped target names in isolate driver. (Closed)

Created:
5 years, 9 months ago by nyquist
Modified:
5 years, 9 months ago
CC:
chromium-reviews, falken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for escaped target names in isolate driver. Currently the isolate_driver.py which creates the dependency files used by the isolate system, does a simple split on all spaces when trying to identify targets. This can fail if the target name contains a space in the name. In ninja, spaces are escaped with a $-prefix. An example would be 'Content$ Shell$ Helper.app'. This CL adds support for such target names and ensures that they stay as one item. BUG=462248 Committed: https://crrev.com/8fb598c1b7b9a6b944e2ec15e989e80cdf7522c0 Cr-Commit-Position: refs/heads/master@{#319356}

Patch Set 1 #

Patch Set 2 : Use list-comprehension #

Total comments: 2

Patch Set 3 : Use unicode characters instead. #

Patch Set 4 : Use negative lookbehind in a regexp split #

Patch Set 5 : Remove unnecessary newline #

Total comments: 2

Patch Set 6 : Strip out first item like before #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M tools/isolate_driver.py View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
Avi (use Gerrit)
https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py#newcode150 tools/isolate_driver.py:150: rand = str(uuid.uuid4()) Rather than uuids, can you pick ...
5 years, 9 months ago (2015-03-03 20:20:30 UTC) #2
nyquist
https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py#newcode150 tools/isolate_driver.py:150: rand = str(uuid.uuid4()) On 2015/03/03 20:20:30, Avi wrote: > ...
5 years, 9 months ago (2015-03-04 02:06:22 UTC) #3
Avi (use Gerrit)
On 2015/03/04 02:06:22, nyquist wrote: > https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py > File tools/isolate_driver.py (right): > > https://codereview.chromium.org/970203003/diff/20001/tools/isolate_driver.py#newcode150 > ...
5 years, 9 months ago (2015-03-04 02:13:29 UTC) #4
nyquist
falken: PTAL since you have done edits around this area. avi: PTAL as reporter of ...
5 years, 9 months ago (2015-03-04 02:14:17 UTC) #6
falken
Sorry I am totally unfamiliar with this file. I only reverted a change once to ...
5 years, 9 months ago (2015-03-04 07:24:40 UTC) #7
falken
+maruel, who is the original author
5 years, 9 months ago (2015-03-04 07:27:37 UTC) #9
nyquist
vadimsh: Seems like maruel is out. Care to take a look?
5 years, 9 months ago (2015-03-04 22:26:28 UTC) #11
Vadim Sh.
lgtm some serious regexp skills you have :)
5 years, 9 months ago (2015-03-04 22:57:58 UTC) #12
Vadim Sh.
https://codereview.chromium.org/970203003/diff/80001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/970203003/diff/80001/tools/isolate_driver.py#newcode147 tools/isolate_driver.py:147: return filter(using_blacklist, re.split('(?<!\$) ', item)) actually, I think you ...
5 years, 9 months ago (2015-03-04 22:58:43 UTC) #13
nyquist
vadimsh: PTAL Oh; and I believe I forgot to mention, but the reason why I ...
5 years, 9 months ago (2015-03-04 23:13:50 UTC) #14
Vadim Sh.
lgtm (sorry for delay, the email notification somhow got lost)
5 years, 9 months ago (2015-03-05 19:21:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/970203003/100001
5 years, 9 months ago (2015-03-05 22:09:02 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-05 23:10:33 UTC) #19
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8fb598c1b7b9a6b944e2ec15e989e80cdf7522c0 Cr-Commit-Position: refs/heads/master@{#319356}
5 years, 9 months ago (2015-03-05 23:11:51 UTC) #20
Marc Treib
5 years, 9 months ago (2015-03-06 15:24:05 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/985753002/ by treib@chromium.org.

The reason for reverting is: Likely broke Mac 10.9 dbg:
http://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%29....

Powered by Google App Engine
This is Rietveld 408576698