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

Issue 1553993002: Add a Python parser for GN types to gn_helpers. (Closed)

Created:
4 years, 11 months ago by brettw
Modified:
4 years, 11 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a Python parser for GN types to gn_helpers. Some scripts take serialized GN values including strings and lists. These are serialized and escaped according to GN rules. In particular, the string escaping is not possible to duplicate with Python's "ast" module. This simple parser will convert values properly. Add unit tests for new code, as well as existing code in gn_helpers. Fix omissions in existing ToGNString code. BUG=573132, 571022 Committed: https://crrev.com/9dffb54bc426d84e4a2a1a6fb2989bf53237f5a2 Cr-Commit-Position: refs/heads/master@{#371000}

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 15

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -3 lines) Patch
M build/gn_helpers.py View 1 2 3 chunks +240 lines, -3 lines 0 comments Download
A build/gn_helpers_unittest.py View 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
brettw
I realize the parsing code looks like C++ but it mirrors the structure of the ...
4 years, 11 months ago (2016-01-02 21:06:12 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553993002/20001
4 years, 11 months ago (2016-01-02 21:06:51 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-02 21:30:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553993002/20001
4 years, 11 months ago (2016-01-21 18:55:43 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 11 months ago (2016-01-21 18:55:44 UTC) #12
brettw
ping
4 years, 11 months ago (2016-01-21 18:56:10 UTC) #13
Dirk Pranke
sorry for the delay (so much backlog!) ... I've started looking at this but it'll ...
4 years, 11 months ago (2016-01-21 19:43:13 UTC) #14
Dirk Pranke
lgtm w/ various nits ... https://codereview.chromium.org/1553993002/diff/20001/build/gn_helpers.py File build/gn_helpers.py (right): https://codereview.chromium.org/1553993002/diff/20001/build/gn_helpers.py#newcode91 build/gn_helpers.py:91: def UnescapeGNString(value): Is this ...
4 years, 11 months ago (2016-01-22 00:34:02 UTC) #15
brettw
https://codereview.chromium.org/1553993002/diff/20001/build/gn_helpers.py File build/gn_helpers.py (right): https://codereview.chromium.org/1553993002/diff/20001/build/gn_helpers.py#newcode91 build/gn_helpers.py:91: def UnescapeGNString(value): On 2016/01/22 00:34:02, Dirk Pranke (slow) wrote: ...
4 years, 11 months ago (2016-01-22 18:12:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553993002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553993002/40001
4 years, 11 months ago (2016-01-22 18:13:09 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-22 18:40:13 UTC) #21
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 18:43:00 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9dffb54bc426d84e4a2a1a6fb2989bf53237f5a2
Cr-Commit-Position: refs/heads/master@{#371000}

Powered by Google App Engine
This is Rietveld 408576698