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

Issue 10019014: Convert isolate.py to exclusively use .isolate files. (Closed)

Created:
8 years, 8 months ago by M-A Ruel
Modified:
8 years, 8 months ago
CC:
chromium-reviews, pam+watch_chromium.org, erikwright (departed), cbentzel+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, csharp
Visibility:
Public.

Description

Convert isolate.py to exclusively use .isolate files. Convert base_unittests_run and net_unittests_run to use the new format. Rename isolate_files to isolate_dependency_tracked and ..._dirs to ..._untracked. Rewrite merge_isolate.py to have fully deterministic and sane behavior, especially for 'else' conditions. Convert 'python' to sys.executable when running the command. Add a lot of unit tests. Move hashtable default directory into dirname(result) + '/hashtable'. R=rogerta@chromium.org R=mark@chromium.org R=rsleevi@chromium.org BUG=98834 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131896

Patch Set 1 #

Patch Set 2 : Tested on OSX and Windows #

Patch Set 3 : Reduce copy pasted constants #

Total comments: 3

Patch Set 4 : Rebase #

Patch Set 5 : Address review comments #

Total comments: 2

Patch Set 6 : Removed DEPTH references #

Total comments: 2

Patch Set 7 : Added dependency to .isolate file #

Patch Set 8 : Fix python 2.6 support and tracing from a svn checkout #

Patch Set 9 : Fix running the test from another directory #

Patch Set 10 : Remove .svn from the _right_ list #

Patch Set 11 : Sort the keys for comparison #

Patch Set 12 : "Leave -V DEPTH until isolate.py is fixed #

Patch Set 13 : Had forgot about cacheinvalidation_unittests #

