Exclude git sourced packages from upper-constraints test
This patch updates the py_pkgs output based on the current Newton package set, and to include the new output based on the changes in https://review.openstack.org/352695 The previous data was based on a lookup with stable/mitaka roles. As the tempest package is now in upper constraints, the updated data exposed a flaw in the test which did not exclude git sourced packages from the upper constraints validation. This patch fixes that. The results of the tests for this review validate that the old data structures are intact. A follow on patch will adjust the repo build process to take advantage of the new data structure. Change-Id: I231d0f02f3fc370d57518593909c3ed426ea8b4c
This commit is contained in:
parent
1432b7544c
commit
df1c98222d
@ -109,6 +109,14 @@
|
|||||||
{%- set _ = global_pins.append(name_normalized) %}
|
{%- set _ = global_pins.append(name_normalized) %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{{- global_pins -}}
|
{{- global_pins -}}
|
||||||
|
- name: Set facts for packages built from git sources
|
||||||
|
set_fact:
|
||||||
|
git_package_list: >
|
||||||
|
{%- set git_packages = [] %}
|
||||||
|
{%- for remote_package_part in local_packages.results.0.item.remote_package_parts %}
|
||||||
|
{%- set _ = git_packages.append(remote_package_part['egg_name']) %}
|
||||||
|
{%- endfor %}
|
||||||
|
{{- git_packages -}}
|
||||||
- name: Ensure that upper constraints from the OpenStack requirements repo are complete
|
- name: Ensure that upper constraints from the OpenStack requirements repo are complete
|
||||||
assert:
|
assert:
|
||||||
that: item in requirements_constraints_content
|
that: item in requirements_constraints_content
|
||||||
@ -117,6 +125,7 @@
|
|||||||
- repo_build_use_upper_constraints | bool
|
- repo_build_use_upper_constraints | bool
|
||||||
- item | regex_replace('(\[|>=|<=|>|<|==|~=|!=).*$','') not in upper_constraints_override_list
|
- item | regex_replace('(\[|>=|<=|>|<|==|~=|!=).*$','') not in upper_constraints_override_list
|
||||||
- item | regex_replace('(\[|>=|<=|>|<|==|~=|!=).*$','') not in global_pins_list
|
- item | regex_replace('(\[|>=|<=|>|<|==|~=|!=).*$','') not in global_pins_list
|
||||||
|
- item | regex_replace('(\[|>=|<=|>|<|==|~=|!=).*$','') not in git_package_list
|
||||||
- name: Ensure that global pins have been applied
|
- name: Ensure that global pins have been applied
|
||||||
assert:
|
assert:
|
||||||
that: item in requirements_constraints_content
|
that: item in requirements_constraints_content
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user