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:
parent
7084248fbe
commit
c082faa77a
@ -70,6 +70,9 @@ if [ ! -f "${HOME}/test-python/bin/ansible" ]; then
|
|||||||
run_pip --force
|
run_pip --force
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Display list of installed packages with versions (debugging failures)
|
||||||
|
"${HOME}/test-python/bin/pip" freeze
|
||||||
|
|
||||||
# Run local test
|
# Run local test
|
||||||
PS1="[\u@\h \W]\$" source "${HOME}/test-python/bin/activate"
|
PS1="[\u@\h \W]\$" source "${HOME}/test-python/bin/activate"
|
||||||
source "${PROJECT_DIR}/ansible-test-env.rc"
|
source "${PROJECT_DIR}/ansible-test-env.rc"
|
||||||
|
@ -93,6 +93,7 @@
|
|||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/test_deps/.*
|
- ^tripleo_ansible/roles/test_deps/.*
|
||||||
|
- ^zuul.d/playbooks/pre.yml
|
||||||
name: tripleo-ansible-centos-7-molecule-test_deps
|
name: tripleo-ansible-centos-7-molecule-test_deps
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-7-base
|
||||||
vars:
|
vars:
|
||||||
@ -122,6 +123,7 @@
|
|||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/tuned/.*
|
- ^tripleo_ansible/roles/tuned/.*
|
||||||
|
- ^zuul.d/playbooks/pre.yml
|
||||||
name: tripleo-ansible-centos-7-molecule-tuned
|
name: tripleo-ansible-centos-7-molecule-tuned
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-7-base
|
||||||
vars:
|
vars:
|
||||||
@ -132,7 +134,7 @@
|
|||||||
- ^role-addition.yml
|
- ^role-addition.yml
|
||||||
- ^tox.ini
|
- ^tox.ini
|
||||||
- ^molecule-requirements.txt
|
- ^molecule-requirements.txt
|
||||||
- ^zuul.d/playbooks/*.yml
|
- ^zuul.d/playbooks/.*
|
||||||
name: tripleo-ansible-centos-7-role-addition
|
name: tripleo-ansible-centos-7-role-addition
|
||||||
nodeset: centos-7
|
nodeset: centos-7
|
||||||
parent: tox-molecule
|
parent: tox-molecule
|
||||||
|
@ -35,6 +35,12 @@
|
|||||||
requirements: "{{ tripleo_ansible_project_path }}/molecule-requirements.txt"
|
requirements: "{{ tripleo_ansible_project_path }}/molecule-requirements.txt"
|
||||||
virtualenv: "{{ ansible_user_dir }}/test-python"
|
virtualenv: "{{ ansible_user_dir }}/test-python"
|
||||||
virtualenv_site_packages: true
|
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
|
# NOTE(cloudnull): This is being done because docker is not supported on RHEL-8
|
||||||
# and tests within this repo still require docker.
|
# and tests within this repo still require docker.
|
||||||
- name: Manual install container.io
|
- name: Manual install container.io
|
||||||
|
Loading…
Reference in New Issue
Block a user