Patch Set 14 : Do not read as binary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1133 lines, -651 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -49 lines 0 comments Download
A base/base_unittests.isolate View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -46 lines 0 comments Download
A net/net_unittests.isolate View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M third_party/cacheinvalidation/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/cacheinvalidation/cacheinvalidation.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -5 lines 0 comments Download
A third_party/cacheinvalidation/cacheinvalidation_unittests.isolate View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -0 lines 0 comments Download
A tools/isolate/data/isolate/child.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
A tools/isolate/data/isolate/fail.isolate View 1 chunk +18 lines, -0 lines 0 comments Download
A + tools/isolate/data/isolate/files1/test_file1.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tools/isolate/data/isolate/files1/test_file2.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/isolate/data/isolate/missing_trailing_slash.isolate View 1 chunk +11 lines, -0 lines 0 comments Download
A tools/isolate/data/isolate/no_run.isolate View 1 chunk +13 lines, -0 lines 0 comments Download
A tools/isolate/data/isolate/non_existent.isolate View 1 chunk +10 lines, -0 lines 0 comments Download
A tools/isolate/data/isolate/ok.isolate View 1 chunk +18 lines, -0 lines 0 comments Download
D tools/isolate/data/isolate/test_file1.txt View 1 chunk +0 lines, -1 line 0 comments Download
D tools/isolate/data/isolate/test_file2.txt View 1 chunk +0 lines, -1 line 0 comments Download
M tools/isolate/isolate.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +246 lines, -143 lines 0 comments Download
M tools/isolate/isolate_smoke_test.py View 1 2 3 4 5 6 7 8 6 chunks +76 lines, -110 lines 0 comments Download
A tools/isolate/isolate_test.py View 1 1 chunk +23 lines, -0 lines 0 comments Download
M tools/isolate/merge_isolate.py View 1 2 3 4 4 chunks +270 lines, -188 lines 0 comments Download
M tools/isolate/merge_isolate_test.py View 1 2 3 4 5 6 7 1 chunk +247 lines, -104 lines 0 comments Download
M tools/isolate/trace_inputs.py View 1 2 3 4 chunks +19 lines, -4 lines 0 comments Download
M tools/isolate/trace_inputs_smoke_test.py View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
M-A Ruel
Sorry this is a pretty heavy CL but afterward they'll be much easier. This one ...
8 years, 8 months ago (2012-04-09 20:16:22 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm http://codereview.chromium.org/10019014/diff/4001/tools/isolate/isolate.py File tools/isolate/isolate.py (right): http://codereview.chromium.org/10019014/diff/4001/tools/isolate/isolate.py#newcode172 tools/isolate/isolate.py:172: # Used the skip recalculating the hash. Use ...
8 years, 8 months ago (2012-04-11 15:15:03 UTC) #2
M-A Ruel
Roger, ptal. I created 3 constants with arbitrary values instead of using numbers and modified ...
8 years, 8 months ago (2012-04-11 15:52:18 UTC) #3
Ryan Sleevi
I'm not thrilled with all the uses of <(DEPTH). Is my understanding of why it's ...
8 years, 8 months ago (2012-04-11 17:53:24 UTC) #4
M-A Ruel
ptal http://codereview.chromium.org/10019014/diff/15001/net/net_unittests.isolate File net/net_unittests.isolate (right): http://codereview.chromium.org/10019014/diff/15001/net/net_unittests.isolate#newcode10 net/net_unittests.isolate:10: '<(DEPTH)/third_party/pyftpdlib/src/pyftpdlib/ftpserver.py', On 2012/04/11 17:53:24, Ryan Sleevi wrote: > ...
8 years, 8 months ago (2012-04-11 18:22:29 UTC) #5
Mark Mentovai
Some part of GYP might actually care that the extension of an include file is ...
8 years, 8 months ago (2012-04-11 18:34:10 UTC) #6
Ryan Sleevi
GYP files LGTM. One more comment below from taking a second look at it, but ...
8 years, 8 months ago (2012-04-11 18:37:03 UTC) #7
M-A Ruel
On 2012/04/11 18:34:10, Mark Mentovai wrote: > Some part of GYP might actually care that ...
8 years, 8 months ago (2012-04-11 18:41:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/14003
8 years, 8 months ago (2012-04-11 18:43:20 UTC) #9
Mark Mentovai
maruel@chromium.org wrote: > On 2012/04/11 18:34:10, Mark Mentovai wrote: > >> Some part of GYP ...
8 years, 8 months ago (2012-04-11 18:43:32 UTC) #10
commit-bot: I haz the power
Presubmit check for 10019014-14003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-11 18:43:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/22001
8 years, 8 months ago (2012-04-11 18:54:30 UTC) #12
commit-bot: I haz the power
Presubmit check for 10019014-22001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-11 18:54:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/15029
8 years, 8 months ago (2012-04-11 18:56:46 UTC) #14
commit-bot: I haz the power
Presubmit check for 10019014-15029 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-11 18:57:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/20005
8 years, 8 months ago (2012-04-11 18:59:52 UTC) #16
commit-bot: I haz the power
Try job failure for 10019014-20005 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-11 19:29:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/20007
8 years, 8 months ago (2012-04-11 19:31:54 UTC) #18
commit-bot: I haz the power
Try job failure for 10019014-20007 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-11 20:08:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/11083
8 years, 8 months ago (2012-04-11 20:08:31 UTC) #20
commit-bot: I haz the power
Try job failure for 10019014-11083 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-11 20:47:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/10019014/14071
8 years, 8 months ago (2012-04-11 23:49:26 UTC) #22
commit-bot: I haz the power
Change committed as 131896
8 years, 8 months ago (2012-04-12 01:59:32 UTC) #23
M-A Ruel
8 years, 8 months ago (2012-04-12 12:43:58 UTC) #24
On 2012/04/12 01:59:32, I haz the power (commit-bot) wrote:
> Change committed as 131896

Sorry, I really seriously failed at properly testing this patch. :/ Anyway it's
done now. :)

Powered by Google App Engine
This is Rietveld 408576698