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

Issue 228463003: Make isolate_driver.py process build.ninja and extract dependencies. (Closed)

Created:
6 years, 8 months ago by M-A Ruel
Modified:
5 years, 11 months ago
CC:
chromium-reviews, Ken Russell (switch to Gerrit)
Visibility:
Public.

Description

Make isolate_driver.py process build.ninja and extract dependencies. This uses a few assumption: - This basically breaks non-ninja build for component builds. This never worked anyway. - This assumes the file format of .ninja files. This will likely be quite obvious when this breaks. - It makes some assumptions about the build steps, for example '.so.TOC' -> '.so'. On the other hand, it creates a deterministic dependency tree, which is awesome. Technically it would work as well for non-component builds but I don't want to go this far yet. But in the end, that's the goal that nobody has to enter the binary dependencies in the .isolate files. R=csharp@chromium.org BUG=360223, 333473 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263058

Patch Set 1 #

Patch Set 2 : better doc #

Patch Set 3 : Now works on OSX and Windows #

Patch Set 4 : Lower verbosity #

Total comments: 16

Patch Set 5 : address review comments #

Total comments: 4

Patch Set 6 : better log message #

Patch Set 7 : Fix exception #

Patch Set 8 : Need to replace \ with / #

Patch Set 9 : Testing to figure out what is blowing up on win_x64_rel #

Patch Set 10 : Add rules_seen #

Patch Set 11 : Remove logging message now that it works #

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

Messages

Total messages: 32 (1 generated)
M-A Ruel
Here's the base_unittests.isolate files generated when building base_unittests_run in component build on each OS: On ...
6 years, 8 months ago (2014-04-08 16:27:53 UTC) #1
Ken Russell (switch to Gerrit)
Awesome!
6 years, 8 months ago (2014-04-08 17:39:50 UTC) #2
csharp
https://codereview.chromium.org/228463003/diff/60001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/60001/tools/isolate_driver.py#newcode41 tools/isolate_driver.py:41: the <200ms range for a complete chromium tree. As ...
6 years, 8 months ago (2014-04-08 18:05:36 UTC) #3
M-A Ruel
https://codereview.chromium.org/228463003/diff/60001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/60001/tools/isolate_driver.py#newcode41 tools/isolate_driver.py:41: the <200ms range for a complete chromium tree. As ...
6 years, 8 months ago (2014-04-08 18:51:25 UTC) #4
csharp
https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py#newcode149 tools/isolate_driver.py:149: logging.info('MIA: %s', dependency) Is this still possible?
6 years, 8 months ago (2014-04-08 20:04:57 UTC) #5
M-A Ruel
https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py#newcode149 tools/isolate_driver.py:149: logging.info('MIA: %s', dependency) On 2014/04/08 20:04:57, csharp wrote: > ...
6 years, 8 months ago (2014-04-08 20:12:42 UTC) #6
csharp
lgtm with logging nit https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py#newcode149 tools/isolate_driver.py:149: logging.info('MIA: %s', dependency) On 2014/04/08 ...
6 years, 8 months ago (2014-04-08 21:02:25 UTC) #7
M-A Ruel
https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py File tools/isolate_driver.py (right): https://codereview.chromium.org/228463003/diff/80001/tools/isolate_driver.py#newcode149 tools/isolate_driver.py:149: logging.info('MIA: %s', dependency) On 2014/04/08 21:02:25, csharp wrote: > ...
6 years, 8 months ago (2014-04-08 23:31:47 UTC) #8
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 8 months ago (2014-04-08 23:31:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/100001
6 years, 8 months ago (2014-04-08 23:33:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/100001
6 years, 8 months ago (2014-04-09 00:35:08 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/228463003/100001
6 years, 8 months ago (2014-04-09 00:59:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/100001
6 years, 8 months ago (2014-04-09 01:10:01 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/228463003/100001
6 years, 8 months ago (2014-04-09 01:30:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/100001
6 years, 8 months ago (2014-04-09 01:40:49 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/228463003/100001
6 years, 8 months ago (2014-04-09 01:51:20 UTC) #16
M-A Ruel
On 2014/04/08 23:31:47, M-A Ruel wrote: > I'll see what happens in practice and will ...
6 years, 8 months ago (2014-04-09 01:52:29 UTC) #17
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 8 months ago (2014-04-09 01:52:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/110002
6 years, 8 months ago (2014-04-09 02:01:46 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/228463003/110002
6 years, 8 months ago (2014-04-09 02:19:26 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 03:45:25 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=92686
6 years, 8 months ago (2014-04-09 03:45:25 UTC) #22
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 8 months ago (2014-04-09 12:15:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/130001
6 years, 8 months ago (2014-04-09 12:15:53 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 15:20:39 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=92780
6 years, 8 months ago (2014-04-09 15:20:39 UTC) #26
M-A Ruel
The CQ bit was checked by maruel@chromium.org
6 years, 8 months ago (2014-04-10 17:01:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/228463003/190001
6 years, 8 months ago (2014-04-10 17:02:20 UTC) #28
commit-bot: I haz the power
Change committed as 263058
6 years, 8 months ago (2014-04-10 20:04:19 UTC) #29
viettrungluu
On 2014/04/10 20:04:19, I haz the power (commit-bot) wrote: > Change committed as 263058 FYI: ...
6 years, 8 months ago (2014-04-10 20:41:05 UTC) #30
Nico
5 years, 11 months ago (2015-01-24 18:48:09 UTC) #32
Message was sent while issue was closed.
uh, this looks very sketchy to me. why not recursively look at the output of ldd
/ otool -L / whatever the windows thing is? That should be way faster, looks at
the actual source of truth, and doesn't require a hacked-up .ninja parser.

Powered by Google App Engine
This is Rietveld 408576698