]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
suite: add --subset option to allow us to schedule subsets of a suite 340/head
authorSamuel Just <sjust@redhat.com>
Fri, 27 Mar 2015 17:20:28 +0000 (10:20 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 4 May 2015 22:04:13 +0000 (15:04 -0700)
commit9a57759ec3df7a8b9490920538214ac189418c49
treef16efe816617fe156ff66e96ad403c405efe5aeb
parent4e56e60c4d5fd6be7ed1b7edb623bb38cb3806b3
suite: add --subset option to allow us to schedule subsets of a suite

First, the old logic tended to do the following:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (0, b), (0, c), ...]

which is a bummer since if we only schedule the first 1/4,
we only get combinations with 0.

Instead, we want:

[0,1,2,3] x [a,b,c,d] -> [(0, a), (1, b), (2, c), ...]

Second, the old logic tended to do the following:

[0,1,2,3] + [a,b,c,d] -> [0,1,2,3,a,b,c,d]

Which is a bummer since we need to all the way through the first
set before we get examples from the second.

Instead, we want:

[0,1,2,3] + [a,b,c,d] -> [0,a,1,b,2,c,3,d]

Lastly, if we have:

[0,1,2] + ([0,1,2],[a,b,c])

and want to schedule 1/3 of the suite, we don't want to
just schedule 0, we probably want to schedule all of
[0,1,2] and 1/3 of the second combo.  Thus, we want to
detect such cases and multiply out [0,1,2] into
[0,1,2,0,1,2,0,1,2].

Signed-off-by: Samuel Just <sam.just@inktank.com>
scripts/suite.py
teuthology/matrix.py [new file with mode: 0644]
teuthology/suite.py
teuthology/test/test_matrix.py [new file with mode: 0644]