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

Issue 6883099: Enable autotest client package fetching based on updated image. (Closed)

Created:
9 years, 8 months ago by ericli
Modified:
9 years, 7 months ago
Reviewers:
DaleCurtis
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

Enable autotest client package fetching based on updated image. The new customization will enable autotest client to fetch a test package from dev server based on its update url. This could avoid to pre-load all client packages on stateful partition and shrinked its space from 450M ~ 90M approximately. It will only be activated after we add a fetch_location entry in global_config.ini. Change-Id: I0f57a856b9d78c3245f1ff2a841acd98d6d3717e BUG=None TEST=server/autoserv -m IP {client,server}/tests/sleeptest/control --image update_url carefully read autoserv and client DEBUG log to see packages were downloaded from the dev server. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=2eb800f

Patch Set 1 #

Total comments: 6

Patch Set 2 : patch #

Total comments: 2

Patch Set 3 : patch #

Total comments: 6

Patch Set 4 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -1 line) Patch
A client/common_lib/site_packages.py View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M server/site_autotest.py View 1 2 3 2 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
ericli
9 years, 8 months ago (2011-04-20 22:23:06 UTC) #1
DaleCurtis
http://codereview.chromium.org/6883099/diff/1/client/common_lib/site_packages.py File client/common_lib/site_packages.py (right): http://codereview.chromium.org/6883099/diff/1/client/common_lib/site_packages.py#newcode2 client/common_lib/site_packages.py:2: from autotest_lib.client.common_lib import global_config You don't use any of ...
9 years, 8 months ago (2011-04-21 19:16:55 UTC) #2
ericli
Thanks for your suggestion. PTAL.
9 years, 8 months ago (2011-04-21 20:26:37 UTC) #3
DaleCurtis
http://codereview.chromium.org/6883099/diff/5/client/common_lib/site_packages.py File client/common_lib/site_packages.py (right): http://codereview.chromium.org/6883099/diff/5/client/common_lib/site_packages.py#newcode1 client/common_lib/site_packages.py:1: import logging, os logging,os are still unused. http://codereview.chromium.org/6883099/diff/5/server/site_autotest.py File ...
9 years, 8 months ago (2011-04-21 20:35:14 UTC) #4
ericli
change the logic of image parameter handling. PTAL.
9 years, 8 months ago (2011-04-21 20:54:53 UTC) #5
DaleCurtis
LGTM % nits. http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py File server/site_autotest.py (right): http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py#newcode6 server/site_autotest.py:6: parser = autoserv_parser.autoserv_parser Alphabetize config/parser. http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py#newcode8 ...
9 years, 8 months ago (2011-04-21 21:51:02 UTC) #6
ericli
9 years, 8 months ago (2011-04-21 23:48:12 UTC) #7
http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py
File server/site_autotest.py (right):

http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py#newc...
server/site_autotest.py:6: parser = autoserv_parser.autoserv_parser
On 2011/04/21 21:51:02, dalec wrote:
> Alphabetize config/parser.

Done.

http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py#newc...
server/site_autotest.py:8: 
On 2011/04/21 21:51:02, dalec wrote:
> Two lines between top level.

Done.

http://codereview.chromium.org/6883099/diff/6002/server/site_autotest.py#newc...
server/site_autotest.py:28: path = parser.options.image.rstrip('/')
No, I would say only compute inside loop.

We will only compute the path when certain pattern appears in the repo list, and
we know for sure it will only appear once.

On 2011/04/21 21:51:02, dalec wrote:
> No need to compute path or build in loop. Move them out.

Powered by Google App Engine
This is Rietveld 408576698