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

Issue 26802002: action_derivedsourcesallinone.py: Fix Python style and conditional bug (Closed)

Created:
7 years, 2 months ago by Nils Barth (inactive)
Modified:
7 years, 2 months ago
Reviewers:
haraken, eseidel
CC:
blink-reviews, yaar, kouhei (in TOK), do-not-use, kihong
Visibility:
Public.

Description

action_derivedsourcesallinone.py: Fix Python style and conditional bug This fixes Python style in action_derivedsourcesallinone.py per Eric's request: https://codereview.chromium.org/24053003/#msg35 It also makes the code more Pythonic and a bit better-factored, though it's admittedly not esp. beautiful. I also noticed that the code was broken, due mostly to a wrong regex, so I've fixed that so it now inserts if/endif conditionals into derived sources. HOWEVER, this makes linking fail (in SVGs), so turned off for now. (This hasn't worked for a while.) The code is fixed, so it's just a question of figuring out the conditional problem and turning it back on (or removing this code). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159445

Patch Set 1 #

Patch Set 2 : Polished #

Patch Set 3 : Exceptions #

Total comments: 2

Patch Set 4 : makedirs #

Patch Set 5 : Revised, finalized #

Patch Set 6 : Turn *off* conditionals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -103 lines) Patch
M Source/build/scripts/action_derivedsourcesallinone.py View 1 2 3 4 5 2 chunks +90 lines, -103 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nils Barth (inactive)
Hi Eric, Here's a cleanup to your (well-founded) nits. How does it look?
7 years, 2 months ago (2013-10-10 08:36:34 UTC) #1
Nils Barth (inactive)
BTW, haraken, as you've also hacked on this, feel free to take a look or ...
7 years, 2 months ago (2013-10-10 08:39:02 UTC) #2
haraken
LGTM Not related to your CL, I suspect that the shard number of derived sources ...
7 years, 2 months ago (2013-10-10 08:57:41 UTC) #3
Nils Barth (inactive)
On 2013/10/10 08:57:41, haraken wrote: > LGTM Thanks! (OWNERS?) > Not related to your CL, ...
7 years, 2 months ago (2013-10-10 09:00:57 UTC) #4
eseidel
lgtm https://codereview.chromium.org/26802002/diff/2/Source/build/scripts/action_derivedsourcesallinone.py File Source/build/scripts/action_derivedsourcesallinone.py (right): https://codereview.chromium.org/26802002/diff/2/Source/build/scripts/action_derivedsourcesallinone.py#newcode162 Source/build/scripts/action_derivedsourcesallinone.py:162: os.mkdir(parent_path) This probably won't do what the author ...
7 years, 2 months ago (2013-10-10 14:44:47 UTC) #5
Nils Barth (inactive)
https://codereview.chromium.org/26802002/diff/2/Source/build/scripts/action_derivedsourcesallinone.py File Source/build/scripts/action_derivedsourcesallinone.py (right): https://codereview.chromium.org/26802002/diff/2/Source/build/scripts/action_derivedsourcesallinone.py#newcode162 Source/build/scripts/action_derivedsourcesallinone.py:162: os.mkdir(parent_path) On 2013/10/10 14:44:47, eseidel wrote: > This probably ...
7 years, 2 months ago (2013-10-11 01:58:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26802002/13001
7 years, 2 months ago (2013-10-11 01:59:07 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-11 02:25:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26802002/13001
7 years, 2 months ago (2013-10-11 02:31:43 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-11 02:39:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26802002/13001
7 years, 2 months ago (2013-10-11 02:42:06 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-11 02:52:36 UTC) #12
Nils Barth (inactive)
On 2013/10/11 02:52:36, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 2 months ago (2013-10-11 03:06:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26802002/17001
7 years, 2 months ago (2013-10-11 03:07:14 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=10296
7 years, 2 months ago (2013-10-11 07:11:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26802002/17001
7 years, 2 months ago (2013-10-11 08:09:24 UTC) #16
commit-bot: I haz the power
7 years, 2 months ago (2013-10-11 11:15:40 UTC) #17
Message was sent while issue was closed.
Change committed as 159445

Powered by Google App Engine
This is Rietveld 408576698