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

Issue 3296022: Re-write of autoupdate.py to merge changes to be more cohesive and allow a forced_image option. (Closed)

Created:
10 years, 3 months ago by sosa
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Re-write of autoupdate.py to merge changes to be more cohesive and allow a forced_image option. BUG= TEST=More tests pending. Ran unittests, ran manual for latest and ran for ForcedBuild option all successfully.

Patch Set 1 #

Patch Set 2 : Style #

Patch Set 3 : cleanup #

Patch Set 4 : Unittests #

Total comments: 10

Patch Set 5 : Fixes for seano #

Patch Set 6 : Fix serve_only #

Patch Set 7 : Added another test for archive build and refactored init. #

Patch Set 8 : rm dup #

Patch Set 9 : Added docstring for Autoupdate. #

Total comments: 10

Patch Set 10 : Fixes for adlr #

Patch Set 11 : Upload before commit #

Patch Set 12 : Fix issues with force image and only build updates on updatecheck #

Patch Set 13 : Fix print statement #

Patch Set 14 : Cleanup before push. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -246 lines) Patch
M autoupdate.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +335 lines, -207 lines 0 comments Download
A autoupdate_unittest.py View 4 5 6 7 1 chunk +137 lines, -0 lines 0 comments Download
M devserver.py View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +57 lines, -39 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sosa
Doing more testing. If you can suggest more test methods, let me know.
10 years, 3 months ago (2010-09-14 17:12:56 UTC) #1
seano
http://codereview.chromium.org/3296022/diff/6001/7001 File autoupdate.py (right): http://codereview.chromium.org/3296022/diff/6001/7001#newcode286 autoupdate.py:286: cached_file_path = os.path.join(static_image_dir, 'update.gz') Is update.gz still the only ...
10 years, 3 months ago (2010-09-14 21:08:07 UTC) #2
sosa
http://codereview.chromium.org/3296022/diff/6001/7001 File autoupdate.py (right): http://codereview.chromium.org/3296022/diff/6001/7001#newcode286 autoupdate.py:286: cached_file_path = os.path.join(static_image_dir, 'update.gz') Stateful should be 1:1 with ...
10 years, 3 months ago (2010-09-14 23:30:33 UTC) #3
sosa
I also refactored __init__ a bit. Calling functions and doing complex stuff in __init__ is ...
10 years, 3 months ago (2010-09-15 00:31:45 UTC) #4
seano
LGTM Yay, unit tests! http://codereview.chromium.org/3296022/diff/22001/23003 File devserver.py (right): http://codereview.chromium.org/3296022/diff/22001/23003#newcode100 devserver.py:100: options, sys.argv = parser.parse_args(sys.argv) Yeah, ...
10 years, 3 months ago (2010-09-15 14:23:59 UTC) #5
sosa
Thanks seano! ping adlr / rtc, can either of you take a look at this ...
10 years, 3 months ago (2010-09-15 17:55:11 UTC) #6
adlr
http://codereview.chromium.org/3296022/diff/22001/23001 File autoupdate.py (right): http://codereview.chromium.org/3296022/diff/22001/23001#newcode113 autoupdate.py:113: if not os.path.exists(image_path) and os.path.exists(cached_file_path): should you maybe throw ...
10 years, 3 months ago (2010-09-15 18:17:40 UTC) #7
sosa
Thanks, PTAL http://codereview.chromium.org/3296022/diff/22001/23001 File autoupdate.py (right): http://codereview.chromium.org/3296022/diff/22001/23001#newcode113 autoupdate.py:113: if not os.path.exists(image_path) and os.path.exists(cached_file_path): I'm ok ...
10 years, 3 months ago (2010-09-15 18:28:58 UTC) #8
adlr
LGTM On Wed, Sep 15, 2010 at 11:28 AM, <sosa@chromium.org> wrote: > Thanks, PTAL > ...
10 years, 3 months ago (2010-09-15 18:59:27 UTC) #9
sosa
Hey Adlr, based on our discussion, I have updated this CL (see diffs 11 & ...
10 years, 3 months ago (2010-09-15 23:29:14 UTC) #10
adlr
LGTM
10 years, 3 months ago (2010-09-15 23:34:43 UTC) #11
Nick Sanders
Please revert this change ASAP, it has broken factory install. Please do include me on ...
10 years, 3 months ago (2010-09-16 11:31:21 UTC) #12
Tammo Spalink
Breakage detals: (cros-chroot) tammo@tammo ~/trunk/src/platform/dev $ python2.6 devserver.py --factory_config miniomaha.conf --validate_factory_config 'dev root is /home/tammo/trunk/src' ...
10 years, 3 months ago (2010-09-16 11:33:44 UTC) #13
Tammo Spalink
lgtm Tammo On Thu, Sep 16, 2010 at 19:33, Tammo Spalink <tammo@chromium.org> wrote: > Breakage ...
10 years, 3 months ago (2010-09-16 12:05:27 UTC) #14
sosa
10 years, 3 months ago (2010-09-16 16:33:08 UTC) #15
Is there documentation describing the factory install usage?  Do you have tests?

On Thu, Sep 16, 2010 at 4:31 AM,  <nsanders@chromium.org> wrote:
> Please revert this change ASAP, it has broken factory install.
>
> Please do include me on any changed to devserver in the future, and test
> against
> factory install usage.
>
> http://codereview.chromium.org/3296022/show
>

Powered by Google App Engine
This is Rietveld 408576698