Feature #8954
closed
add ability to filter teuthology-suite job enumeration
Added by Yuri Weinstein almost 10 years ago.
Updated over 9 years ago.
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.
- Source changed from other to Q/A
- 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.
Sage, can you add some high level use cases/ideas that you keep in mind for this?
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
- Assignee set to Anonymous
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
I don't see "rados-api" in any filenames or file contents, fwiw.
- 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.
- Target version set to sprint11
I have a pull request in for this #309 (commit f6fcdff1aa)
- Status changed from In Progress to Fix Under Review
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.
- Target version changed from sprint11 to sprint12
- Status changed from Fix Under Review to Resolved
Also available in: Atom
PDF