|
|
Created:
4 years, 1 month ago by mithro Modified:
4 years, 1 month ago CC:
chromium-reviews, darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, jam, jochen+watch_chromium.org, mcgreevy_go, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptioncontent_shell: Add runtime resources into data_deps.
This is needed so isolate correctly identifies these files as runtime
dependencies for content shell (and thus webkit layout tests).
The following new files are now included in
`gn desc //out/Release //content/shell:content_shell runtime_deps`;
* content_shell.pak
* AHEM____.TTF
* GardinerModBug.ttf
* GardinerModCat.ttf
* fonts.conf
https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md#data_deps_Non_linked-dependencies
> data_deps are non-linked runtime dependencies. They are built and available
> at runtime.
The .pak and font resources are not linked but rather just needed at
runtime.
BUG=524758
Committed: https://crrev.com/08c74c994672d57ff4529c949097529e0f4c71d8
Cr-Commit-Position: refs/heads/master@{#429217}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fixing content/test/BUILD.gn too. #Patch Set 3 : Adding back //content:resources for browsertests #Patch Set 4 : Fixing other removal of //content:resources #Patch Set 5 : Missing data_deps. #Patch Set 6 : Moving the removal to another CL. #
Dependent Patchsets: Messages
Total messages: 38 (26 generated)
Description was changed from ========== content: Move runtime resources from deps into data_deps. https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and resources are not linked but rather just needed at runtime. The following files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf This is needed so isolate correctly identifies these files as runtime dependencies for layout tests. BUG=524758 ========== to ========== content_shell: Move runtime resources from deps into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ==========
tansell@chromium.org changed reviewers: + dpranke@chromium.org, jochen@chromium.org
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Hi! I'm in the process of trying to create a webkit_layout_tests target which can be isolated (see https://codereview.chromium.org/2452313003/). This requires a couple of small changes to other build targets which don't seem to be using data_deps correctly. These are the changes needed for content_shell. Tim 'mithro' Ansell
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn File content/shell/BUILD.gn (right): https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn#newc... content/shell/BUILD.gn:508: data_deps = [ Are you sure this isn't also needed as a regular dependency, so that all of the resources get compiled at the right time?
will approve once dpranke approves
lgtm
https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn File content/shell/BUILD.gn (right): https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn#newc... content/shell/BUILD.gn:508: data_deps = [ On 2016/10/28 00:25:56, Dirk Pranke wrote: > Are you sure this isn't also needed as a regular dependency, so that all of the > resources get compiled at the right time? Does anything need the :pak at compile / linking time? How would I even find this out? The trybots all seem to pass...
lgtm
On 2016/10/31 01:46:47, mithro wrote: > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn > File content/shell/BUILD.gn (right): > > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn#newc... > content/shell/BUILD.gn:508: data_deps = [ > On 2016/10/28 00:25:56, Dirk Pranke wrote: > > Are you sure this isn't also needed as a regular dependency, so that all of > the > > resources get compiled at the right time? > > Does anything need the :pak at compile / linking time? How would I even find > this out? Good question. I'd try removing the data_dep and just building content_shell, and seeing if anything else builds :pak. If not (i.e., it never gets built), then it clearly can't be needed. If it is built, you might see what else is building it and why ... `gn check` *might* catch issues, but I think it misses some for generated headers and I don't think it's enforced for everything in //content and below yet. But this doesn't need to block landing this (or at least, a change to make it also be a data dep), you just get bonus points for double-checking.
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/10/31 17:36:10, Dirk Pranke wrote: > On 2016/10/31 01:46:47, mithro wrote: > > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn > > File content/shell/BUILD.gn (right): > > > > > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn#newc... > > content/shell/BUILD.gn:508: data_deps = [ > > On 2016/10/28 00:25:56, Dirk Pranke wrote: > > > Are you sure this isn't also needed as a regular dependency, so that all of > > the > > > resources get compiled at the right time? > > > > Does anything need the :pak at compile / linking time? How would I even find > > this out? > > Good question. I'd try removing the data_dep and just building content_shell, > and > seeing if anything else builds :pak. If not (i.e., it never gets built), then it > clearly > can't be needed. If it is built, you might see what else is building it and why > ... > > `gn check` *might* catch issues, but I think it misses some for generated > headers > and I don't think it's enforced for everything in //content and below yet. > > But this doesn't need to block landing this (or at least, a change to make it > also be a data dep), > you just get bonus points for double-checking. I commented out the //content/shell:pak in content/shell/BUILD.gn but the content_shell pak was still being generated. I ended up using `gn desc --tree //out/Release //content/shell:content_shell 2>&1 | less` to discover that it was also a dependent of "test_support" in content/test/BUILD.gn -- Fixing that reference seems to prevent the pak from being built. As far as I can tell, the .pak files are *only* need at runtime and not needed as part of the build process for anything. I have no idea how to actually prove this result and I'm a bit worried they end up being needed for Mac bundles or Android apks. I'm going to take a look at splitting this CL into two; * One which adds the data_deps needed to get the correct runtime_deps output. * One which removes the duplicates from deps. Tim 'mithro' Ansell
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/11/01 07:42:28, mithro wrote: > On 2016/10/31 17:36:10, Dirk Pranke wrote: > > On 2016/10/31 01:46:47, mithro wrote: > > > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn > > > File content/shell/BUILD.gn (right): > > > > > > > > > https://codereview.chromium.org/2460503002/diff/1/content/shell/BUILD.gn#newc... > > > content/shell/BUILD.gn:508: data_deps = [ > > > On 2016/10/28 00:25:56, Dirk Pranke wrote: > > > > Are you sure this isn't also needed as a regular dependency, so that all > of > > > the > > > > resources get compiled at the right time? > > > > > > Does anything need the :pak at compile / linking time? How would I even find > > > this out? > > > > Good question. I'd try removing the data_dep and just building content_shell, > > and > > seeing if anything else builds :pak. If not (i.e., it never gets built), then > it > > clearly > > can't be needed. If it is built, you might see what else is building it and > why > > ... > > > > `gn check` *might* catch issues, but I think it misses some for generated > > headers > > and I don't think it's enforced for everything in //content and below yet. > > > > But this doesn't need to block landing this (or at least, a change to make it > > also be a data dep), > > you just get bonus points for double-checking. > > I commented out the //content/shell:pak in content/shell/BUILD.gn but the > content_shell pak was still being generated. I ended up using `gn desc --tree > //out/Release //content/shell:content_shell 2>&1 | less` to discover that it was > also a dependent of "test_support" in content/test/BUILD.gn -- Fixing that > reference seems to prevent the pak from being built. > > As far as I can tell, the .pak files are *only* need at runtime and not needed > as part of the build process for anything. I have no idea how to actually prove > this result and I'm a bit worried they end up being needed for Mac bundles or > Android apks. > > I'm going to take a look at splitting this CL into two; > * One which adds the data_deps needed to get the correct runtime_deps output. > * One which removes the duplicates from deps. Sounds good.
The CQ bit was checked by tansell@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== content_shell: Move runtime resources from deps into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ========== to ========== content_shell: Add runtime resources into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ==========
The CQ bit was unchecked by tansell@chromium.org
The CQ bit was checked by tansell@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dpranke@chromium.org, jochen@chromium.org Link to the patchset: https://codereview.chromium.org/2460503002/#ps100001 (title: "Moving the removal to another CL.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== content_shell: Add runtime resources into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ========== to ========== content_shell: Add runtime resources into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== content_shell: Add runtime resources into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 ========== to ========== content_shell: Add runtime resources into data_deps. This is needed so isolate correctly identifies these files as runtime dependencies for content shell (and thus webkit layout tests). The following new files are now included in `gn desc //out/Release //content/shell:content_shell runtime_deps`; * content_shell.pak * AHEM____.TTF * GardinerModBug.ttf * GardinerModCat.ttf * fonts.conf https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/referen... > data_deps are non-linked runtime dependencies. They are built and available > at runtime. The .pak and font resources are not linked but rather just needed at runtime. BUG=524758 Committed: https://crrev.com/08c74c994672d57ff4529c949097529e0f4c71d8 Cr-Commit-Position: refs/heads/master@{#429217} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/08c74c994672d57ff4529c949097529e0f4c71d8 Cr-Commit-Position: refs/heads/master@{#429217} |