ci: Update ci-test.yml-for ADS run (#23557)

## Description

- This PR adds changes for ADS run via oktotest with Cy10 on increased
jobs

#### Type of change
- yml file update
This commit is contained in:
Aishwarya-U-R 2023-05-19 21:43:09 +05:30 committed by GitHub
parent 79e7dac1c5
commit c8615a853d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
job: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ] job: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]
# Service containers to run with this job. Required for running tests # Service containers to run with this job. Required for running tests
services: services:
@ -240,6 +240,7 @@ jobs:
APPSMITH_DISABLE_TELEMETRY: true APPSMITH_DISABLE_TELEMETRY: true
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }} APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
CYPRESS_VERIFY_TIMEOUT: 100000
run: | run: |
cd app/client cd app/client
chmod a+x ./cypress/setup-test-ci.sh chmod a+x ./cypress/setup-test-ci.sh
@ -297,15 +298,16 @@ jobs:
APPSMITH_DISABLE_TELEMETRY: true APPSMITH_DISABLE_TELEMETRY: true
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }} APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
CYPRESS_VERIFY_TIMEOUT: 100000
with: with:
browser: ${{ env.BROWSER_PATH }} browser: ${{ env.BROWSER_PATH }}
headless: true headless: true
record: true record: true
install: false install: false
parallel: true parallel: true
config-file: cypress_ci.json config-file: cypress_ci.config.ts
group: "Electrons on Github Action Fat Container" group: "Electrons on Github Action Fat Container"
spec: "cypress/integration/**/**/*" spec: "cypress/e2e/**/**/*"
working-directory: app/client working-directory: app/client
# tag will be either "push" or "pull_request" # tag will be either "push" or "pull_request"
tag: ${{ github.event_name }} tag: ${{ github.event_name }}
@ -364,7 +366,7 @@ jobs:
record: true record: true
install: false install: false
parallel: true parallel: true
config-file: cypress_ci.json config-file: cypress_ci.config.ts
group: "Electrons on Github Action Fat Container" group: "Electrons on Github Action Fat Container"
spec: ${{ env.failed_spec_env }} spec: ${{ env.failed_spec_env }}
working-directory: app/client working-directory: app/client
@ -404,7 +406,7 @@ jobs:
if: failure() if: failure()
run: | run: |
cd ${{ github.workspace }}/app/client/cypress/ cd ${{ github.workspace }}/app/client/cypress/
find screenshots -type f \( -iname "*\(attempt 2\).png" -o -iname "*before all hook*" -o -iname "*after all hook*" \) | sed 's/screenshots/cypress\/integration/g'| sed 's:/[^/]*$::' | sort -u > ~/failed_spec_ci/failed_spec_ci-${{ matrix.job }} find screenshots -type f \( -iname "*\(attempt 2\).png" -o -iname "*before all hook*" -o -iname "*after all hook*" \) | sed 's/screenshots/cypress\/e2e/g'| sed 's:/[^/]*$::' | sort -u > ~/failed_spec_ci/failed_spec_ci-${{ matrix.job }}
# reset the failed_spec_ci file in case of success # reset the failed_spec_ci file in case of success
- name: In case of test success reset the failed_spec_ci file - name: In case of test success reset the failed_spec_ci file