diff --git a/.zuul.yaml b/.zuul.yaml index ff229ebb..1df46c83 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -457,6 +457,8 @@ - name: github.com/ansible/ansible override-checkout: devel vars: + # override tox_constraints_file from parent job + tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/pip-constraints-none.txt' tox_envlist: linters-2.12 python_version: 3.8 bindep_profile: test py38 @@ -471,6 +473,8 @@ - name: github.com/ansible/ansible override-checkout: stable-2.12 vars: + # override tox_constraints_file from parent job + tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/pip-constraints-none.txt' tox_envlist: linters-2.12 python_version: 3.8 bindep_profile: test py38 @@ -485,6 +489,8 @@ - name: github.com/ansible/ansible override-checkout: stable-2.9 vars: + # override tox_constraints_file from parent job + tox_constraints_file: '{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/pip-constraints-none.txt' tox_envlist: linters-2.9 # Cross-checks with other projects diff --git a/test-requirements-2.11.txt b/test-requirements-2.11.txt index ff1a34e7..1517a33a 100644 --- a/test-requirements-2.11.txt +++ b/test-requirements-2.11.txt @@ -1,5 +1,5 @@ openstacksdk -ansible-core +ansible-core>=2.11.0,<2.12.0 pycodestyle flake8 pylint @@ -7,5 +7,5 @@ voluptuous yamllint rstcheck ruamel.yaml -#galaxy-importer # see https://review.opendev.org/#/c/743054 +galaxy-importer tox diff --git a/test-requirements-2.12.txt b/test-requirements-2.12.txt index ff1a34e7..bd77fad5 100644 --- a/test-requirements-2.12.txt +++ b/test-requirements-2.12.txt @@ -7,5 +7,5 @@ voluptuous yamllint rstcheck ruamel.yaml -#galaxy-importer # see https://review.opendev.org/#/c/743054 +galaxy-importer tox diff --git a/test-requirements-2.9.txt b/test-requirements-2.9.txt index 08007a64..a548e7bf 100644 --- a/test-requirements-2.9.txt +++ b/test-requirements-2.9.txt @@ -7,5 +7,7 @@ voluptuous yamllint rstcheck ruamel.yaml -#galaxy-importer # see https://review.opendev.org/#/c/743054 +# galaxy-importer 0.3.2 moved from ansible 2.9 to ansible-core 2.11 +# Ref.: https://github.com/ansible/galaxy-importer/commit/98933547831922c45243f39d85eefe150b55fc36 +galaxy-importer==0.3.1 tox diff --git a/tools/check-import.sh b/tools/check-import.sh index cc738162..939c1a50 100755 --- a/tools/check-import.sh +++ b/tools/check-import.sh @@ -15,11 +15,5 @@ set -e -TOXDIR=${1:-.} -######### Disbaled in https://review.opendev.org/#/c/743054 - -# galaxy_importer.main does not return non-zero error code on error -#output=$(python -m galaxy_importer.main $TOXDIR/build_artifact/*) -#if echo $output | grep ERROR: ; then -# exit 1 -#fi +TOXDIR="${1:-.}" +python -m galaxy_importer.main "$TOXDIR/build_artifact/"* diff --git a/tox.ini b/tox.ini index 5ed80b98..8e83e1f6 100644 --- a/tox.ini +++ b/tox.ini @@ -36,6 +36,7 @@ commands = deps = pbr ruamel.yaml + galaxy-importer ansible-core commands =