Feature #8954
closedadd ability to filter teuthology-suite job enumeration
100%
Description
We have need to be able to run suites not on all distros, but on one type, e.g. trusty or rhel 6.5, especially when suites (like upgrades) take long time to complete.
Please consider having an additional option in teuthology-suite to specify distro type.
Updated by Sage Weil almost 10 years ago
- Subject changed from Add ability to specify distro type for suite run to add ability to filter teuthology-suite job enumeration
I think a more general thing here is to be able to filter the teuthology-suite job enumeration... either with a string, or a specific path, or something. The choice of distro would be just one such filter.
Updated by Yuri Weinstein almost 10 years ago
Sage, can you add some high level use cases/ideas that you keep in mind for this?
Updated by Sage Weil almost 10 years ago
teuthology-suite ... --filter distro/ubuntu-12.04.yaml # only jobs that contain this string in description teuthology-suite ... --filter-out thrash/none.yaml # exclude jobs that contain this string teuthology-suite -s rados ... --filter rados-api # only the rados api tests, but in all combinations
Updated by Tamilarasi muthamizhan almost 10 years ago
Also, a combination of filters,
say, run all combination of rados tests but only on ubuntu precise,
teuthology-suite -s rados ... --filter rados-api and distro/ubuntu-12.04.yaml
Updated by Zack Cerza over 9 years ago
I don't see "rados-api" in any filenames or file contents, fwiw.
Updated by Anonymous over 9 years ago
- Status changed from New to In Progress
After discussing this with Zack, we came up with the following set of changes:
1. Appropriate docopt changes are needed in teuthology/scripts/suite.py 2. The handling of --filter and --filter-out parameters needs to be added to the main routine in teutholgy/teuthology/suite.py 3. The filter and filter-out parameters need to be passed to prepare_and_schedule and then to schedule_suite 4. The checks need to be made against the description value used in schedule_suite
Implementation is in progress.
Updated by Anonymous over 9 years ago
I have a pull request in for this #309 (commit f6fcdff1aa)
Updated by Anonymous over 9 years ago
- Status changed from In Progress to Fix Under Review
Updated by Anonymous over 9 years ago
Please review this again. The new version is merged with the latest teuthology.
In general, this will work as follows:
teuthology-suite -s xxx --filter dumpling This only run those jobs where the description or yaml file names contain the text dumpling. teuthology-suite -s xxx --filter-out dumpling This only runs those jobs where the description or yaml file name do not contain the text dumpling.
Updated by Ian Colle over 9 years ago
- Target version changed from sprint11 to sprint12
Updated by Anonymous over 9 years ago
- Status changed from Fix Under Review to Resolved