New issue
Advanced search Search tips

Issue 778003 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Simplify D-Bus usage in mount_extension_image

Project Member Reported by ejcaruso@chromium.org, Oct 24 2017

Issue description

mount_extension_image calls into imageloader but does so by using the raw libchrome D-Bus bindings. This leads to a lot of boilerplate that we can clean up. Since imageloader uses chromeos-dbus-bindings we can use the generated proxies from that instead, and this gets us some benefits like type-safety of the D-Bus calls.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/a12f14463eb39129ef8fdc553f1c6a738fe71974

commit a12f14463eb39129ef8fdc553f1c6a738fe71974
Author: Eric Caruso <ejcaruso@chromium.org>
Date: Wed Oct 25 19:13:30 2017

Add imageloader-client ebuild

Build the proxies as a separate package from the rest
of imageloader.

CQ-DEPEND=CL:736322
BUG= chromium:778003 
TEST=emerge, inspect buildroot

Change-Id: I02b6127e56b956a8f6d4386e744f3308e1bdd03b
Reviewed-on: https://chromium-review.googlesource.com/736044
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[add] https://crrev.com/a12f14463eb39129ef8fdc553f1c6a738fe71974/chromeos-base/imageloader-client/imageloader-client-9999.ebuild

Project Member

Comment 2 by bugdroid1@chromium.org, Oct 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/imageloader/+/a040ae1df5f6d94f784776f7dc9e3c32653b336f

commit a040ae1df5f6d94f784776f7dc9e3c32653b336f
Author: Eric Caruso <ejcaruso@chromium.org>
Date: Wed Oct 25 19:13:29 2017

imageloader: split out proxy generation

Nothing in imageloader proper relies on the proxy generation
since it's implementing the adaptor. If we split out the proxy
generation then we can use it more easily from other programs.

BUG= chromium:778003 
TEST=emerge, inspect buildroot

Change-Id: Ib250451d375ab8604bc6617fd8290ca96d97fce9
Reviewed-on: https://chromium-review.googlesource.com/736322
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[add] https://crrev.com/a040ae1df5f6d94f784776f7dc9e3c32653b336f/libimageloader-client.pc.in
[add] https://crrev.com/a040ae1df5f6d94f784776f7dc9e3c32653b336f/imageloader-client.gyp
[add] https://crrev.com/a040ae1df5f6d94f784776f7dc9e3c32653b336f/libimageloader-client-test.pc.in
[modify] https://crrev.com/a040ae1df5f6d94f784776f7dc9e3c32653b336f/imageloader.gyp

Project Member

Comment 3 by bugdroid1@chromium.org, Oct 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/d4cce40431d0c36c8e830b53581620dd78e9c4e7

commit d4cce40431d0c36c8e830b53581620dd78e9c4e7
Author: Eric Caruso <ejcaruso@chromium.org>
Date: Fri Oct 27 23:14:07 2017

container_utils: add imageloader-client to DEPEND

We want to move this package off raw libchrome bindings
so it can use generated bindings instead.

BUG= chromium:778003 
TEST=emerge

Change-Id: I565f7e30263b4df3a490e166cc794006641b1dfe
Reviewed-on: https://chromium-review.googlesource.com/736431
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/d4cce40431d0c36c8e830b53581620dd78e9c4e7/chromeos-base/container_utils/container_utils-9999.ebuild

Project Member

Comment 4 by bugdroid1@chromium.org, Oct 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/19d46cde458a1fe5325f678bf027987077621ec0

commit 19d46cde458a1fe5325f678bf027987077621ec0
Author: Eric Caruso <ejcaruso@chromium.org>
Date: Fri Oct 27 23:14:07 2017

container_utils: use imageloader-client for D-Bus bindings

mount_extension_image does a bunch of raw libchrome D-Bus binding
calls but we can simplify this by using generated bindings.

CQ-DEPEND=CL:736431
BUG= chromium:778003 
TEST=emerge, deploy and run vont container, try to run nonexistent
  container

Change-Id: I1bdcca4bf44a58fcb450d4770cd9f13fa9985257
Reviewed-on: https://chromium-review.googlesource.com/736325
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/19d46cde458a1fe5325f678bf027987077621ec0/container_utils/container_utils.gyp
[modify] https://crrev.com/19d46cde458a1fe5325f678bf027987077621ec0/container_utils/mount_extension_image.cc

Status: Fixed (was: Started)

Comment 6 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Comment 7 by dchan@chromium.org, Jan 23 2018

Status: Fixed (was: Archived)

Sign in to add a comment