ansible-test: don't trigger full CI run for changes to changelogs/ and docs/ in collections (#68550)
* Don't trigger full CI run for changes to changelogs/ and docs/ in collections. * Add changelog fragment. * Update changelogs/fragments/68550-ansible-test-docs-changelogs.yml Co-Authored-By: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
parent
38b7ceb75a
commit
bae5f18f5c
2 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- "ansible-test change detection - Run only sanity tests on ``docs/`` and ``changelogs/`` in collections, to avoid triggering full CI runs of integration and unit tests when files in these directories change."
|
|
@ -641,6 +641,14 @@ class PathMapper:
|
|||
if result is not None:
|
||||
return result
|
||||
|
||||
minimal = {}
|
||||
|
||||
if path.startswith('changelogs/'):
|
||||
return minimal
|
||||
|
||||
if path.startswith('docs/'):
|
||||
return minimal
|
||||
|
||||
return None
|
||||
|
||||
def _classify_ansible(self, path): # type: (str) -> t.Optional[t.Dict[str, str]]
|
||||
|
|
Loading…
Reference in a new issue