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

Issue 2492273002: GN: Always check for bad items. (Closed)

Created:
4 years, 1 month ago by brettw
Modified:
4 years, 1 month ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, Dirk Pranke, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Always check for bad items. Previous checking for most types of errors in the GN introspection commands was disabled. The reason was that it can be convenient to ask for certain types of information which GN can provide even if there are errors elsewhere in the build. Unfortunately, not checking for bad items can leave the build graph in an inconsistent state. In the case of missing dependencies, a target will never be resolved which means most of the information the tools will return about it will be missing or incorrect which is very surprising and confusing. As a result, it seems best to always ensure things are in a consistent state before running any introspection calculations. Committed: https://crrev.com/f77e13a490ea98bed6f136661fa778ba3972b8e1 Cr-Commit-Position: refs/heads/master@{#431667}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -48 lines) Patch
M tools/gn/build_settings.h View 2 chunks +0 lines, -14 lines 0 comments Download
M tools/gn/build_settings.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M tools/gn/command_analyze.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/command_args.cc View 2 chunks +0 lines, -2 lines 1 comment Download
M tools/gn/command_desc.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/command_ls.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/command_refs.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gn/setup.cc View 1 chunk +13 lines, -15 lines 0 comments Download
M tools/gn/target.cc View 1 chunk +7 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
brettw
https://codereview.chromium.org/2492273002/diff/1/tools/gn/command_args.cc File tools/gn/command_args.cc (left): https://codereview.chromium.org/2492273002/diff/1/tools/gn/command_args.cc#oldcode234 tools/gn/command_args.cc:234: setup.build_settings().set_check_for_bad_items(false); This is the only non-introspection disabling of the ...
4 years, 1 month ago (2016-11-11 18:21:49 UTC) #2
Dirk Pranke
lgtm
4 years, 1 month ago (2016-11-11 22:10:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2492273002/1
4 years, 1 month ago (2016-11-11 22:13:16 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 22:25:19 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 22:44:25 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f77e13a490ea98bed6f136661fa778ba3972b8e1
Cr-Commit-Position: refs/heads/master@{#431667}

Powered by Google App Engine
This is Rietveld 408576698