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

Issue 1220223002: Add output reference to gen written files. (Closed)

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

Description

Add output reference to gen written files. By adding the outputs written at gn gen time to the build.ninja representation the build tool (ninja) can know how to recreate them if and when necessary. For example, if one or more of the <blah>.tmp files is removed, even as part of an entire hierarchy/subtree currently the build fails because ninja does not know how to re-make it. BUG=469621 TEST=Build time only. See https://code.google.com/p/chromium/issues/detail?id=469621#c3 Committed: https://crrev.com/517ac52f86903beb206b19e6ddeedbc709b253a1 Cr-Commit-Position: refs/heads/master@{#338929}

Patch Set 1 #

Patch Set 2 : Add restat to gn rule. #

Total comments: 3

Patch Set 3 : Remove dependency hack at the same time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M tools/gn/function_write_file.cc View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 1 chunk +12 lines, -3 lines 0 comments Download
M tools/gn/scheduler.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gn/scheduler.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
Peter Mayo
PTAL. It seems this change doesn't change the existing unittests (they still pass). It's not ...
5 years, 5 months ago (2015-07-02 22:32:15 UTC) #2
tfarina
Could you describe in the CL description what problem this solves? And possibly describe the ...
5 years, 5 months ago (2015-07-03 00:31:04 UTC) #3
Peter Mayo
On 2015/07/03 00:31:04, tfarina wrote: > Could you describe in the CL description what problem ...
5 years, 5 months ago (2015-07-03 14:08:41 UTC) #4
Peter Mayo
On 2015/07/03 14:08:41, Peter Mayo wrote: > On 2015/07/03 00:31:04, tfarina wrote: > > Could ...
5 years, 5 months ago (2015-07-03 14:24:33 UTC) #5
tfarina
When this (removing <blah>.tmp) occurrs in practice? Is this a bot thing?
5 years, 5 months ago (2015-07-03 16:04:09 UTC) #6
Peter Mayo
On 2015/07/03 16:04:09, tfarina wrote: > When this (removing <blah>.tmp) occurrs in practice? Is this ...
5 years, 5 months ago (2015-07-03 16:29:03 UTC) #7
Peter Mayo
This change interacts badly with some of the other features of gen: ninja: Entering directory ...
5 years, 5 months ago (2015-07-06 18:40:57 UTC) #8
Peter Mayo
https://codereview.chromium.org/1220223002/diff/20001/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1220223002/diff/20001/tools/gn/ninja_build_writer.cc#newcode147 tools/gn/ninja_build_writer.cc:147: out_ << " restat = 1\n\n"; This takes care ...
5 years, 5 months ago (2015-07-06 21:03:24 UTC) #9
brettw
I don't think this is quite right. Your Ninja file makes semantic sense, but it's ...
5 years, 5 months ago (2015-07-06 21:28:19 UTC) #11
Peter Mayo
On 2015/07/06 21:28:19, brettw wrote: > I don't think this is quite right. > > ...
5 years, 5 months ago (2015-07-06 21:58:05 UTC) #12
brettw
You're right it won't get run in parallel since there's only one build rule for ...
5 years, 5 months ago (2015-07-06 22:02:43 UTC) #13
Nico
I don't understand what I'm supposed to comment on here. https://codereview.chromium.org/1220223002/diff/20001/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1220223002/diff/20001/tools/gn/ninja_build_writer.cc#newcode156 ...
5 years, 5 months ago (2015-07-07 22:32:55 UTC) #14
Nico
Ah, peter sent me an off-list email with a short explanation. I think the change ...
5 years, 5 months ago (2015-07-07 22:34:41 UTC) #15
Peter Mayo
I maintain that this is a more accurate, higher quality fix than the previously committed ...
5 years, 5 months ago (2015-07-13 16:03:35 UTC) #17
Peter Mayo
On 2015/07/13 16:03:35, Peter Mayo wrote: > I maintain that this is a more accurate, ...
5 years, 5 months ago (2015-07-14 16:08:43 UTC) #18
Peter Mayo
Remove dependency hack at the same time
5 years, 5 months ago (2015-07-14 19:33:08 UTC) #19
brettw
Since Nico says this is OK, LGTM.
5 years, 5 months ago (2015-07-15 20:55:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1220223002/40001
5 years, 5 months ago (2015-07-15 21:49:53 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-15 22:22:42 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/517ac52f86903beb206b19e6ddeedbc709b253a1 Cr-Commit-Position: refs/heads/master@{#338929}
5 years, 5 months ago (2015-07-15 22:24:32 UTC) #24
Dirk Pranke
5 years, 4 months ago (2015-07-27 23:08:34 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1255113004/ by dpranke@chromium.org.

The reason for reverting is: Looks like this doesn't quite work on Windows:

http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/....

Powered by Google App Engine
This is Rietveld 408576698