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

Issue 6181003: Add support for an --image flag to atest. (Closed)

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

Description

Add support for an --image flag to atest. This enables creating jobs from the CLI that use autoserv to install a new OS image before running the requested test. This was not added to the database like the reboot before/reboot after flags to maintain backward compatibility and avoid any changes to the database schema. Also it is not working as a pure parameterized job as the current implementation is not 100% complete and would require more work to finish. And since mixed jobs are not allowed it would also mean moving existing control file jobs to parameterized jobs. So the implementation of adding a parameterized id to control jobs and using a known test to hold the OS image path is the most straight forward of the options. Change-Id: I77cdda0c50c222a4c594da2626a71fa55f5957cb BUG=chromium-os:11486 TEST=Manual testing using atest cli to create jobs with --image parameters and verifying the value is passed to autoserv. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=5a8c6ad

Patch Set 1 #

Total comments: 17

Patch Set 2 : Code review fixes. #

Patch Set 3 : More code review fixes. #

Total comments: 13

Patch Set 4 : Code review fixes to models.py and rpc_interface.py. #

Total comments: 1

Patch Set 5 : Fixing missing 'self.' in commented out parameters. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -6 lines) Patch
M cli/job.py View 3 chunks +7 lines, -0 lines 0 comments Download
M frontend/afe/model_logic.py View 1 chunk +3 lines, -1 line 0 comments Download
M frontend/afe/models.py View 1 2 3 4 2 chunks +16 lines, -4 lines 0 comments Download
M frontend/afe/rpc_interface.py View 1 2 3 2 chunks +31 lines, -1 line 0 comments Download
M scheduler/monitor_db.py View 1 chunk +2 lines, -0 lines 0 comments Download
M scheduler/scheduler_models.py View 1 2 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
pauldean_chromium
Hi Dale & Mike, Can you guys take a look at this change? Before he ...
9 years, 11 months ago (2011-01-10 20:32:22 UTC) #1
DaleCurtis
I asked eric this the other day: Will cloned jobs re-initiate the image process? Currently ...
9 years, 11 months ago (2011-01-11 00:46:05 UTC) #2
pauldean_chromium
Thanks for the comments Dale, As far as cloning jobs goes I think we want ...
9 years, 11 months ago (2011-01-12 18:12:52 UTC) #3
DaleCurtis
Everything else is looking good to me. Once you get these fixes in and Mike ...
9 years, 11 months ago (2011-01-14 20:56:16 UTC) #4
pauldean_chromium
http://codereview.chromium.org/6181003/diff/9001/frontend/afe/models.py File frontend/afe/models.py (left): http://codereview.chromium.org/6181003/diff/9001/frontend/afe/models.py#oldcode996 frontend/afe/models.py:996: cls.check_parameterized_job(control_file=control_file, On 2011/01/14 20:56:16, dalec wrote: > You should ...
9 years, 11 months ago (2011-01-18 17:57:31 UTC) #5
truty1
This all looks fine except I have not spent time before understanding parameterized jobs. The ...
9 years, 10 months ago (2011-01-28 20:30:57 UTC) #6
truty1
lgtm - we just need to be sure that future upstream changes to parameterized jobs ...
9 years, 10 months ago (2011-01-28 21:27:52 UTC) #7
DaleCurtis
LGTM On 2011/01/28 21:27:52, truty1 wrote: > lgtm - we just need to be sure ...
9 years, 10 months ago (2011-01-31 23:52:36 UTC) #8
truty1
9 years, 10 months ago (2011-02-01 01:21:31 UTC) #9
Something small to consider.

http://codereview.chromium.org/6181003/diff/14001/frontend/afe/models.py
File frontend/afe/models.py (right):

http://codereview.chromium.org/6181003/diff/14001/frontend/afe/models.py#newc...
frontend/afe/models.py:1048: #                            
parameterized_job=parameterized_job)
I'm going to point out something I noticed when patching.  You've commented out
a line that had 'self' and replaced it with a line that has 'cls'. I'm guessing
from the earlier update. Maybe this will be confusing for someone undoing this
at a later point.

Powered by Google App Engine
This is Rietveld 408576698