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

Issue 2557213002: Build services as standalone executables (Closed)

Created:
4 years ago by Ken Rockot(use gerrit already)
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, kalyank, qsr+mojo_chromium.org, sadrul, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, mmoroz
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build services as standalone executables Cleans up a bunch of service manager details which exist to support the currently untenable goal of dynamically loading service binaries in a common host executable. Changes services to instead build as standalone executables, and teaches the service manager how to launch them. BUG=642879 Review-Url: https://codereview.chromium.org/2557213002 Committed: https://crrev.com/b8b2bfc86e7c3729593c14806c8d9f9fe08bb6ea Cr-Commit-Position: refs/heads/master@{#437776}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Patch Set 4 : / #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : remove DCHECKs with side effects -_- #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -1383 lines) Patch
M chrome/app/mash/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/mash/mash_runner.cc View 1 2 3 chunks +7 lines, -10 lines 0 comments Download
M chrome/test/base/mash_browser_tests_main.cc View 2 chunks +2 lines, -15 lines 0 comments Download
M chrome/test/base/mojo_test_connector.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 3 chunks +17 lines, -4 lines 0 comments Download
M services/catalog/reader.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/background/background_service_manager_main.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M services/service_manager/native_runner.h View 1 chunk +3 lines, -4 lines 0 comments Download
M services/service_manager/public/cpp/lib/service_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -6 lines 0 comments Download
M services/service_manager/public/cpp/service.h View 3 chunks +7 lines, -1 line 0 comments Download
M services/service_manager/public/cpp/service.gni View 1 2 3 4 5 chunks +34 lines, -29 lines 0 comments Download
A services/service_manager/public/cpp/standalone_service/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +63 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/standalone_service/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A + services/service_manager/public/cpp/standalone_service/linux_sandbox.h View 3 chunks +5 lines, -4 lines 0 comments Download
A + services/service_manager/public/cpp/standalone_service/linux_sandbox.cc View 1 chunk +1 line, -1 line 0 comments Download
A + services/service_manager/public/cpp/standalone_service/mach_broker.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/service_manager/public/cpp/standalone_service/mach_broker.cc View 1 chunk +1 line, -1 line 0 comments Download
A services/service_manager/public/cpp/standalone_service/main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +95 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/standalone_service/standalone_service.h View 1 chunk +25 lines, -0 lines 0 comments Download
A + services/service_manager/public/cpp/standalone_service/standalone_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +10 lines, -19 lines 0 comments Download
A services/service_manager/public/cpp/standalone_service/switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
A services/service_manager/public/cpp/standalone_service/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M services/service_manager/runner/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D services/service_manager/runner/child/BUILD.gn View 1 chunk +0 lines, -32 lines 0 comments Download
D services/service_manager/runner/child/manifest.json View 1 chunk +0 lines, -11 lines 0 comments Download
D services/service_manager/runner/child/test_native_main.h View 1 chunk +0 lines, -18 lines 0 comments Download
D services/service_manager/runner/child/test_native_main.cc View 1 chunk +0 lines, -71 lines 0 comments Download
M services/service_manager/runner/host/BUILD.gn View 1 2 3 4 5 6 4 chunks +26 lines, -64 lines 0 comments Download
D services/service_manager/runner/host/child_process.h View 1 chunk +0 lines, -15 lines 0 comments Download
D services/service_manager/runner/host/child_process.cc View 1 chunk +0 lines, -72 lines 0 comments Download
D services/service_manager/runner/host/child_process_base.h View 1 chunk +0 lines, -23 lines 0 comments Download
D services/service_manager/runner/host/child_process_base.cc View 1 chunk +0 lines, -128 lines 0 comments Download
M services/service_manager/runner/host/child_process_host.h View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M services/service_manager/runner/host/child_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +35 lines, -22 lines 0 comments Download
M services/service_manager/runner/host/child_process_host_unittest.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -3 lines 0 comments Download
A services/service_manager/runner/host/host_test_service_main.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A services/service_manager/runner/host/host_test_service_manifest.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M services/service_manager/runner/host/host_unittests.cc View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
D services/service_manager/runner/host/in_process_native_runner.h View 1 chunk +0 lines, -70 lines 0 comments Download
D services/service_manager/runner/host/in_process_native_runner.cc View 1 chunk +0 lines, -95 lines 0 comments Download
D services/service_manager/runner/host/in_process_native_runner_unittest.cc View 1 chunk +0 lines, -16 lines 0 comments Download
D services/service_manager/runner/host/linux_sandbox.h View 1 chunk +0 lines, -51 lines 0 comments Download
D services/service_manager/runner/host/linux_sandbox.cc View 1 chunk +0 lines, -169 lines 0 comments Download
D services/service_manager/runner/host/mach_broker.h View 1 chunk +0 lines, -53 lines 0 comments Download
D services/service_manager/runner/host/mach_broker.cc View 1 chunk +0 lines, -43 lines 0 comments Download
D services/service_manager/runner/host/native_library_runner.h View 1 chunk +0 lines, -38 lines 0 comments Download
D services/service_manager/runner/host/native_library_runner.cc View 1 chunk +0 lines, -105 lines 0 comments Download
M services/service_manager/runner/host/out_of_process_native_runner.h View 3 chunks +7 lines, -6 lines 0 comments Download
M services/service_manager/runner/host/out_of_process_native_runner.cc View 2 chunks +11 lines, -10 lines 0 comments Download
M services/service_manager/service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -6 lines 0 comments Download
M services/service_manager/standalone/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/service_manager/standalone/context.cc View 3 chunks +5 lines, -17 lines 0 comments Download
M services/service_manager/standalone/desktop/main_helper.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M services/service_manager/switches.h View 1 chunk +0 lines, -1 line 0 comments Download
M services/service_manager/switches.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M services/service_manager/tests/connect/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/connect/connect_test_exe.cc View 3 chunks +9 lines, -13 lines 0 comments Download
M services/service_manager/tests/lifecycle/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M services/service_manager/tests/lifecycle/lifecycle_exe.cc View 1 chunk +5 lines, -16 lines 0 comments Download
M services/service_manager/tests/lifecycle/package.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M services/service_manager/tests/service_manager/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M services/service_manager/tests/service_manager/embedder.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M services/service_manager/tests/service_manager/target.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M services/tracing/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M services/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +19 lines, -10 lines 0 comments Download
M testing/buildbot/chromium.android.json View 1 2 3 4 5 6 7 1 chunk +0 lines, -32 lines 0 comments Download

