ansible-test - Fix packaging change classification (#80360)

pull/80364/head
Matt Clay 3 years ago committed by GitHub
parent d8adc081d8
commit 5d64024f1a
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