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

Issue 3452032: First submission of prebuilt upload script. (Closed)

Created:
10 years, 2 months ago by scottz
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
ssh://git@gitrw.chromium.org:9222/crosutils
Visibility:
Public.

Description

First submission of prebuilt upload script. 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 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=9d892dd

Patch Set 1 #

Patch Set 2 : Add in __init__.py files #

Total comments: 65

Patch Set 3 : Update prebuilt and prebuilt_unittest to address comments #

Total comments: 27

Patch Set 4 : Addressing more comments #

Total comments: 3

Patch Set 5 : Last round of updates change a few variables and update where I am printing to #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, --2 lines) Patch
A chromite/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A chromite/lib/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A prebuilt.py View 1 2 3 4 1 chunk +309 lines, -0 lines 0 comments Download
A prebuilt_unittest.py View 1 2 3 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
scottz
One thing you will notice is that I am using RunCommand with shell=True. I started ...
10 years, 2 months ago (2010-09-28 16:56:01 UTC) #1
sosa
Mostly nits http://codereview.chromium.org/3452032/diff/2001/3003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/2001/3003#newcode34 prebuilt.py:34: _RSYNC_CMD = 'sudo /usr/bin/rsync -a ' Maybe ...
10 years, 2 months ago (2010-09-28 19:34:44 UTC) #2
davidjames
Nits http://codereview.chromium.org/3452032/diff/2001/3003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/2001/3003#newcode38 prebuilt.py:38: os.environ['BOTO_CONFIG'] = _BOTO_CONFIG This belongs in main(). If ...
10 years, 2 months ago (2010-09-28 20:42:41 UTC) #3
scottz
PTAL Awesome comments guys :) -Scott On 2010/09/28 20:42:41, davidjames wrote: > Nits > > ...
10 years, 2 months ago (2010-09-28 21:57:19 UTC) #4
scottz
http://codereview.chromium.org/3452032/diff/2001/3003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/2001/3003#newcode34 prebuilt.py:34: _RSYNC_CMD = 'sudo /usr/bin/rsync -a ' Heh actually that ...
10 years, 2 months ago (2010-09-28 21:57:37 UTC) #5
sosa
More nits http://codereview.chromium.org/3452032/diff/2001/3003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/2001/3003#newcode195 prebuilt.py:195: filename = file_path.replace(strip_str, '').lstrip('/') ok. On 2010/09/28 ...
10 years, 2 months ago (2010-09-28 22:26:42 UTC) #6
davidjames
LGTM w/nit. Check with sosa also in case he has more review comments. http://codereview.chromium.org/3452032/diff/2001/3003 File ...
10 years, 2 months ago (2010-09-28 22:30:27 UTC) #7
davidjames
http://codereview.chromium.org/3452032/diff/10001/11003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/10001/11003#newcode119 prebuilt.py:119: global FILTER_PACKAGES On 2010/09/28 22:30:30, davidjames wrote: > You ...
10 years, 2 months ago (2010-09-28 22:33:03 UTC) #8
scottz
Alright take another look please :) http://codereview.chromium.org/3452032/diff/10001/11003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/10001/11003#newcode119 prebuilt.py:119: global FILTER_PACKAGES On ...
10 years, 2 months ago (2010-09-30 15:26:48 UTC) #9
sosa
LGTM with a few nits. Thanks for writing unit tests! http://codereview.chromium.org/3452032/diff/18001/19003 File prebuilt.py (right): http://codereview.chromium.org/3452032/diff/18001/19003#newcode35 ...
10 years, 2 months ago (2010-09-30 19:59:07 UTC) #10
scottz
Alright updated last round PTAL
10 years, 2 months ago (2010-10-01 18:08:17 UTC) #11
sosa
LGTM
10 years, 2 months ago (2010-10-01 18:24:03 UTC) #12
davidjames
10 years, 2 months ago (2010-10-01 18:24:36 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698