The last entry from the commands output will always be the one that we
want. By using this we also avoid having to tack on -private and hope
that people who created the overlay conformed to that naming convention.
BUG=NA
TEST=prebuilt_unittest updated and run
Review URL: http://codereview.chromium.org/6348010
to eventually moving entirely out of the overlay directory. The reason
to do this now is to avoid devs having to remerge there make.conf changes
while they are in flight.
Add private support to prebuilt.py so we will update private overlays if
we are internal and external if we are external.
Update prebuilt_unittest to ensure we are returning the proper path if
the private overlay exists. Also ensure we are returning the proper host
path regardless.
BUG=9919
TEST=unittest added for private case
This server requires that unsafe characters are quoted in URLs, so we do that
here.
Change-Id: I6b7c430671b02a8da11777029b0fdb59a87dcae1
BUG=chromium-os:9902
TEST=Ran unit tests. Ran example buildbot run and diff'd new version and old
version of Packages file.
Review URL: http://codereview.chromium.org/5542002
TBR=Needed to fix preflight build.
BUG=chromium-os:5311
TEST=Remove SHA1 from one of the packages in the Packages file, make sure
that prebuilt.py treats that as a duplicated package. Also run new
unit tests. Also ran buildbot.py
Change-Id: Ie35a7c818fd659bcc2296605ace850aee2a88448
Review URL: http://codereview.chromium.org/5370005
Preflight prebuilts reference the last full build, so they should always be complete as long as the last full build is still there.
Also add host prebuilts to the preflight prebuilts.
BUG=chromium-os:5311
TEST=Run unit tests for cbuildbot and prebuilt.py. Test runs of cbuildbot.py with --dryrun.
Review URL: http://codereview.chromium.org/5344002
Change-Id: Id95f94c02cc2f6cbd70a029d4f8b94617b7cc071
I've also modified the unit test so it actually tests for this case.
Change-Id: I6688d3be7bf1d8962031fcf1d684ddcaab43ba9f
BUG=8764
TEST=Unittests
Review URL: http://codereview.chromium.org/4566001
BUG=not yet
TEST=Try uploading prebuilts to codf30.jail. Also run unit tests.
Change-Id: Ib218e705633febeddbe5c104f67fa580e1fc7de4
Review URL: http://codereview.chromium.org/4102001
This ensures that the Packages database doesn't contain private packages.
This is necessary so that the database matches up with the actual files
we upload.
BUG=chromium-os:4843
TEST=Ran unit test
Change-Id: I0355b4ab867a0d08396e45b04523a487951475f4
Review URL: http://codereview.chromium.org/3930001
This changes the format that I was updating from 'key value' to 'key=value'.
I modified my unittests to test this.
BUG=NA
TEST=Branch runs without commit.
Review URL: http://codereview.chromium.org/3858003
This introduces a way to upload prebuilts from the command line.
The following features are available
* Multiprocess upload (cuts time down by a 1/5th for uploading)
* Versioned uploading with git file commital
* Host prebuilt uploading
* Board prebuilt uploading
BUG=chromium-os:4843,chromium-os:5855
TEST=./prebuilt_unittest.py
{'/b/cbuild/build/chroot/build/x86-dogfood/packages/x11-misc/util-macros-1.5.0.tbz2':
'gs://chromeos-prebuilt/host/version/packages/x11-misc/util-macros-1.5.0.tbz2',
'/b/cbuild/build/chroot/build/x86-dogf}
.FILTERING /usr/local/package/oob
FILTERING /var/tmp/bibby.file
.....Updating stage 20100309/stage3-amd64-20100309.tar.bz2 to stage
test_update
.
----------------------------------------------------------------------
Ran 7 tests in 0.002s
OK