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

Issue 1780007: Enable tests to have host-specific parameters (Closed)

Created:
10 years, 8 months ago by kmixter1
Modified:
9 years, 7 months ago
Reviewers:
petkov, ericli
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, petkov+cc_chromium.org, seano, Sameer Nanda, ericli
Base URL:
ssh://git@chromiumos-git//autotest.git
Visibility:
Public.

Description

Enable tests to have host-specific parameters. Remove a bunch of todos where we disabled tests because they would not work everywhere. Now we selectively enable and set constraints on BVTs.

Patch Set 1 #

Patch Set 2 : Adding host attributes to enable parameterizing tests based on host #

Patch Set 3 : log all host attributes for debugging #

Total comments: 14

Patch Set 4 : respond to review #

Patch Set 5 : fix comments #

Total comments: 4

Patch Set 6 : clean up #

Total comments: 6

Patch Set 7 : minor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -11 lines) Patch
M .gitignore View 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A server/site_host_attributes.py View 2 3 4 5 6 1 chunk +100 lines, -0 lines 0 comments Download
M server/site_tests/suite_BuildVerify/control View 1 2 3 4 5 7 chunks +27 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kmixter1
10 years, 8 months ago (2010-04-27 19:14:27 UTC) #1
seano
lgtm
10 years, 8 months ago (2010-04-27 19:27:25 UTC) #2
ericli
Please take a look at comments from Sameer. http://codereview.chromium.org/1712007 I think he want it kept ...
10 years, 8 months ago (2010-04-27 20:08:51 UTC) #3
kmixter1
Agreed - I want it kept in the BVT as well, longer term. The problem ...
10 years, 8 months ago (2010-04-28 16:30:23 UTC) #4
ericli
Ken, If you had reached agreement with Sameer, LTGM. Sameer, Could you also LGTM this? ...
10 years, 8 months ago (2010-04-28 16:37:58 UTC) #5
Sameer Nanda
On 2010/04/28 16:37:58, ericli wrote: > Ken, > > If you had reached agreement with ...
10 years, 8 months ago (2010-04-28 19:44:56 UTC) #6
kmixter1
Complete redid this. PTAL.
10 years, 8 months ago (2010-04-29 01:52:52 UTC) #7
ericli
Please help me to create all host attributes labels in the server. I will take ...
10 years, 8 months ago (2010-04-29 03:25:09 UTC) #8
petkov
It's nice to see that support for this is coming in place... A few comments, ...
10 years, 7 months ago (2010-04-29 19:39:06 UTC) #9
kmixter1
PTAL http://codereview.chromium.org/1780007/diff/10001/11002 File server/site_host_attributes.py (right): http://codereview.chromium.org/1780007/diff/10001/11002#newcode16 server/site_host_attributes.py:16: # host_attributes.get('drive_kind') => 'ssd,1' On 2010/04/29 19:39:06, petkov ...
10 years, 7 months ago (2010-04-30 01:42:33 UTC) #10
petkov
Simpler and better... One concern about the "bool" naming and a nit about sorting, LGTM ...
10 years, 7 months ago (2010-04-30 15:27:19 UTC) #11
kmixter1
PTAL I'd like to submit this today if possible. Eric - we can add labels, ...
10 years, 7 months ago (2010-04-30 21:04:51 UTC) #12
kmixter1
PTAL I'd like to submit this today if possible. Eric - we can add labels, ...
10 years, 7 months ago (2010-04-30 21:04:59 UTC) #13
ericli
LGTM. On 2010/04/30 21:04:59, kmixter1 wrote: > PTAL > > I'd like to submit this ...
10 years, 7 months ago (2010-04-30 21:14:00 UTC) #14
petkov
A couple of suggestions, LGTM otherwise. http://codereview.chromium.org/1780007/diff/20001/21002 File server/site_host_attributes.py (right): http://codereview.chromium.org/1780007/diff/20001/21002#newcode15 server/site_host_attributes.py:15: # 'illegal_string,1,2,3' I'd ...
10 years, 7 months ago (2010-04-30 21:42:36 UTC) #15
kmixter1
10 years, 7 months ago (2010-04-30 23:33:15 UTC) #16
pushing.

http://codereview.chromium.org/1780007/diff/20001/21002
File server/site_host_attributes.py (right):

http://codereview.chromium.org/1780007/diff/20001/21002#newcode15
server/site_host_attributes.py:15: #    'illegal_string,1,2,3'
On 2010/04/30 21:42:36, petkov wrote:
> I'd remove this one from the example -- or add a comment that this is not
valid.
> 

Done.

http://codereview.chromium.org/1780007/diff/20001/21002#newcode87
server/site_host_attributes.py:87: logging.info('Host attribute: %s => %s' %
On 2010/04/30 21:42:36, petkov wrote:
> I'd do
> 
> logging.info('Host attribute: %s => %s', key, value)
> 

Done.

http://codereview.chromium.org/1780007/diff/20001/21002#newcode104
server/site_host_attributes.py:104: self._attributes[splitnames[0]] = value
On 2010/04/30 21:42:36, petkov wrote:
> You could get rid of _attributes and just use
> 
> setattr(self, splitnames[0], value)
> 
> Then you don't need __getattr__
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698