From d355073d107329501cc376e3555ad5b91339bb9a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 16 Jan 2024 08:19:14 +0000 Subject: [PATCH] Stop running react-sdk Cypress tests (#4008) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/downstream-artifacts.yml | 6 +-- ...ss.yml => downstream-end-to-end-tests.yml} | 42 ++----------------- .github/workflows/sonarcloud.yml | 2 +- 3 files changed, 6 insertions(+), 44 deletions(-) rename .github/workflows/{cypress.yml => downstream-end-to-end-tests.yml} (51%) diff --git a/.github/workflows/downstream-artifacts.yml b/.github/workflows/downstream-artifacts.yml index cf35a776dad..f49d5df25d3 100644 --- a/.github/workflows/downstream-artifacts.yml +++ b/.github/workflows/downstream-artifacts.yml @@ -5,13 +5,9 @@ on: pull_request: {} - # For now at least, we don't run this or the cypress-tests against pushes + # For now at least, we don't run this or the downstream-end-to-end-tests against pushes # to develop or master. # - # Note that if we later choose to do so, we'll need to find a way to stop - # the results in Cypress Cloud from clobbering those from the 'develop' - # branch of matrix-react-sdk. - # #push: # branches: [develop, master] concurrency: diff --git a/.github/workflows/cypress.yml b/.github/workflows/downstream-end-to-end-tests.yml similarity index 51% rename from .github/workflows/cypress.yml rename to .github/workflows/downstream-end-to-end-tests.yml index 2e3cda189a7..ac858d0a08b 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/downstream-end-to-end-tests.yml @@ -1,5 +1,5 @@ # Triggers after the "Downstream artifacts" build has finished, to run the -# matrix-react-sdk playwright & cypress tests (with access to repo secrets) +# matrix-react-sdk playwright tests (with access to repo secrets) name: matrix-react-sdk End to End Tests on: @@ -13,28 +13,6 @@ concurrency: cancel-in-progress: ${{ github.event.workflow_run.event == 'pull_request' }} jobs: - cypress: - name: Cypress - - # We only want to run the cypress tests on merge queue to prevent regressions - # from creeping in. They take a long time to run and consume multiple concurrent runners. - if: github.event.workflow_run.event == 'merge_group' - - uses: matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml@develop - permissions: - actions: read - issues: read - statuses: write - pull-requests: read - secrets: - # secrets are not automatically shared with called workflows, so share the cypress dashboard key, and the Kiwi login details - KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_RUST: ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_RUST}} - KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_LEGACY: ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_CYPRESS_LEGACY}} - TCMS_USERNAME: ${{ secrets.TCMS_USERNAME }} - TCMS_PASSWORD: ${{ secrets.TCMS_PASSWORD }} - with: - react-sdk-repository: matrix-org/matrix-react-sdk - playwright: name: Playwright # We only want to run the playwright tests on merge queue to prevent regressions @@ -50,14 +28,14 @@ jobs: with: react-sdk-repository: matrix-org/matrix-react-sdk - # We want to make the cypress tests a required check for the merge queue. + # We want to make the Playwright tests a required check for the merge queue. # - # Unfortunately, github doesn't distinguish between "checks needed for branch + # Unfortunately, GitHub doesn't distinguish between "checks needed for branch # protection" (ie, the things that must pass before the PR will even be added # to the merge queue) and "checks needed in the merge queue". We just have to add # the check to the branch protection list. # - # Ergo, if we know we're not going to run the cypress tests, we need to add a + # Ergo, if we know we're not going to run the Playwright tests, we need to add a # passing status check manually. mark_skipped: if: github.event.workflow_run.event != 'merge_group' @@ -65,18 +43,6 @@ jobs: statuses: write runs-on: ubuntu-latest steps: - - uses: Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1 - with: - authToken: "${{ secrets.GITHUB_TOKEN }}" - state: success - description: Cypress skipped - - # Keep in step with the `context` that is updated by `Sibz/github-status-action` - # in matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml. - context: "${{ github.workflow }} / cypress" - - sha: "${{ github.event.workflow_run.head_sha }}" - - uses: Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1 with: authToken: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index e11478c931d..d533c714d7a 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -53,7 +53,7 @@ jobs: github.event.workflow_run.conclusion == 'success' steps: # We create the status here and then update it to success/failure in the `report` stage - # This provides an easy link to this workflow_run from the PR before Cypress is done. + # This provides an easy link to this workflow_run from the PR before Sonarcloud is done. - uses: Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1 with: authToken: ${{ secrets.GITHUB_TOKEN }}