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

Issue 6576023: scripts: call devserver/payload generators from chroot & delete moved scripts (Closed)

Created:
9 years, 10 months ago by zbehan
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

scripts: call devserver/payload generators from chroot & delete moved scripts BUG=chromium-os:5246 TEST=below, During all tests, the directory platform/dev was manually removed 1) Ran cros_au_test_harness.py and saw it succeed 2) Ran generate_au_zip.py, compared the generated .zip with one before this patch - they were identical 3) Ran cros_image_to_target.py and saw it succeed Change-Id: Iab2620245a45442b79ee8369f3af1a3990f4644e

Patch Set 1 #

Total comments: 1

Patch Set 2 : Possible fix for calling image_to_target from outside the chroot #

Total comments: 5

Patch Set 3 : start_devserver pwn #

Total comments: 2

Patch Set 4 : Keep bits of old start_devserver #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -389 lines) Patch
M bin/cros_au_test_harness.py View 3 chunks +3 lines, -3 lines 0 comments Download
M bin/cros_image_to_target.py View 1 3 chunks +4 lines, -4 lines 0 comments Download
D cros_generate_stateful_update_payload View 1 chunk +0 lines, -1 line 0 comments Download
D cros_generate_stateful_update_payload.py View 1 chunk +0 lines, -95 lines 0 comments Download
D cros_generate_update_payload View 1 1 chunk +0 lines, -271 lines 0 comments Download
M generate_au_zip.py View 1 chunk +1 line, -1 line 0 comments Download
M image_to_live.sh View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M start_devserver View 1 2 3 2 chunks +2 lines, -11 lines 1 comment Download

Messages

Total messages: 31 (0 generated)
zbehan
9 years, 10 months ago (2011-02-24 05:31:25 UTC) #1
Raja Aluri
LGTM for the generate-au-zip part.
9 years, 10 months ago (2011-02-24 18:05:29 UTC) #2
Paul Stewart
http://codereview.chromium.org/6576023/diff/1/bin/cros_image_to_target.py File bin/cros_image_to_target.py (right): http://codereview.chromium.org/6576023/diff/1/bin/cros_image_to_target.py#newcode209 bin/cros_image_to_target.py:209: if not self.cmd.Run('cros_generate_update_payload', These changes force the user to ...
9 years, 10 months ago (2011-02-24 18:49:39 UTC) #3
zbehan
Yes, you're right. These are actually very likely breaking running outside the chroot, and something ...
9 years, 10 months ago (2011-02-24 19:50:43 UTC) #4
Paul Stewart
On Thu, Feb 24, 2011 at 11:36 AM, Zdenek Behan <zbehan@chromium.org> wrote: > Yes, you're ...
9 years, 10 months ago (2011-02-24 20:10:42 UTC) #5
zbehan
From my outsider POV, it would seem that to keep breakage down, you need proper ...
9 years, 10 months ago (2011-02-24 21:17:53 UTC) #6
zbehan
9 years, 9 months ago (2011-03-01 02:24:24 UTC) #7
zbehan
Changed cros_image_to_target to use properly self.ChrootPath. This would theoretically allow calling from outside the chroot, ...
9 years, 9 months ago (2011-03-01 02:28:19 UTC) #8
sjg
On 2011/03/01 02:28:19, zbehan wrote: > Changed cros_image_to_target to use properly self.ChrootPath. This would > ...
9 years, 9 months ago (2011-03-01 05:04:45 UTC) #9
sjg
http://codereview.chromium.org/6576023/diff/7001/bin/cros_image_to_target.py File bin/cros_image_to_target.py (right): http://codereview.chromium.org/6576023/diff/7001/bin/cros_image_to_target.py#newcode209 bin/cros_image_to_target.py:209: if not self.cmd.Run(self.ChrootPath('/usr/bin/cros_generate_update_payload'), Is /usr/bin not in the path ...
9 years, 9 months ago (2011-03-01 05:04:51 UTC) #10
sosa
You should modify start_devserver in crosutils to call start_devserver in chroot if not --archive_dir and ...
9 years, 9 months ago (2011-03-01 17:40:47 UTC) #11
Paul Stewart
LGTM, modulo tests quoted are still current with latest changes. http://codereview.chromium.org/6576023/diff/7001/bin/cros_image_to_target.py File bin/cros_image_to_target.py (right): http://codereview.chromium.org/6576023/diff/7001/bin/cros_image_to_target.py#newcode209 ...
9 years, 9 months ago (2011-03-01 17:58:30 UTC) #12
zbehan
That is not how self.ChrootPath works. It ignores PATH, just appends path into chroot before ...
9 years, 9 months ago (2011-03-01 18:30:26 UTC) #13
zbehan
I'm actually planning to get rid of platform/dev entirely (though this CL is not yet ...
9 years, 9 months ago (2011-03-01 18:38:05 UTC) #14
sosa
On Tue, Mar 1, 2011 at 10:38 AM, Zdenek Behan <zbehan@chromium.org> wrote: > I'm actually ...
9 years, 9 months ago (2011-03-01 19:58:02 UTC) #15
zbehan
On Tue, Mar 1, 2011 at 8:57 PM, Chris Sosa <sosa@chromium.org> wrote: > On Tue, ...
9 years, 9 months ago (2011-03-01 20:09:12 UTC) #16
sosa
On Tue, Mar 1, 2011 at 12:09 PM, Zdenek Behan <zbehan@chromium.org> wrote: > > > ...
9 years, 9 months ago (2011-03-01 20:10:39 UTC) #17
zbehan
On Tue, Mar 1, 2011 at 9:10 PM, Chris Sosa <sosa@chromium.org> wrote: > On Tue, ...
9 years, 9 months ago (2011-03-01 20:12:48 UTC) #18
sosa
On Tue, Mar 1, 2011 at 12:12 PM, Zdenek Behan <zbehan@chromium.org> wrote: > > > ...
9 years, 9 months ago (2011-03-01 20:15:04 UTC) #19
zbehan
OK. SGTM. I'll change it. On Tue, Mar 1, 2011 at 9:14 PM, Chris Sosa ...
9 years, 9 months ago (2011-03-01 20:17:27 UTC) #20
zbehan
9 years, 9 months ago (2011-03-01 20:38:01 UTC) #21
zbehan
Done. PTAL. On Tue, Mar 1, 2011 at 9:38 PM, <zbehan@chromium.org> wrote: > http://codereview.chromium.org/6576023/ >
9 years, 9 months ago (2011-03-01 20:38:52 UTC) #22
sosa
http://codereview.chromium.org/6576023/diff/10006/start_devserver File start_devserver (left): http://codereview.chromium.org/6576023/diff/10006/start_devserver#oldcode33 start_devserver:33: fi Do exec here. http://codereview.chromium.org/6576023/diff/10006/start_devserver File start_devserver (right): http://codereview.chromium.org/6576023/diff/10006/start_devserver#newcode4 ...
9 years, 9 months ago (2011-03-01 21:39:18 UTC) #23
zbehan
9 years, 9 months ago (2011-03-01 21:45:34 UTC) #24
zbehan
Heh. Yes, I suppose I should fix start_devserver to be callable from outside the chroot ...
9 years, 9 months ago (2011-03-01 21:48:36 UTC) #25
sosa
http://codereview.chromium.org/6576023/diff/11004/start_devserver File start_devserver (right): http://codereview.chromium.org/6576023/diff/11004/start_devserver#newcode35 start_devserver:35: exec $(dirname ${0})/../../chroot/usr/bin/start_devserver "$@" Heh ... so I realized ...
9 years, 9 months ago (2011-03-01 21:49:29 UTC) #26
zbehan
Why not? I tried running it from outside the chroot like this and it seems ...
9 years, 9 months ago (2011-03-01 21:51:06 UTC) #27
sosa
+Nick I believe partners who run the devserver using the factory flow never have a ...
9 years, 9 months ago (2011-03-01 21:52:41 UTC) #28
sosa
But maybe they don't use this script ... if not I'm ok with this. On ...
9 years, 9 months ago (2011-03-01 21:53:11 UTC) #29
zbehan
The only "documented" use of devserver in the factory workflow is inside serve_factory_packages.sh, which uses ...
9 years, 9 months ago (2011-03-01 21:58:54 UTC) #30
sosa
9 years, 9 months ago (2011-03-01 22:00:45 UTC) #31
sg, LGTM

