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

Issue 1126193005: Check for inputs not generated by deps (Closed)

Created:
5 years, 7 months ago by brettw
Modified:
5 years, 6 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina, Dirk Pranke
Base URL:
https://chromium.googlesource.com/chromium/src.git@data
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check for inputs not generated by deps Adds a check in GN that looks for generated input files on a target that were not generated by a dependency of the current target. In order to depend on the output of a previous target, that target must be in your deps. This adds checking output files to "gn refs" to help in debugging these issues. Relaxes a wider range of checking when doing introspection commands like "desc", "refs", and "ls" so they can be run to debug such issues. Adds an additional test helper for setting up test targets that saves some code. Use this in the target unittests. Committed: https://crrev.com/56affab3b067e55d692281864d98a78a96aa21cc Cr-Commit-Position: refs/heads/master@{#332925}

Patch Set 1 #

Patch Set 2 : tests #

Patch Set 3 : comment #

Total comments: 6

Patch Set 4 : review comments #

Patch Set 5 : v2 #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : better messaging #

Patch Set 9 : error count #

Total comments: 2

Patch Set 10 : Find internal outputs #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -205 lines) Patch
M tools/gn/action_values.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/build_settings.h View 2 chunks +14 lines, -0 lines 0 comments Download
M tools/gn/build_settings.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M tools/gn/command_args.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/gn/command_desc.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/command_gen.cc View 1 2 3 4 5 6 7 8 9 3 chunks +87 lines, -0 lines 0 comments Download
M tools/gn/command_ls.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/command_refs.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -4 lines 0 comments Download
M tools/gn/filesystem_utils.h View 1 chunk +8 lines, -4 lines 0 comments Download
M tools/gn/filesystem_utils.cc View 1 chunk +9 lines, -5 lines 0 comments Download
M tools/gn/function_write_file.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -3 lines 0 comments Download
M tools/gn/function_write_file_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M tools/gn/scheduler.h View 1 2 3 4 5 3 chunks +29 lines, -1 line 0 comments Download
M tools/gn/scheduler.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M tools/gn/setup.h View 2 chunks +0 lines, -12 lines 0 comments Download
M tools/gn/setup.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -5 lines 0 comments Download
M tools/gn/target.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -1 line 0 comments Download
M tools/gn/target.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +101 lines, -6 lines 0 comments Download
M tools/gn/target_unittest.cc View 1 2 3 4 5 19 chunks +148 lines, -160 lines 0 comments Download
M tools/gn/test_with_scope.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M tools/gn/test_with_scope.cc View 1 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/1
5 years, 7 months ago (2015-05-14 20:13:45 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-14 20:30:27 UTC) #4
brettw
5 years, 7 months ago (2015-05-14 22:40:27 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/40001
5 years, 7 months ago (2015-05-14 22:55:10 UTC) #8
scottmg
lgtm https://codereview.chromium.org/1126193005/diff/40001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/1126193005/diff/40001/tools/gn/target.cc#newcode80 tools/gn/target.cc:80: for (const OutputFile& cur : target->computed_outputs()) { (this ...
5 years, 7 months ago (2015-05-14 23:04:05 UTC) #9
brettw
https://codereview.chromium.org/1126193005/diff/40001/tools/gn/target.cc File tools/gn/target.cc (right): https://codereview.chromium.org/1126193005/diff/40001/tools/gn/target.cc#newcode80 tools/gn/target.cc:80: for (const OutputFile& cur : target->computed_outputs()) { In this ...
5 years, 7 months ago (2015-05-14 23:21:03 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/60001
5 years, 7 months ago (2015-05-14 23:24:08 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-14 23:41:39 UTC) #15
brettw
Scott: you may want to take another look, this moved around a bunch. The Target ...
5 years, 7 months ago (2015-05-18 18:26:07 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/120001
5 years, 7 months ago (2015-05-18 18:26:38 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-18 20:05:12 UTC) #21
scottmg
lgtm https://codereview.chromium.org/1126193005/diff/160001/tools/gn/target_unittest.cc File tools/gn/target_unittest.cc (right): https://codereview.chromium.org/1126193005/diff/160001/tools/gn/target_unittest.cc#newcode549 tools/gn/target_unittest.cc:549: scheduler.ClearUnknownGeneratedInputsAndWrittenFiles(); seems like making a new scheduler rather ...
5 years, 7 months ago (2015-05-19 17:10:41 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/200001
5 years, 6 months ago (2015-06-04 20:29:47 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-04 21:00:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1126193005/200001
5 years, 6 months ago (2015-06-04 21:53:19 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 6 months ago (2015-06-04 22:01:18 UTC) #30
commit-bot: I haz the power
5 years, 6 months ago (2015-06-04 22:02:16 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/56affab3b067e55d692281864d98a78a96aa21cc
Cr-Commit-Position: refs/heads/master@{#332925}

Powered by Google App Engine
This is Rietveld 408576698