From 35505d5cfb611e74dc80b5bfb159ad39f7cbdc6e Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Thu, 12 Jun 2025 17:55:02 +0200 Subject: [PATCH 1/4] PFM-ISSUE-30411 Add continue-on-error option to regression tests in e2e workflow --- .github/workflows/fe-e2e.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index fcbae8bc..87edd66f 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -43,6 +43,7 @@ jobs: run: npx cypress install - name: Affected Regression Tests + continue-on-error: true uses: collaborationFactory/github-actions/.github/actions/run-many@master with: target: ${{ matrix.target }} From 70bee8aca733093e2ffa2eb2dbdea9f4f8ad9616 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Thu, 12 Jun 2025 20:17:54 +0200 Subject: [PATCH 2/4] PFM-ISSUE-30411 Disable continue-on-error option for affected regression tests in e2e workflow --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 87edd66f..297b1814 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -43,7 +43,7 @@ jobs: run: npx cypress install - name: Affected Regression Tests - continue-on-error: true + #continue-on-error: true uses: collaborationFactory/github-actions/.github/actions/run-many@master with: target: ${{ matrix.target }} From 6544fc279d999f9de50f9631a7597711fd8f5d26 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Thu, 12 Jun 2025 22:22:13 +0200 Subject: [PATCH 3/4] PFM-ISSUE-30411 Enable continue-on-error option for affected regression tests in e2e workflow --- .github/workflows/fe-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 297b1814..87edd66f 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -43,7 +43,7 @@ jobs: run: npx cypress install - name: Affected Regression Tests - #continue-on-error: true + continue-on-error: true uses: collaborationFactory/github-actions/.github/actions/run-many@master with: target: ${{ matrix.target }} From 50ae8acad12a32bfa7db148bd7876cbb5b8fa730 Mon Sep 17 00:00:00 2001 From: Senthanal Sirpi Manohar Date: Thu, 12 Jun 2025 22:35:17 +0200 Subject: [PATCH 4/4] PFM-ISSUE-30411 Fail pipeline if regression tests step fails in e2e workflow --- .github/workflows/fe-e2e.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/fe-e2e.yml b/.github/workflows/fe-e2e.yml index 87edd66f..b7c0fd12 100644 --- a/.github/workflows/fe-e2e.yml +++ b/.github/workflows/fe-e2e.yml @@ -43,6 +43,7 @@ jobs: run: npx cypress install - name: Affected Regression Tests + id: regressionTests continue-on-error: true uses: collaborationFactory/github-actions/.github/actions/run-many@master with: @@ -72,3 +73,10 @@ jobs: path: | dist/cypress/apps/**/a11y/html/ retention-days: 3 + + - name: Fail pipeline if regressionTests step failed + run: | + if [ "${{ steps.regressionTests.outcome }}" = "failure" ]; then + echo "Regression tests step failed, failing the pipeline." + exit 1 + fi