New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 731489 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: ----



Sign in to add a comment

Problems with mojo*.js files not being included as data_deps for content_shell & Layout Tests

Project Member Reported by tansell@chromium.org, Jun 9 2017

Issue description

The Layout Tests on Mac need the *.mojo*js files to run correctly. They appear to not being included as a data_dep by the build files and hence when we swarm the Layout Tests for Mac we don't get them included in the isolate.

As a temporary work around fix I landed https://codereview.chromium.org/2926843002/ which does the following and makes things work;
----------------------------------------
diff --git a/content/shell/BUILD.gn b/content/shell/BUILD.gn
index 2f2d607..02f6d47 100644
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -500,6 +500,9 @@
       "@executable_path/../",
     ]
     info_plist_target = ":content_shell_plist"
+    data_deps = [
+      ":content_shell_lib",
+    ]
   }
 } else {
   executable("content_shell") {
----------------------------------------

However, I'm pretty sure this is not the correct fix. 

 
Cc: mcgreevy@chromium.org jeffcarp@chromium.org qyears...@chromium.org
Components: Blink>LayoutTests
Labels: Test-Layout
Cc: yzshen@chromium.org
Owner: roc...@chromium.org
Status: Assigned (was: Untriaged)
I think the problem is that the data dependencies of content_shell_lib normally end up as bundle data in the content_shell_framework and don't propagate out into the enclosing targets like they would on Linux.

rockot@, yzshen@, I think this is actually the inverse of the problem we were looking at last week, where the dependencies were getting specified even though they weren't needed, though they have the same cause.

And, I think the right fix is likely to make //:webkit_layout_tests depend on the generated mojo JS bindings directly.
dpranke@'s suggestion in #3 to make it a {data_,}deps of webkit_layout_tests SGTM. The temporary patch doesn't make conceptual sense from a build-system perspective.
Owner: rockot@google.com
Cc: -roc...@chromium.org rockot@google.com
Labels: Pri-2
Setting defect without priority to Pri-2.

Sign in to add a comment