Messages

Total messages: 106 (82 generated)
Ken Rockot(use gerrit already)
4 years ago (2016-12-08 00:57:38 UTC) #4
Ben Goodger (Google)
lgtm
4 years ago (2016-12-08 01:09:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/120001
4 years ago (2016-12-08 08:55:10 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/82121)
4 years ago (2016-12-08 09:39:21 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/200001
4 years ago (2016-12-09 00:46:19 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/346834)
4 years ago (2016-12-09 01:20:51 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/220001
4 years ago (2016-12-09 04:22:24 UTC) #64
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/331660)
4 years ago (2016-12-09 04:55:59 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/260001
4 years ago (2016-12-10 01:28:43 UTC) #77
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years ago (2016-12-10 02:10:14 UTC) #80
Ken Rockot(use gerrit already)
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2566663004/ by rockot@chromium.org. ...
4 years ago (2016-12-10 04:37:18 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/280001
4 years ago (2016-12-10 07:03:58 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196546)
4 years ago (2016-12-10 08:34:37 UTC) #89
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2557213002/280001
4 years ago (2016-12-10 18:44:19 UTC) #91
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years ago (2016-12-10 19:30:16 UTC) #94
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/d65d4dc16cdd2293d44b943184fc267c7bf9ffe0 Cr-Commit-Position: refs/heads/master@{#437725}
4 years ago (2016-12-12 15:05:26 UTC) #96
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/b8b2bfc86e7c3729593c14806c8d9f9fe08bb6ea Cr-Commit-Position: refs/heads/master@{#437776}
4 years ago (2016-12-12 15:07:17 UTC) #98
aizatsky
This change breaks asan libfuzzer bot: https://build.chromium.org/p/chromium.fyi/builders/Libfuzzer%20Upload%20Linux%20ASan%20Debug/builds/1451/steps/compile/logs/stdio http://google.github.io/sanitizers/show_bots.html
4 years ago (2016-12-12 22:13:45 UTC) #100
Ken Rockot(use gerrit already)
On 2016/12/12 at 22:13:45, aizatsky wrote: > This change breaks asan libfuzzer bot: > > ...
4 years ago (2016-12-12 22:27:44 UTC) #101
kylechar
On 2016/12/12 22:13:45, aizatsky wrote: > This change breaks asan libfuzzer bot: > > > ...
4 years ago (2016-12-12 22:29:41 UTC) #102
Ken Rockot(use gerrit already)
That's fixed by https://codereview.chromium.org/2573593002 which hasn't landed yet because slow CQ. On Mon, Dec 12, ...
4 years ago (2016-12-12 22:35:42 UTC) #103
Ken Rockot(use gerrit already)
On 2016/12/12 at 22:27:44, Ken Rockot wrote: > On 2016/12/12 at 22:13:45, aizatsky wrote: > ...
4 years ago (2016-12-12 22:46:16 UTC) #104
Ken Rockot(use gerrit already)
On 2016/12/12 at 22:46:16, Ken Rockot wrote: > On 2016/12/12 at 22:27:44, Ken Rockot wrote: ...
4 years ago (2016-12-12 23:28:12 UTC) #105
Ɓukasz Anforowicz
4 years ago (2016-12-12 23:53:20 UTC) #106
Message was sent while issue was closed.
On 2016/12/12 23:28:12, Ken Rockot wrote:
> On 2016/12/12 at 22:46:16, Ken Rockot wrote:
> > On 2016/12/12 at 22:27:44, Ken Rockot wrote:
> > > On 2016/12/12 at 22:13:45, aizatsky wrote:
> > > > This change breaks asan libfuzzer bot:
> > > > 
> > > > 
> > > >
>
https://build.chromium.org/p/chromium.fyi/builders/Libfuzzer%20Upload%20Linux...
> > > > 
> > > > http://google.github.io/sanitizers/show_bots.html
> > > 
> > > Looking
> > 
> > So I can create a trivial GN executable target which does nothing more than
> depend on basic stl stream stuff (in this case stringstream), and it fails to
> link under an is_asan = true configuration with similar errors. I think that
> means there's a problem with the ASAN configuration, not with this CL.
> 
> Ah, apparently we require executable targets to explicitly link against
> //build/config/sanitizers:deps to buildable in a sanitizer environment. I'm
> landing a change which does this for the newly introduced executable targets.

FWIW, I've also bumped into this (I use ASAN builds for local development) and
opened https://crbug.com/673535 to track this.

Powered by Google App Engine
This is Rietveld 408576698