diff --git a/.github/workflows/build-client-server-count.yml b/.github/workflows/build-client-server-count.yml index b2ad99cac36e..bb3bbcfc5ef5 100644 --- a/.github/workflows/build-client-server-count.yml +++ b/.github/workflows/build-client-server-count.yml @@ -252,6 +252,18 @@ jobs: echo "$new_failed_spec_env" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV + - name: Download the client build artifact + uses: actions/download-artifact@v4 + with: + name: cypress-repeat-logs + path: app/client + + - name: Read and Set File Content as ENV Variable + id: set-summary-content + run: | + summary_content=$(cat app/client/cy-repeat-summary.txt | tr '\n' ' ') + echo "summary_content=$summary_content" >> $GITHUB_ENV + - name: Add a comment on the PR with new CI failures if: needs.ci-test-limited.result != 'success' && needs.file-check.outputs.pr != '0' uses: peter-evans/create-or-update-comment@v3 @@ -262,6 +274,9 @@ jobs: Cypress dashboard: Click here! The following are new failures, please fix them before merging the PR: ${{env.new_failed_spec_env}} To know the list of identified flaky tests - Refer here + ``` + ${{ env.summary_content }} + ``` - name: Add a comment on the PR when ci-test-limited is success if: needs.ci-test-limited.result == 'success' && needs.file-check.outputs.pr != '0' @@ -272,6 +287,9 @@ jobs: Workflow run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>. Cypress dashboard url: Click here! All cypress tests have passed 🎉🎉🎉 + ``` + ${{ env.summary_content }} + ``` - name: Check ci-test-limited set status if: needs.ci-test-limited.result != 'success' @@ -369,6 +387,19 @@ jobs: echo "new_failed_spec_env<> $GITHUB_ENV echo "$new_failed_spec_env" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV + + - name: Download the client build artifact + uses: actions/download-artifact@v4 + with: + name: cypress-repeat-logs + path: app/client + + - name: Read and Set File Content as ENV Variable + id: set-summary-content + run: | + summary_content=$(cat app/client/cy-repeat-summary.txt | tr '\n' ' ') + echo "summary_content=$summary_content" >> $GITHUB_ENV + - name: Add a comment on the PR with new CI failures if: needs.ci-test-limited-existing-docker-image.result != 'success' && needs.file-check.outputs.pr != '0' @@ -380,6 +411,9 @@ jobs: Cypress dashboard: Click here! The following are new failures, please fix them before merging the PR: ${{env.new_failed_spec_env}} To know the list of identified flaky tests - Refer here + ``` + ${{ env.summary_content }} + ``` - name: Add a comment on the PR when ci-test-limited-existing-docker-image is success if: needs.ci-test-limited-existing-docker-image.result == 'success' && needs.file-check.outputs.pr != '0' @@ -390,7 +424,10 @@ jobs: Workflow run: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>. Cypress dashboard url: Click here! All cypress tests have passed 🎉🎉🎉 - + ``` + ${{ env.summary_content }} + ``` + - name: Check ci-test-limited-existing-docker-image set status if: needs.ci-test-limited-existing-docker-image.result != 'success' run: exit 1 \ No newline at end of file diff --git a/.github/workflows/ci-test-limited-with-count.yml b/.github/workflows/ci-test-limited-with-count.yml index 8790ca231881..beebd72452cf 100644 --- a/.github/workflows/ci-test-limited-with-count.yml +++ b/.github/workflows/ci-test-limited-with-count.yml @@ -348,13 +348,22 @@ jobs: cd app/client npx cypress-repeat run -n ${{ inputs.run_count }} --force \ --spec ${{ env.specs_to_run }} \ - --config-file "cypress_ci_custom.config.ts" + --config-file "cypress_ci_custom.config.ts" + cat cy-repeat-summary.txt - name: Trim number of cypress log files if: failure() run: | find ${{ github.workspace }}/app/client/cypress/cypress-logs -name '*.json' -type f | tail -n +11 | xargs -I {} rm -- {} + - name: Upload repeat-pro logs artifact + if: always() + uses: actions/upload-artifact@v4 + with: + name: cypress-repeat-logs + path: ${{ github.workspace }}/app/client/cy-repeat-summary.txt + overwrite: true + - name: Upload failed test cypress logs artifact if: failure() uses: actions/upload-artifact@v4 diff --git a/app/client/package.json b/app/client/package.json index 40afddb093fa..cf1766d99b6d 100644 --- a/app/client/package.json +++ b/app/client/package.json @@ -120,7 +120,7 @@ "craco-babel-loader": "^1.0.4", "cssnano": "^6.0.1", "cypress-log-to-output": "^1.1.2", - "cypress-repeat-updated": "^1.0.1", + "cypress-repeat-pro": "^1.0.1", "d3-geo": "^3.1.0", "dayjs": "^1.10.6", "deep-diff": "^1.0.2", diff --git a/app/client/yarn.lock b/app/client/yarn.lock index e2c9c3e3958f..b8350d99ecf3 100644 --- a/app/client/yarn.lock +++ b/app/client/yarn.lock @@ -13301,7 +13301,7 @@ __metadata: cypress-network-idle: ^1.14.2 cypress-plugin-tab: ^1.0.5 cypress-real-events: ^1.8.1 - cypress-repeat-updated: ^1.0.1 + cypress-repeat-pro: ^1.0.1 cypress-tags: ^1.1.2 cypress-terminal-report: ^5.3.6 cypress-wait-until: ^1.7.2 @@ -16928,9 +16928,9 @@ __metadata: languageName: node linkType: hard -"cypress-repeat-updated@npm:^1.0.1": +"cypress-repeat-pro@npm:^1.0.1": version: 1.0.1 - resolution: "cypress-repeat-updated@npm:1.0.1" + resolution: "cypress-repeat-pro@npm:1.0.1" dependencies: arg: 5.0.2 bluebird: 3.7.2 @@ -16939,8 +16939,8 @@ __metadata: peerDependencies: cypress: ">=5.3.0" bin: - cypress-repeat: index.js - checksum: 842107e5e1c17b9b1e4d910bfe429b6c1ca8ae6765cd985fc5f08087da36b47e19c52fbc99f936a698cfa18f364c2f674f4af0e2ed9d41fd216f594e72b2506b + cypress-repeat-pro: index.js + checksum: e62a21479b62a5d5624ce21bdd8204afd754082d851d5fc712ad76e39ca2cfe6d446c2a1434025be77fa9d76fa257609285879e9841efecc26be4d25454fb732 languageName: node linkType: hard