From 850816134ac1a8a83c8564567cc503dc4b0c19cb Mon Sep 17 00:00:00 2001 From: Apeksha Bhosale <7846888+ApekshaBhosale@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:58:42 +0530 Subject: [PATCH] chore: added snapshots to artifacts (#34678) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Snapshots are added to understand why snapshot comparing tests have been failing on CI. Conversation link - https://theappsmith.slack.com/archives/C0134BAVDB4/p1719481924157319 Tried here- https://github.com/appsmithorg/appsmith/actions/runs/9776708332 Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 23e22d0a71afe415e76d19115c59629c539332f0 > Cypress dashboard. > Tags: `@tag.Sanity` ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Chores** - Updated CI workflow to upload Cypress snapshots in case of test failures, improving debugging capabilities for test failures. --- .github/workflows/ci-test-custom-script.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-test-custom-script.yml b/.github/workflows/ci-test-custom-script.yml index b82ad4b772..047a1786d7 100644 --- a/.github/workflows/ci-test-custom-script.yml +++ b/.github/workflows/ci-test-custom-script.yml @@ -396,6 +396,14 @@ jobs: path: ~/results overwrite: true + - name: Upload cypress snapshots + if: failure() + uses: actions/upload-artifact@v4 + with: + name: snapshots-${{github.run_attempt}} + path: ${{ github.workspace }}/app/client/cypress/snapshots + overwrite: true + # Set status = failedtest - name: Set fail if there are test failures if: failure()