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

Issue 4688006: Add new stateful upload payload generator to crosutils. (Closed)

Created:
10 years, 1 month ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
petkov, DaleCurtis
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Add new stateful upload payload generator to crosutils. Change-Id: I53a24d6188711a248a1dc7c869aa9258b10970d2 BUG=chromium-os:8885 TEST=Ran by itself with latest image and current directory as my output dir as well as with new dev server changes. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=9a40915

Patch Set 1 #

Patch Set 2 : Remove ws #

Total comments: 11

Patch Set 3 : nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
A cros_generate_stateful_update_payload View 1 chunk +1 line, -0 lines 0 comments Download
A cros_generate_stateful_update_payload.py View 1 2 1 chunk +93 lines, -0 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
sosa
This is pretty much a copy-paste from the devserver code with addition of an options ...
10 years, 1 month ago (2010-11-10 22:30:37 UTC) #1
DaleCurtis
Will patch into local code base and test for you as well. http://codereview.chromium.org/4688006/diff/2001/cros_generate_stateful_update_payload File cros_generate_stateful_update_payload ...
10 years, 1 month ago (2010-11-10 22:41:18 UTC) #2
petkov
Should this be under crosutils/bin? LGTM otherwise on my side.
10 years, 1 month ago (2010-11-10 22:49:35 UTC) #3
sosa
Fixed nit and commented on other comments http://codereview.chromium.org/4688006/diff/2001/cros_generate_stateful_update_payload File cros_generate_stateful_update_payload (right): http://codereview.chromium.org/4688006/diff/2001/cros_generate_stateful_update_payload#newcode1 cros_generate_stateful_update_payload:1: cros_generate_stateful_update_payload.py This ...
10 years, 1 month ago (2010-11-10 23:31:30 UTC) #4
DaleCurtis
http://codereview.chromium.org/4688006/diff/2001/cros_generate_stateful_update_payload.py File cros_generate_stateful_update_payload.py (right): http://codereview.chromium.org/4688006/diff/2001/cros_generate_stateful_update_payload.py#newcode79 cros_generate_stateful_update_payload.py:79: parser.add_option('-i', '--image_path', Can you elaborate more? I don't understand ...
10 years, 1 month ago (2010-11-11 00:03:46 UTC) #5
sosa
I don't want users to misleadingly use some output suffix thinking that that's what gets ...
10 years, 1 month ago (2010-11-11 00:18:57 UTC) #6
DaleCurtis
10 years, 1 month ago (2010-11-11 01:18:36 UTC) #7
LGTM

On 2010/11/11 00:18:57, sosa wrote:
> I don't want users to misleadingly use some output suffix thinking that that's
> what gets outputted.  For example, we still use update.gz because for all we
> know, we think that the update payload is a gzip file ... which is no longer
> true but update.gz persists because other scripts have hard-coded the suffix.
> 
> I'd much prefer that the image get generated with the right suffix so it's
easy
> to see what it is.  This really shouldn't be up to callers ... rather the
callee
> 
>
http://codereview.chromium.org/4688006/diff/9001/cros_generate_stateful_updat...
> File cros_generate_stateful_update_payload.py (right):
> 
>
http://codereview.chromium.org/4688006/diff/9001/cros_generate_stateful_updat...
> cros_generate_stateful_update_payload.py:27: from_dir =
> os.path.dirname(image_path)
> On 2010/11/11 00:03:46, dalec wrote:
> > This won't work if image is in the same directory and "-i
> > chromiumos_test_image.bin" is passed as the option.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698