ci: Make perf tests a blocking check (#18955)

Make perf tests a blocking check

Co-authored-by: Satish Gandham <hello@satishgandham.com>
This commit is contained in:
Satish Gandham 2022-12-14 18:39:53 +05:30 committed by GitHub
parent 94e21d58df
commit 519dd3a7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -825,8 +825,18 @@ jobs:
# Set status = success
- run: echo "::set-output name=run_result::success" > ~/run_result
perf-test:
needs: [client-build, server-build, rts-build]
# Only run if the build step is successful
if: success()
name: perf-test
uses: ./.github/workflows/perf-test.yml
secrets: inherit
with:
pr: ${{ github.event.client_payload.pull_request.number }}
ui-test-result:
needs: [ui-test, fat-container-test]
needs: [ui-test, fat-container-test, perf-test]
# Only run if the ui-test with matrices step is successful
if: always()
runs-on: ubuntu-latest
@ -975,7 +985,7 @@ jobs:
run: echo "$PAYLOAD_CONTEXT"
- name: Check ui-test set status
if: needs.ui-test.result != 'success' || needs.fat-container-test.result != 'success'
if: needs.ui-test.result != 'success' || needs.fat-container-test.result != 'success' || needs.perf-test.result != 'success'
run: exit 1
package:
@ -1046,12 +1056,3 @@ jobs:
return result;
}
perf-test:
needs: [client-build, server-build, rts-build]
# Only run if the build step is successful
if: success()
name: perf-test
uses: ./.github/workflows/perf-test.yml
secrets: inherit
with:
pr: ${{ github.event.client_payload.pull_request.number }}