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

Issue 132763002: Trying to reland the patch originally commited here: (Closed)

Created:
6 years, 11 months ago by Munjal (Google)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Trying to reland the patch originally commited here: https://codereview.chromium.org/79673003 and reverted here: https://codereview.chromium.org/120323002/ I think the build failure was because "browser" target should depend on "cast_channel_proto" so that cast_channel.pb.h is built before browser target is built. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247549

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1127 lines, -750 lines) Patch
M chrome/browser/extensions/api/cast_channel/cast_message_util.cc View 2 chunks +23 lines, -20 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.h View 11 chunks +114 lines, -75 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.cc View 14 chunks +315 lines, -213 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc View 10 chunks +675 lines, -442 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Munjal (Google)
Mark and Wez, this is the same patch as before but with one extra file: ...
6 years, 11 months ago (2014-01-09 22:58:38 UTC) #1
mark a. foltz
On 2014/01/09 22:58:38, Munjal (Google) wrote: > Mark and Wez, this is the same patch ...
6 years, 11 months ago (2014-01-09 23:15:08 UTC) #2
Munjal (Google)
I removed the BUILD file from the patch. So this patch is now identical to ...
6 years, 11 months ago (2014-01-22 18:11:24 UTC) #3
mark a. foltz
lgtm
6 years, 11 months ago (2014-01-22 21:45:53 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 11 months ago (2014-01-23 18:16:17 UTC) #5
Wez
lgtm
6 years, 11 months ago (2014-01-23 18:17:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/132763002/260001
6 years, 11 months ago (2014-01-23 18:21:05 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=194054
6 years, 11 months ago (2014-01-23 19:58:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/132763002/260001
6 years, 11 months ago (2014-01-24 18:15:28 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=194606
6 years, 11 months ago (2014-01-24 20:01:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/132763002/260001
6 years, 10 months ago (2014-01-28 21:29:09 UTC) #11
commit-bot: I haz the power
Change committed as 247549
6 years, 10 months ago (2014-01-29 00:56:39 UTC) #12
Ami GONE FROM CHROMIUM
6 years, 10 months ago (2014-01-31 07:08:40 UTC) #13
Message was sent while issue was closed.
This CL introduces a flaky build breakage.  To observe it, blow away your out/
directory and run:
./build/gyp_chromium
ninja -C out/Debug
obj/chrome/common/extensions/api/gen/chrome/common/extensions/api/api.generated_api.o

The brokenness looks like this:
In file included from gen/chrome/common/extensions/api/generated_api.cc:58:
In file included from
../../chrome/browser/extensions/api/cast_channel/cast_channel_api.h:13:
../../chrome/browser/extensions/api/cast_channel/cast_socket.h:19:10: fatal
error: 'chrome/browser/extensions/api/cast_channel/cast_channel.pb.h' file not
found
#include "chrome/browser/extensions/api/cast_channel/cast_channel.pb.h"
         ^
1 error generated.


and is caused by the fact that while  chrome/common/extensions/api/api.gyp
previously depended on cast_socket.h through cast_channel_api.h, now
cast_socket.h introduces a dependency on cast_channel_proto which isn't
accounted for in api.gyp.  The brokenness is flaky because if the build system
happens to have build cast_channel_proto before trying to build the api target,
everything will appear fine.

An easy workaround for this particular breakage is to make the 'api' target
depend on '<(DEPTH)/chrome/chrome.gyp:cast_channel_proto':
diff --git a/chrome/common/extensions/api/api.gyp
b/chrome/common/extensions/api/api.gyp
index b6dfc90..c2a1ce5 100644
--- a/chrome/common/extensions/api/api.gyp
+++ b/chrome/common/extensions/api/api.gyp
@@ -177,6 +177,7 @@
         'root_namespace': 'extensions::api',
       },
       'dependencies': [
+        '<(DEPTH)/chrome/chrome.gyp:cast_channel_proto',
         '<(DEPTH)/skia/skia.gyp:skia',
         '<(DEPTH)/sync/sync.gyp:sync',
       ],

I don't know any of this code well enough to say whether this is a proper
dependency to introduce.

Please either roll back this CL or fix the flake properly.

Powered by Google App Engine
This is Rietveld 408576698