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

Issue 9638020: Refactor isolate.py to be more functional and extensible (Closed)

Created:
8 years, 9 months ago by M-A Ruel
Modified:
8 years, 9 months ago
Reviewers:
csharp
CC:
chromium-reviews, pam+watch_chromium.org, Roger Tawa OOO till Jul 10th
Visibility:
Public.

Description

Refactor isolate.py to be more functional and extensible - Works around poor handling of -- in optparse. - Reuse sys.executable for python scripts. - Moved all file handling code into tree_creator.py (which is a bit illnamed). - Fixed hashtable mode to work without --outdir. - Properly save the files mode. - Properly save the file hash, only when needed. - Always save the result file in json. TBR=csharp@chromium.org BUG=98640 TEST='GYP_DEFINES="$GYP_DEFINES tests_run=hashtable" build/gyp_chromium' works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125784

Patch Set 1 #

Patch Set 2 : Rewrote most of the script #

Patch Set 3 : More extensive testing, saner mode saving, etc #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -134 lines) Patch
A tools/isolate/data/test_file1.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A tools/isolate/data/test_file2.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/isolate/isolate.py View 1 2 6 chunks +95 lines, -93 lines 4 comments Download
M tools/isolate/isolate_test.py View 1 2 9 chunks +73 lines, -20 lines 2 comments Download
M tools/isolate/tree_creator.py View 1 2 6 chunks +62 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
Dependent on http://codereview.chromium.org/9621014/
8 years, 9 months ago (2012-03-08 17:58:53 UTC) #1
M-A Ruel
GYP_DEFINES=tests_run=hashtable now archives in the output directory. Technically it'd be better to save elsewhere but ...
8 years, 9 months ago (2012-03-08 21:23:29 UTC) #2
csharp
https://chromiumcodereview.appspot.com/9638020/diff/6001/tools/isolate/isolate.py File tools/isolate/isolate.py (right): https://chromiumcodereview.appspot.com/9638020/diff/6001/tools/isolate/isolate.py#newcode51 tools/isolate/isolate.py:51: if '--' in args: Will optparse always be messing ...
8 years, 9 months ago (2012-03-08 21:53:39 UTC) #3
M-A Ruel
https://chromiumcodereview.appspot.com/9638020/diff/6001/tools/isolate/isolate.py File tools/isolate/isolate.py (right): https://chromiumcodereview.appspot.com/9638020/diff/6001/tools/isolate/isolate.py#newcode51 tools/isolate/isolate.py:51: if '--' in args: On 2012/03/08 21:53:39, csharp wrote: ...
8 years, 9 months ago (2012-03-08 21:56:40 UTC) #4
csharp
lgtm
8 years, 9 months ago (2012-03-08 22:36:59 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
8 years, 9 months ago (2012-03-09 00:35:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/9638020/6001
8 years, 9 months ago (2012-03-09 00:36:23 UTC) #7
commit-bot: I haz the power
8 years, 9 months ago (2012-03-09 03:13:06 UTC) #8
Change committed as 125784

Powered by Google App Engine
This is Rietveld 408576698