mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-03 08:17:52 +00:00
fix(test-e2e-playwright): clear failure state on success to handle retries
This commit is contained in:
1 file changed
+4
-7
@@ -302,10 +302,7 @@
|
||||
_playwright_failures: "{{ (_playwright_failures | default([])) + [application_id] }}"
|
||||
when: _playwright_run.rc != 0
|
||||
|
||||
- name: Archive Playwright reports for this variant + pass
|
||||
ansible.builtin.script: >-
|
||||
{{ role_path }}/files/archive_playwright_reports.sh
|
||||
{{ _playwright_reports_dir | quote }}
|
||||
{{ VARIANT_INDEX | int }}
|
||||
{{ ASYNC_ENABLED | bool | string | lower }}
|
||||
changed_when: true
|
||||
- name: Clear failure on success (handles retry where previous attempt failed)
|
||||
ansible.builtin.set_fact:
|
||||
_playwright_failures: "{{ (_playwright_failures | default([])) | reject('equalto', application_id) | list }}"
|
||||
when: _playwright_run.rc == 0
|
||||
Reference in new issue
Block a user