fix(test-e2e-playwright): clear failure state on success to handle retries

This commit is contained in:
evangelostsak committed 2026-06-06 08:22:12 +02:00
1 parent 72b55eabd7
commit 29266c19d8
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