Lists python packages from test-python environment

* Adds another tox feature to scripts/run-local-test in order to allow
  us to debug CI failures. Current implementation is totally opaque
  regarding what packages are installed.
* Assures we display packages on zuul too.
* Assures that we do run some jobs using pre.yml when we touch it, as
  previously only openstack-tox-linters was run

Change-Id: Iad8741ac09d8668f53b29e4965f8868ad55db017
This commit is contained in:
Sorin Sbarnea 2019-11-13 10:28:08 +00:00
parent 7084248fbe
commit c082faa77a
3 changed files with 12 additions and 1 deletions

View File

@ -70,6 +70,9 @@ if [ ! -f "${HOME}/test-python/bin/ansible" ]; then
run_pip --force
fi
# Display list of installed packages with versions (debugging failures)
"${HOME}/test-python/bin/pip" freeze
# Run local test
PS1="[\u@\h \W]\$" source "${HOME}/test-python/bin/activate"
source "${PROJECT_DIR}/ansible-test-env.rc"

View File

@ -93,6 +93,7 @@
- job:
files:
- ^tripleo_ansible/roles/test_deps/.*
- ^zuul.d/playbooks/pre.yml
name: tripleo-ansible-centos-7-molecule-test_deps
parent: tripleo-ansible-centos-7-base
vars:
@ -122,6 +123,7 @@
- job:
files:
- ^tripleo_ansible/roles/tuned/.*
- ^zuul.d/playbooks/pre.yml
name: tripleo-ansible-centos-7-molecule-tuned
parent: tripleo-ansible-centos-7-base
vars:
@ -132,7 +134,7 @@
- ^role-addition.yml
- ^tox.ini
- ^molecule-requirements.txt
- ^zuul.d/playbooks/*.yml
- ^zuul.d/playbooks/.*
name: tripleo-ansible-centos-7-role-addition
nodeset: centos-7
parent: tox-molecule

View File

@ -35,6 +35,12 @@
requirements: "{{ tripleo_ansible_project_path }}/molecule-requirements.txt"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_site_packages: true
- name: Display test-python virtualenv package versions
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
pip freeze
# NOTE(cloudnull): This is being done because docker is not supported on RHEL-8
# and tests within this repo still require docker.
- name: Manual install container.io