On Tue, Mar 1, 2011 at 1:58 PM, Zdenek Behan <zbehan@chromium.org> wrote:
> The only "documented" use of devserver in the factory workflow is inside
> serve_factory_packages.sh, which uses devserver.py, rather than the shell
> wrapper. In fact the workflow is a little complicated and is my next target
> after this CL, but this CL should not affect it.
>
> On Tue, Mar 1, 2011 at 10:53 PM, Chris Sosa <sosa@chromium.org> wrote:
>>
>> But maybe they don't use this script ... if not I'm ok with this.
>>
>> On Tue, Mar 1, 2011 at 1:52 PM, Chris Sosa <sosa@chromium.org> wrote:
>> > +Nick
>> >
>> > I believe partners who run the devserver using the factory flow never
>> > have a chroot.
>> >
>> > On Tue, Mar 1, 2011 at 1:51 PM, Zdenek Behan <zbehan@chromium.org>
>> > wrote:
>> >> Why not? I tried running it from outside the chroot like this and it
>> >> seems
>> >> to be doing the right thing.
>> >>
>> >> On Tue, Mar 1, 2011 at 10:49 PM, <sosa@chromium.org> wrote:
>> >>>
>> >>> http://codereview.chromium.org/6576023/diff/11004/start_devserver
>> >>> File start_devserver (right):
>> >>>
>> >>>
>> >>>
>> >>>
http://codereview.chromium.org/6576023/diff/11004/start_devserver#newcode35
>> >>> start_devserver:35: exec $(dirname
>> >>> ${0})/../../chroot/usr/bin/start_devserver "$@"
>> >>> Heh ... so I realized this won't actually work for ppl who use this
>> >>> outside the chroot still.  It seems like you'd need to put this code
>> >>> in
>> >>> the archive_dir logic and do cd ${GCLIENT_ROOT}/src/platform/dev &&
>> >>> python devserver.py "$@" o/w
>> >>>
>> >>> http://codereview.chromium.org/6576023/
>> >>
>> >>
>> >
>
>

Powered by Google App Engine
This is Rietveld 408576698