integration: Collect subject results
Add a playbook to pull down the integration and e2e testing logs/xml. By default they will appear in a 'artifacts' subdirectory of wherever the ``results.yml`` playbook lives. If the ``$WORKSPACE`` env. var is set and non-empty, the subdirectory will be created there instead. Inside the ``artifacts`` directory, further sub-directories are created, one for each subject's Ansible inventory name. Within those sub-directories are all the collected logs from that host. In this way, automation may simply archive the entire 'artifacts' directory to capture the important log files. (Depends on PR #935) Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
76e25eea42
commit
a30a118fe6
3 changed files with 88 additions and 13 deletions
|
@ -41,14 +41,18 @@
|
|||
path: "{{ artifacts }}"
|
||||
state: directory
|
||||
|
||||
- name: Buffer the e2e testing command to workaround Ansible YAML folding "feature"
|
||||
set_fact:
|
||||
e2e_shell_cmd: >
|
||||
go run hack/e2e.go
|
||||
--test
|
||||
-test_args="-host=https://{{ ansible_default_ipv4.address }}:6443
|
||||
--ginkgo.focus=\[Conformance\]
|
||||
--report-dir={{ artifacts }}"
|
||||
&> {{ artifacts }}/e2e.log
|
||||
# Fix vim syntax hilighting: "
|
||||
|
||||
- name: run e2e tests
|
||||
shell: >
|
||||
go run hack/e2e.go \
|
||||
--test \
|
||||
-test_args="-host=https://{{ ansible_default_ipv4.address }}:6443 \
|
||||
--ginkgo.focus=\[Conformance\] \
|
||||
--report-dir={{ artifacts }}" \
|
||||
&> {{ artifacts }}/e2e.log
|
||||
# Fix " syntax hilighting
|
||||
shell: "{{ e2e_shell_cmd | regex_replace('\\s+', ' ') }}"
|
||||
args:
|
||||
chdir: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue