]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
teuthology/suite: create nested matrix subsets
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 14 Jan 2022 20:25:14 +0000 (15:25 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 24 May 2022 00:31:28 +0000 (20:31 -0400)
commit6f5d6516f248ce6a94942f4024264de9852dfc04
tree5332851e410650673afbda80e9c46e0325a8993e
parent663051a4aef29d44161f07c4d6e089c02700dfab
teuthology/suite: create nested matrix subsets

The general idea is to allow the `%` convolution operator to also subset
the resulting matrix. This is done by specifying a number of divisions
for the subset in the `%` file. Such as:

dir/%:

    8

This commit maps a matrix index range of `[0, Subset.size())` to the
matrix it is taking a subset of, `[0, Matrix.size())`. To get full
coverage, a random number is used to specify "which" subset to use.
Contrast with the `--subset` argument to `teuthology-suite` which lets
you specify which subset.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/suite/build_matrix.py
teuthology/suite/matrix.py