Project

General

Profile

Actions

Feature #8954

closed

add ability to filter teuthology-suite job enumeration

Added by Yuri Weinstein over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

100%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:

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.


Subtasks 1 (0 open1 closed)

Subtask #8866: Add pattern-match filter to teuthology-suiteDuplicate07/18/2014

Actions
Actions #1

Updated by Yuri Weinstein over 9 years ago

  • Source changed from other to Q/A
Actions #2

Updated by Sage Weil over 9 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.

Actions #3

Updated by Yuri Weinstein over 9 years ago

Sage, can you add some high level use cases/ideas that you keep in mind for this?

Actions #4

Updated by Sage Weil over 9 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
Actions #5

Updated by Sage Weil over 9 years ago

  • Assignee set to Anonymous
Actions #6

Updated by Tamilarasi muthamizhan over 9 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

Actions #7

Updated by Zack Cerza over 9 years ago

I don't see "rados-api" in any filenames or file contents, fwiw.

Actions #8

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.

Actions #9

Updated by Ian Colle over 9 years ago

  • Target version set to sprint11
Actions #10

Updated by Anonymous over 9 years ago

I have a pull request in for this #309 (commit f6fcdff1aa)

Actions #11

Updated by Anonymous over 9 years ago

  • Status changed from In Progress to Fix Under Review
Actions #12

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.
Actions #13

Updated by Ian Colle over 9 years ago

  • Target version changed from sprint11 to sprint12
Actions #14

Updated by Anonymous over 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF