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

Issue 1431343002: Changes semantics of analyzer (Closed)

Created:
5 years, 1 month ago by sky
Modified:
5 years, 1 month ago
CC:
gyp-developer_googlegroups.com, Paweł Hajdan Jr., smut
Base URL:
https://chromium.googlesource.com/external/gyp@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

Changes semantics of analyzer Analyzer now gets two inputs: . test_targets: targets to search from. . additional_compile_targets: additional targets to search from for which we only care that the affected dependencies are returned. For output the same names are used: . test_targets: any supplied test_targets that directly or indirectly depend upon the change files. . compile_targets: minimal set of targets to build. The targets returned here are searched from the union or the supplied test_targets and additional_compile_targets. The set of targets output here are not necessarily values in either the input test_targets or additional_compile_targets, but they will be at least dependencies of those targets. This brings back logic that was removed here: https://codereview.chromium.org/1402813002 , with the following changes: . Previously what is now output as compile_targets would implicitly include anything from the 'all' target. That is no longer the case, if you want 'all' you have to specify it. . There are now two sets of supplied targets. This is necessary to handle cases where we want to take some sort of action if a target directly or indirectly depends upon a change, e.g., run a test. We want support for targets of type none here as well as just exes. . Added support for 'all'. I forked the old logic out into its own set of functions. These will be removed once we update the code that consumes this. TEST=covered by tests BUG=552146 R=dpranke@chromium.org, mark@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/70fa8bbeb2921c51b34598d3eda8e5fc485e952c

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 34

Patch Set 3 : feedback #

Patch Set 4 : compile_targets -> additional_compile_targets #

Total comments: 11

Patch Set 5 : feedback #

Total comments: 2

Patch Set 6 : fix all modified output #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -198 lines) Patch
M pylib/gyp/generator/analyzer.py View 1 2 3 4 5 12 chunks +321 lines, -63 lines 0 comments Download
M test/analyzer/gyptest-analyzer.py View 1 2 3 4 5 8 chunks +152 lines, -97 lines 0 comments Download
A + test/analyzer/gyptest-analyzer-deprecated.py View 3 chunks +35 lines, -35 lines 0 comments Download
M test/analyzer/test.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M test/analyzer/test3.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (2 generated)
sky
https://codereview.chromium.org/1431343002/diff/20001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/20001/pylib/gyp/generator/analyzer.py#newcode466 pylib/gyp/generator/analyzer.py:466: def _DoesTargetDependOn(target): This function and the next are exactly ...
5 years, 1 month ago (2015-11-10 18:41:31 UTC) #1
Dirk Pranke
Lots of comments here. Hopefully you are able to follow them all. Much of this ...
5 years, 1 month ago (2015-11-11 03:51:16 UTC) #2
Dirk Pranke
Sana (and Paweł), please take a look at my comment #2, in particular the part ...
5 years, 1 month ago (2015-11-11 03:52:28 UTC) #4
sky
New snapshot uploaded. https://codereview.chromium.org/1431343002/diff/20001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/20001/pylib/gyp/generator/analyzer.py#newcode13 pylib/gyp/generator/analyzer.py:13: compile_targets: Additional unqualified targets to search ...
5 years, 1 month ago (2015-11-11 18:38:10 UTC) #5
sky
As discussed I renamed the input parameter compile_targets to additional_compile_targets.
5 years, 1 month ago (2015-11-11 21:12:18 UTC) #6
Dirk Pranke
lgtm. I updated the CL description a bit to match the latest set of changes. ...
5 years, 1 month ago (2015-11-12 00:37:21 UTC) #8
sky
https://codereview.chromium.org/1431343002/diff/60001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/60001/pylib/gyp/generator/analyzer.py#newcode58 pylib/gyp/generator/analyzer.py:58: on "b2" and gyp is supplied "a.gyp" then "all" ...
5 years, 1 month ago (2015-11-12 00:47:23 UTC) #9
sky
Mark, did you want to review this patch?
5 years, 1 month ago (2015-11-12 00:47:34 UTC) #10
Dirk Pranke
https://codereview.chromium.org/1431343002/diff/60001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/60001/pylib/gyp/generator/analyzer.py#newcode349 pylib/gyp/generator/analyzer.py:349: # Set of Targets in |build_files|. On 2015/11/12 00:47:23, ...
5 years, 1 month ago (2015-11-12 00:48:41 UTC) #11
Dirk Pranke
Actually, one possible bug ... https://codereview.chromium.org/1431343002/diff/80001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/80001/pylib/gyp/generator/analyzer.py#newcode810 pylib/gyp/generator/analyzer.py:810: config.additional_compile_target_names) } Hm. Should ...
5 years, 1 month ago (2015-11-12 03:29:05 UTC) #12
Mark Mentovai
I’m a little swamped and this is a bit long, so I’ll trust Dirk’s review ...
5 years, 1 month ago (2015-11-12 15:12:22 UTC) #13
sky
https://codereview.chromium.org/1431343002/diff/80001/pylib/gyp/generator/analyzer.py File pylib/gyp/generator/analyzer.py (right): https://codereview.chromium.org/1431343002/diff/80001/pylib/gyp/generator/analyzer.py#newcode810 pylib/gyp/generator/analyzer.py:810: config.additional_compile_target_names) } On 2015/11/12 03:29:04, Dirk Pranke wrote: > ...
5 years, 1 month ago (2015-11-12 16:22:31 UTC) #14
sky
5 years, 1 month ago (2015-11-12 22:09:35 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
70fa8bbeb2921c51b34598d3eda8e5fc485e952c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698