CI provider fixes for ansible-test. (#71929)

* Make Azure Pipelines resource_prefix lowercase.

* Make classification of CI files consistent.

* Update package-data sanity test for AZP.
pull/71938/head
Matt Clay 4 years ago committed by GitHub
parent 4f990e7615
commit 92b66e3e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - The ``resource_prefix`` variable provided to tests running on Azure Pipelines is now converted to lowercase to match other CI providers.

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Change classification using ``--changed`` now consistently handles common configuration files for supported CI providers.

@ -73,7 +73,7 @@ class AzurePipelines(CIProvider):
except KeyError as ex:
raise MissingEnvironmentVariable(name=ex.args[0])
prefix = re.sub(r'[^a-zA-Z0-9]+', '-', prefix)
prefix = re.sub(r'[^a-zA-Z0-9]+', '-', prefix).lower()
return prefix

@ -377,6 +377,16 @@ class PathMapper:
minimal = {}
if os.path.sep not in path:
if filename in (
'azure-pipelines.yml',
'shippable.yml',
):
return all_tests(self.args) # test infrastructure, run all tests
if is_subdir(path, '.azure-pipelines'):
return all_tests(self.args) # test infrastructure, run all tests
if is_subdir(path, '.github'):
return minimal
@ -873,7 +883,6 @@ class PathMapper:
if path in (
'setup.py',
'shippable.yml',
):
return all_tests(self.args) # broad impact, run all tests

@ -21,6 +21,7 @@ def assemble_files_to_ship(complete_file_list):
# All files which are in the repository except these:
ignore_patterns = (
# Developer-only tools
'.azure-pipelines/*',
'.github/*',
'.github/*/*',
'changelogs/fragments/*',

Loading…
Cancel
Save