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

Issue 1907613002: GN flag to fail for unused build args. (Closed)

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

Description

GN flag to fail for unused build args. This flag was requested by ChromeOS so their bot can notice if their build's args gets out of sync with Chrome's build files. Also removes printing all possible build args on this error because we've gotten so many that's it's several screen-fulls of text and you can't even read the error. BUG=605199 Committed: https://crrev.com/12985c01ad47c1366920941f837fc2f323480c0e Cr-Commit-Position: refs/heads/master@{#389407}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -21 lines) Patch
M tools/gn/args.cc View 1 chunk +2 lines, -15 lines 0 comments Download
M tools/gn/docs/reference.md View 2 chunks +25 lines, -2 lines 0 comments Download
M tools/gn/setup.cc View 1 chunk +6 lines, -2 lines 1 comment Download
M tools/gn/switches.h View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/switches.cc View 2 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (11 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/1907613002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907613002/1
4 years, 8 months ago (2016-04-20 20:10:29 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/215762)
4 years, 8 months ago (2016-04-20 21:18:31 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/1907613002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907613002/1
4 years, 8 months ago (2016-04-20 22:04:07 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/215925)
4 years, 8 months ago (2016-04-20 23:14:22 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/1907613002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907613002/1
4 years, 8 months ago (2016-04-20 23:38:42 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 00:28:53 UTC) #14
brettw
4 years, 8 months ago (2016-04-21 20:48:30 UTC) #15
Dirk Pranke
lgtm though I'd prefer it if we failed by default (as noted below). https://codereview.chromium.org/1907613002/diff/1/tools/gn/setup.cc File ...
4 years, 8 months ago (2016-04-23 01:27:17 UTC) #16
brettw
On 2016/04/23 01:27:17, Dirk Pranke wrote: > lgtm though I'd prefer it if we failed ...
4 years, 8 months ago (2016-04-24 17:36:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907613002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907613002/1
4 years, 8 months ago (2016-04-24 17:52:56 UTC) #19
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-24 19:03:32 UTC) #21
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/12985c01ad47c1366920941f837fc2f323480c0e Cr-Commit-Position: refs/heads/master@{#389407}
4 years, 8 months ago (2016-04-24 19:05:01 UTC) #23
Nico
4 years, 6 months ago (2016-06-13 11:35:19 UTC) #24
Message was sent while issue was closed.
On 2016/04/23 01:27:17, Dirk Pranke wrote:
> lgtm though I'd prefer it if we failed by default (as noted below).
> 
> https://codereview.chromium.org/1907613002/diff/1/tools/gn/setup.cc
> File tools/gn/setup.cc (right):
> 
> https://codereview.chromium.org/1907613002/diff/1/tools/gn/setup.cc#newcode342
> tools/gn/setup.cc:342: return true;
> I actually feel (reasonably strongly) that we should fail on unused args by
> default, and have the switch *disable* that behavior, at least until we get a
> lot more feedback that this is unworkable.
> 
> Or, at least, I would say that should be the default and then configurable per
> repo via the dotfile.
> 
> But, I don't feel so strongly about this that I won't approve this CL.

I too think this should be an error, not a warning. (This just being a warning
caused us to miss that mb sets v8_target_cpu instead of v8_target_arch until
machenbach happened to notice that in
https://bugs.chromium.org/p/chromium/issues/detail?id=619503#c1)

Powered by Google App Engine
This is Rietveld 408576698