New issue
Advanced search Search tips

Issue 804605 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature

Blocking:
issue 782515



Sign in to add a comment

Make PackageInfraGoBinariesStage package all files instead of hardcoded executables under /usr/bin

Project Member Reported by derat@chromium.org, Jan 23 2018

Issue description

For  issue 782515 , I need to make the contents of the chromeos-base/tast-remote-tests-cros Portage package available on prod machines. This package contains a Go executable at /usr/libexec/tast/bundles/cros and (eventually) various data files under /usr/share/tast/data.

My understanding is that infra_stages.PackageInfraGoBinariesStage currently creates CIPD packages containing a hardcoded list of executables under /usr/bin. It seems straightforward to make it instead include all files installed by the relevant Portage packages, and I've started on a change to make it do this.

Allen, is there a reason that this won't work, or does it sound fine to you?
 
That sounds fine.

Comment 2 by derat@chromium.org, Jan 23 2018

Components: Tests>Tast

Comment 3 by derat@chromium.org, Jan 25 2018

Status: Fixed (was: Started)
This is done now:

---

chromite: Make PackageInfraGoBinariesStage install all files.

Update cbuildbot's infra_stages.PackageInfraGoBinariesStage
to package all files installed by the specified Portage
packages instead of using hardcoded lists of executables
under /usr/bin.

Also add unit tests for the stage.

BUG= chromium:782515 
TEST=added unit tests; also did a successful
     chromeos-infra-go-tryjob build

Change-Id: I8208c18f5be5029e625b67ffce5141bc4626d5cc
Reviewed-on: https://chromium-review.googlesource.com/881267
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>

Sign in to add a comment