From 29266c19d8b2dac9019fa9510e112931369eaad4 Mon Sep 17 00:00:00 2001 From: evangelostsak Date: Thu, 30 Apr 2026 01:10:00 +0200 Subject: [PATCH] fix(test-e2e-playwright): clear failure state on success to handle retries --- roles/test-e2e-playwright/tasks/02_run_one.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/roles/test-e2e-playwright/tasks/02_run_one.yml b/roles/test-e2e-playwright/tasks/02_run_one.yml index bfe91df77f..4a8aacf246 100644 --- a/roles/test-e2e-playwright/tasks/02_run_one.yml +++ b/roles/test-e2e-playwright/tasks/02_run_one.yml @@ -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