Skip to content

[FEATURE]: option to exclude tags #1437

@shahzebsiddiqui

Description

@shahzebsiddiqui

Please describe your feature

Let's have an option in buildtest build to exclude by tags. We can already search by tags buildtest bd -t tag1,tag2 which will discover buildspecs. We also have option to filter by tags buildtest bd --filter tags=tag1 but there is no way to exclude tags.

For instance if one wants to build all tests in a directory and exclude all test by given tag name this is not possible at the moment.

Suggest potential solution

Introduce a new option buildtest bd -xt with long option --exclude-tags that work similar to -t so you can exclude tags

Here are two ways this can be used. We can do comma separated list and also append this multiple times

# comma separated
buildtest  bd -b /path/to/dir -xt cuda,mpi

buildtest bd -b example.yml -xt cuda -xt mpi

The exclusion will exclude any test that are found in list of tags if tags is empty or there is no match then test will be processed.

Additional Information

No response

Post question in Slack

  • I agree that I posted my question in slack before creating this issue

Is there an existing issue

  • I confirm there is no existing issue for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew Feature in buildtest such as command line or improvement to buildspec

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions