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

Issue 3391008: New application cros_image_to_target.py for ssh_tunnel upgrade (Closed)

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

Description

New application cros_image_to_target.py for ssh_tunnel upgrade The RF testbed has hosts behind a one-way firewall, so the conventional "image_to_live" script does not work. My initial attempt at solving this, 'cros_copy_upgrade_server', while sometimes functional, was always quite brittle since it had widely ranging dependencies which often changed in ways that the authors could not predict would break our setup. I've written from scratch a new script in python which uses ssh tunnels to get around the problem of the firewall issue. It also has retlatively minimal dependencies (stateful_update, cros_generate_update_paylod, cgpt, get_latest_image.sh and the testing keys) so hopefully it won't get blown away too often. BUG=none TEST=Ran under chroot -- Need help testing Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=b0d5cf2

Patch Set 1 #

Total comments: 59

Patch Set 2 : Correct board handling, timeouts #

Patch Set 3 : gpylint run #

Patch Set 4 : Large set of fixes from gpylint and sosa's suggestions #

Total comments: 27

Patch Set 5 : Second round of sosa input #

Patch Set 6 : Latest batch of sosa fixes -- changed child exit behavior #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -0 lines) Patch
A bin/cros_image_to_target.py View 1 2 3 4 5 1 chunk +657 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Paul Stewart
10 years, 3 months ago (2010-09-17 20:01:50 UTC) #1
Sam Leffler
Replace me on review list by sosa+wad.
10 years, 3 months ago (2010-09-17 20:10:18 UTC) #2
sosa
I have a big concern that you are duplicating a lot of the dev server ...
10 years, 3 months ago (2010-09-17 20:51:21 UTC) #3
Paul Stewart
I've done gpylint, and responded to Sosa's comments. There's only one of them that I ...
10 years, 3 months ago (2010-09-18 01:14:21 UTC) #4
sosa
Thanks for the cleanup, mostly nits left. http://codereview.chromium.org/3391008/diff/9001/10001 File bin/cros_image_to_target.py (right): http://codereview.chromium.org/3391008/diff/9001/10001#newcode47 bin/cros_image_to_target.py:47: if last_pipe ...
10 years, 3 months ago (2010-09-18 07:57:26 UTC) #5
Paul Stewart
http://codereview.chromium.org/3391008/diff/9001/10001 File bin/cros_image_to_target.py (right): http://codereview.chromium.org/3391008/diff/9001/10001#newcode47 bin/cros_image_to_target.py:47: if last_pipe is not None: On 2010/09/18 07:57:31, sosa ...
10 years, 3 months ago (2010-09-20 16:30:08 UTC) #6
sosa
LGTM, can you add tests before committing? If not, please explain how you tested the ...
10 years, 3 months ago (2010-09-20 16:41:31 UTC) #7
Paul Stewart
Hey sosa. I've addressed some of your suggestions including the init of the CrosEnv with ...
10 years, 3 months ago (2010-09-20 21:10:42 UTC) #8
sosa
10 years, 3 months ago (2010-09-20 21:13:11 UTC) #9
LGTM.  I'd be happy to take a look at them when the tests are ready.

Powered by Google App Engine
This is Rietveld 408576698