ci: Removing the old combined failed spec file (#21591)

## Description
- Removing the old combined failed spec file

## Type of change
- workflow files

## How Has This Been Tested?
- Manual

## Checklist:
### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
This commit is contained in:
Saroj 2023-03-20 16:09:00 +05:30 committed by GitHub
parent c0a29f5af9
commit b565f17ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 39 deletions

View File

@ -89,13 +89,9 @@ jobs:
# In case this is second attempt try restoring failed tests # In case this is second attempt try restoring failed tests
- name: Restore the previous failed combine result - name: Restore the previous failed combine result
if: steps.run_result.outputs.run_result == 'failedtest' if: steps.run_result.outputs.run_result == 'failedtest'
uses: martijnhols/actions-cache/restore@v3 uses: actions/download-artifact@v3
with: with:
path: | name: combined_failed_spec_ci
~/combined_failed_spec_ci
key: ${{ github.run_id }}-"ci-test-result"
restore-keys: |
${{ github.run_id }}-${{ github.job }}
# failed_spec_env will contain list of all failed specs # failed_spec_env will contain list of all failed specs
# We are using environment variable instead of regular to support multiline # We are using environment variable instead of regular to support multiline

View File

@ -108,24 +108,21 @@ jobs:
name: failed-spec-ci name: failed-spec-ci
path: ~/failed_spec_ci path: ~/failed_spec_ci
# delete-artifact
- name: delete existing combined_failed_spec_ci artifact
uses: geekyeggo/delete-artifact@v2
with:
name: combined_failed_spec_ci
failOnError: false
# In case for any ci job failure, create combined failed spec # In case for any ci job failure, create combined failed spec
- name: "combine all specs for CI" - name: "combine all specs for CI"
if: needs.ci-test.result != 'success' if: needs.ci-test.result != 'success'
run: cat ~/failed_spec_ci/failed_spec_ci* >> ~/combined_failed_spec_ci run: |
rm -f ~/combined_failed_spec_ci
# Force save the CI failed spec list into a cache cat ~/failed_spec_ci/failed_spec_ci* >> ~/combined_failed_spec_ci
- name: Store the combined run result for CI
if: needs.ci-test.result != 'success'
uses: martijnhols/actions-cache/save@v3
with:
path: |
~/combined_failed_spec_ci
key: ${{ github.run_id }}-"ci-test-result"
restore-keys: |
${{ github.run_id }}-${{ github.job }}
# Upload combined failed CI spec list to a file # Upload combined failed CI spec list to a file
# This is done for debugging.
- name: upload combined failed spec - name: upload combined failed spec
if: needs.ci-test.result != 'success' if: needs.ci-test.result != 'success'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -134,7 +131,7 @@ jobs:
path: ~/combined_failed_spec_ci path: ~/combined_failed_spec_ci
# delete-artifact # delete-artifact
- name: delete failed-spec-ci artifact - name: delete existing failed-spec-ci artifact
uses: geekyeggo/delete-artifact@v2 uses: geekyeggo/delete-artifact@v2
with: with:
name: failed-spec-ci name: failed-spec-ci

View File

@ -89,28 +89,19 @@ jobs:
name: failed-spec-ci name: failed-spec-ci
path: ~/failed_spec_ci path: ~/failed_spec_ci
# delete-artifact
- name: delete existing combined_failed_spec_ci artifact
uses: geekyeggo/delete-artifact@v2
with:
name: combined_failed_spec_ci
failOnError: false
# In case for any ci job failure, create combined failed spec # In case for any ci job failure, create combined failed spec
- name: "combine all specs for CI" - name: "combine all specs for CI"
if: needs.ci-test.result != 'success' if: needs.ci-test.result != 'success'
run: cat ~/failed_spec_ci/failed_spec_ci* >> ~/combined_failed_spec_ci run: |
rm -f ~/combined_failed_spec_ci
# Force save the CI failed spec list into a cache cat ~/failed_spec_ci/failed_spec_ci* >> ~/combined_failed_spec_ci
- name: Store the combined run result for CI
if: needs.ci-test.result != 'success'
uses: martijnhols/actions-cache/save@v3
with:
path: |
~/combined_failed_spec_ci
key: ${{ github.run_id }}-"ci-test-result"
restore-keys: |
${{ github.run_id }}-${{ github.job }}
# delete-artifact
- name: delete failed-spec-ci artifact
uses: geekyeggo/delete-artifact@v2
with:
name: failed-spec-ci
failOnError: false
# Upload combined failed CI spec list to a file # Upload combined failed CI spec list to a file
# This is done for debugging. # This is done for debugging.
@ -121,6 +112,13 @@ jobs:
name: combined_failed_spec_ci name: combined_failed_spec_ci
path: ~/combined_failed_spec_ci path: ~/combined_failed_spec_ci
# delete-artifact
- name: delete existing failed-spec-ci artifact
uses: geekyeggo/delete-artifact@v2
with:
name: failed-spec-ci
failOnError: false
- name: Return status for ui-matrix - name: Return status for ui-matrix
run: | run: |
if [[ "${{ needs.ci-test.result }}" == "success" ]]; then if [[ "${{ needs.ci-test.result }}" == "success" ]]; then