Browse Source

[CI] add ara to collect CI job logs (#8545)

pull/8580/head
Cristian Calin 2 years ago
committed by GitHub
parent
commit
a090038d02
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 1 deletions
  1. 2
      ansible.cfg
  2. 1
      tests/requirements-2.10.txt
  3. 1
      tests/requirements-2.11.txt
  4. 1
      tests/requirements-2.9.txt
  5. 5
      tests/scripts/testcases_cleanup.sh
  6. 3
      tests/scripts/testcases_run.sh

2
ansible.cfg

@ -14,7 +14,7 @@ fact_caching_timeout = 7200
stdout_callback = default stdout_callback = default
display_skipped_hosts = no display_skipped_hosts = no
library = ./library library = ./library
callback_whitelist = profile_tasks
callback_whitelist = profile_tasks,ara_default
roles_path = roles:$VIRTUAL_ENV/usr/local/share/kubespray/roles:$VIRTUAL_ENV/usr/local/share/ansible/roles:/usr/share/kubespray/roles roles_path = roles:$VIRTUAL_ENV/usr/local/share/kubespray/roles:$VIRTUAL_ENV/usr/local/share/ansible/roles:/usr/share/kubespray/roles
deprecation_warnings=False deprecation_warnings=False
inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds, .gpg inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo, .creds, .gpg

1
tests/requirements-2.10.txt

@ -10,3 +10,4 @@ molecule==3.0.6
molecule-vagrant==0.3 molecule-vagrant==0.3
testinfra==5.2.2 testinfra==5.2.2
python-vagrant==0.5.15 python-vagrant==0.5.15
ara[server]==1.5.7

1
tests/requirements-2.11.txt

@ -10,3 +10,4 @@ molecule==3.0.6
molecule-vagrant==0.3 molecule-vagrant==0.3
testinfra==5.2.2 testinfra==5.2.2
python-vagrant==0.5.15 python-vagrant==0.5.15
ara[server]==1.5.7

1
tests/requirements-2.9.txt

@ -13,3 +13,4 @@ molecule-vagrant==0.3
testinfra==5.2.2 ; python_version >= '3.0' testinfra==5.2.2 ; python_version >= '3.0'
testinfra==3.4.0 ; python_version < '3.0' testinfra==3.4.0 ; python_version < '3.0'
python-vagrant==0.5.15 python-vagrant==0.5.15
ara[server]==1.5.7

5
tests/scripts/testcases_cleanup.sh

@ -2,3 +2,8 @@
set -euxo pipefail set -euxo pipefail
cd tests && make delete-${CI_PLATFORM} -s ; cd - cd tests && make delete-${CI_PLATFORM} -s ; cd -
if [ -d ~/.ara ] ; then
tar czvf ${CI_PROJECT_DIR}/cluster-dump/ara.tgz ~/.ara
rm -fr ~/.ara
fi

3
tests/scripts/testcases_run.sh

@ -16,10 +16,13 @@ else
fi fi
fi fi
# needed for ara not to complain
export TZ=UTC
export ANSIBLE_REMOTE_USER=$SSH_USER export ANSIBLE_REMOTE_USER=$SSH_USER
export ANSIBLE_BECOME=true export ANSIBLE_BECOME=true
export ANSIBLE_BECOME_USER=root export ANSIBLE_BECOME_USER=root
export ANSIBLE_CALLBACK_PLUGINS="$(python -m ara.setup.callback_plugins)"
cd tests && make create-${CI_PLATFORM} -s ; cd - cd tests && make create-${CI_PLATFORM} -s ; cd -
ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml

Loading…
Cancel
Save