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

Issue 1129773004: Fix a dependency issue w/ gn refs for android apks. (Closed)

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

Description

Fix a dependency issue w/ gn refs for android apks. One of the intermediate steps in the build process for creating Android APKs depends on the output from another intermediate step, but that dependency was not *also* declared in the 'deps' target in the GN build file. As a result, 'gn refs' (and hence 'mb analyze') would not calculate the right set of dependencies and we would incorrectly conclude that no compiles were necessary in cases where they really were needed. More details in the bug. R=cjhopman@chromium.org, brettw@chromium.org BUG=487897 Committed: https://crrev.com/0cc8f08b75ed52834b3a8a73bb645865abd9fc55 Cr-Commit-Position: refs/heads/master@{#330152}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove comment as not helpful #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M build/config/android/internal_rules.gni View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
Dirk Pranke
You can see the result of this change in http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/88012/steps/analyze/logs/stdio It *almost* worked, but unfortunately ...
5 years, 7 months ago (2015-05-14 03:02:52 UTC) #1
brettw
https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni#newcode620 build/config/android/internal_rules.gni:620: # TODO: crbug.com/487897 - __finalize needs as input a ...
5 years, 7 months ago (2015-05-14 16:42:52 UTC) #2
Dirk Pranke
https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni#newcode620 build/config/android/internal_rules.gni:620: # TODO: crbug.com/487897 - __finalize needs as input a ...
5 years, 7 months ago (2015-05-14 17:27:06 UTC) #3
brettw
On 2015/05/14 17:27:06, Dirk Pranke wrote: > https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni > File build/config/android/internal_rules.gni (right): > > https://codereview.chromium.org/1129773004/diff/1/build/config/android/internal_rules.gni#newcode620 ...
5 years, 7 months ago (2015-05-14 20:02:54 UTC) #4
Dirk Pranke
On 2015/05/14 20:02:54, brettw wrote: > On 2015/05/14 17:27:06, Dirk Pranke wrote: > > > ...
5 years, 7 months ago (2015-05-14 20:14:39 UTC) #5
Dirk Pranke
Okay, given that you've sent me the patch to test, it looks like there's no ...
5 years, 7 months ago (2015-05-14 20:53:57 UTC) #6
brettw
lgtm lgtm
5 years, 7 months ago (2015-05-14 22:58:50 UTC) #7
brettw
lgtm
5 years, 7 months ago (2015-05-14 22:58:51 UTC) #8
cjhopman
lgtm
5 years, 7 months ago (2015-05-15 18:08:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129773004/20001
5 years, 7 months ago (2015-05-15 18:22:33 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-15 18:58:51 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/0cc8f08b75ed52834b3a8a73bb645865abd9fc55 Cr-Commit-Position: refs/heads/master@{#330152}
5 years, 7 months ago (2015-05-15 18:59:47 UTC) #13
agrieve
On 2015/05/15 18:59:47, I haz the power (commit-bot) wrote: > Patchset 2 (id:??) landed as ...
5 years, 7 months ago (2015-05-15 23:54:56 UTC) #14
Dirk Pranke
5 years, 7 months ago (2015-05-15 23:59:30 UTC) #15
Message was sent while issue was closed.
On 2015/05/15 23:54:56, agrieve wrote:
> I'm not sure this captures the dependencies correctly... What I think it
should
> be:

You're correct that it doesn't capture the dependencies correctly; it's a crude
approximation.

There's actually several missing dependencies. The one you suggest is one of
them. We'll
fix it and the others in a follow-up patch, as part of turning on the actual
checks for this
in GN (you can star the associated bug if you're curious).

Powered by Google App Engine
This is Rietveld 408576698