[stable-2.14] ansible-test - Fix packaging change classification (#80360) (#80361)

(cherry picked from commit 5d64024f1a)
pull/80378/head
Matt Clay 3 years ago committed by GitHub
parent 6d64021d7b
commit fb76b9e8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,2 +1,3 @@
shippable/posix/group3
context/controller
packaging

@ -1,2 +1,3 @@
context/controller
shippable/posix/group4
packaging

@ -668,6 +668,10 @@ class PathMapper:
minimal: dict[str, str] = {}
packaging = {
'integration': 'packaging/',
}
# Early classification that needs to occur before common classification belongs here.
if path.startswith('test/units/compat/'):
@ -749,6 +753,9 @@ class PathMapper:
return minimal
if path.startswith('packaging/'):
if path.startswith('packaging/pep517_backend/'):
return packaging
return minimal
if path.startswith('test/ansible_test/'):
@ -836,16 +843,17 @@ class PathMapper:
return minimal
if path in (
'setup.py',
'MANIFEST.in',
'pyproject.toml',
'requirements.txt',
'setup.cfg',
'setup.py',
):
return all_tests(self.args) # broad impact, run all tests
return packaging
if ext in (
'.in',
'.md',
'.rst',
'.toml',
'.txt',
):
return minimal

Loading…
Cancel
Save