New issue
Advanced search Search tips
Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Fuchsia
Pri: 2
Type: Bug

Blocking:
issue 865428



Sign in to add a comment
link

Issue 895627: Deploy Fuchsia packages using 'pm publish' and a host-side HTTP server

Reported by w...@chromium.org, Oct 15 Project Member

Issue description

We currently build a FAR for each package, which we SCP to the Fuchsia guest, then 'pm install' into blobfs.  Deployment would be more efficient, especially for incremental changes (e.g. iterating on changes to a unit-test binary, without changing test data on which it depends), if we instead published the package's blobs to the guest for it to pull on-demand.

The Fuchsia SDK's 'pm' tool provides 'pm publish' to create a blob directory from a set of files, and 'pm serve' to serve that to a device.
 

Comment 1 by w...@chromium.org, Oct 15

Blocking: 865428

Comment 2 by kmarshall@chromium.org, Oct 23

Owner: kmarshall@chromium.org
Status: Assigned (was: Untriaged)

Comment 3 by joshuaseaton@google.com, Oct 23

Cc: joshuaseaton@google.com

Comment 4 by bugdroid1@chromium.org, Dec 18

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b620d43ffd66907188bd9c83219e870e88424d96

commit b620d43ffd66907188bd9c83219e870e88424d96
Author: Kevin Marshall <kmarshall@chromium.org>
Date: Tue Dec 18 12:42:53 2018

Fuchsia: Deploy packages using Amber HTTP blob pull mechanism.

Replaces the existing scp & "pm install" based deployment
workflow with one which provisions temporary TUF repositories,
stages packages into the repo, and installs them onto the device
using "amber_ctl get_up". Amber will pull in the blobs it needs
via HTTP.

Refactor port forwarding functions to common.py, as they are
required by "pm serve".

Bug:  895627 
Change-Id: Ia2f9527d872bad19a2f245f0264b30279b303cad
Reviewed-on: https://chromium-review.googlesource.com/c/1362248
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617457}
[modify] https://crrev.com/b620d43ffd66907188bd9c83219e870e88424d96/build/config/fuchsia/rules.gni
[modify] https://crrev.com/b620d43ffd66907188bd9c83219e870e88424d96/build/fuchsia/common.py
[modify] https://crrev.com/b620d43ffd66907188bd9c83219e870e88424d96/build/fuchsia/net_test_server.py
[modify] https://crrev.com/b620d43ffd66907188bd9c83219e870e88424d96/build/fuchsia/qemu_target.py
[modify] https://crrev.com/b620d43ffd66907188bd9c83219e870e88424d96/build/fuchsia/run_package.py

Comment 5 by kmarshall@chromium.org, Dec 18

Status: Fixed (was: Assigned)

Comment 6 by bugdroid1@chromium.org, Jan 12

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0daf72ec0ca1b77b1617843f33dd8300b8b7748d

commit 0daf72ec0ca1b77b1617843f33dd8300b8b7748d
Author: Kevin Marshall <kmarshall@chromium.org>
Date: Sat Jan 12 02:28:13 2019

[fuchsia] Make `pm serve` run silently.

"pm serve" runs reliably and no longer needs to run verbosely.
The remaining issues with amber-based deployments tend to be on the
device, not on the HTTP server.

This change prevents a lot of httpd log spam from being sent to the
console.

Bug:  895627 
Change-Id: If5e63785c8d70568bd4b1b99a18f4c59acc2a48e
Reviewed-on: https://chromium-review.googlesource.com/c/1407255
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622272}
[modify] https://crrev.com/0daf72ec0ca1b77b1617843f33dd8300b8b7748d/build/fuchsia/run_package.py

Sign in to add a comment