Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions playbooks/argo_healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
hosts: localhost
connection: local
gather_facts: false
vars:
with_retries: false
max_retries: 60
retry_count: 0
retry_delay: 60
tasks:
- name: Check health of argo applications
ansible.builtin.include_tasks: tasks/check_argo_health.yml
when: not (with_retries | bool)

- name: Wait for all Argo applications to be healthy and synced with retry logic
ansible.builtin.include_tasks: tasks/retry_argo_healthcheck.yml
when: with_retries | bool
27 changes: 27 additions & 0 deletions playbooks/pattern_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
- name: Run interop test
hosts: localhost
connection: local
gather_facts: false
roles:
- role: pattern_settings # set general pattern vars

tasks:

- name: Resolve and set some pattern related vars (same as install_settings)
ansible.builtin.include_role:
name: install_settings
tasks_from: resolve_overrides

- name: Run pytest with clustergroup {{ target_clustergroup }}
ansible.builtin.command:
cmd: pytest -lv test_{{ target_clustergroup }}.py --junit-xml .results/test_{{ target_clustergroup }}.xml
chdir: "{{ pattern_dir }}/tests/ci/"
environment:
WORKSPACE: "{{ pattern_dir }}/tests/ci/"
changed_when: false
register: pytest_out

- name: Log pytest output
ansible.builtin.debug:
msg: "{{ pytest_out.stdout }}"