Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate-tags: allow ignoring certain collections #491

Merged
merged 4 commits into from
Mar 26, 2023

Conversation

gotmax23
Copy link
Contributor

This adds a -I / --ignore flag to antsibull-build validate-tags and antsibull-build validate-tags-file to ignore errors for specific collections. --ignores-file can be specified separately or simultaneously to ignore collections from a file with a newline separated list of names.

Useless ignores are treated as errors by default, but this can be changed with --no-warn-useless-ignores.

ignores and warn_useless_ignores arguments were added to antsibull.tagging.validate_tags() to support this functionality.

@gotmax23
Copy link
Contributor Author

In case you're wondering, I'd like to start validating tags in ansible-build-data CI and perhaps as part of the release process, but first, we need to be able to exclude the collections such as cisco.nso that are up for removal due to not fixing this issue.

changelogs/fragments/491.yaml Outdated Show resolved Hide resolved
changelogs/fragments/491.yaml Outdated Show resolved Hide resolved
src/antsibull/cli/antsibull_build.py Outdated Show resolved Hide resolved
src/antsibull/cli/antsibull_build.py Show resolved Hide resolved
src/antsibull/cli/antsibull_build.py Outdated Show resolved Hide resolved
src/antsibull/cli/antsibull_build.py Outdated Show resolved Hide resolved
src/antsibull/cli/antsibull_build.py Outdated Show resolved Hide resolved
gotmax23 and others added 3 commits March 26, 2023 09:18
This adds a `-I` / `--ignore` flag to `antsibull-build validate-tags`
and `antsibull-build validate-tags-file` to ignore errors for specific
collections. `--ignores-file` can be specified separately or
simultaneously to ignore collections from a file with a newline
separated list of names.

Useless ignores are treated as errors by default, but this can be
changed with `--no-warn-useless-ignores`.

`ignores` and `warn_useless_ignores` arguments were added to
`antsibull.tagging.validate_tags()` to support this functionality.
@gotmax23
Copy link
Contributor Author

@felixfontein, PTAL

@gotmax23 gotmax23 merged commit 015f935 into ansible-community:main Mar 26, 2023
@gotmax23
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants