CI: Disable server unit test in TBD (#39520)
## Description Disable server unit test in TBD Fixes #`Issue Number` ## Automation /ok-to-test tags="" ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ X ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Streamlined our automated build and test workflows by simplifying test dependencies. - Enhanced the release process efficiency by removing an outdated testing step from our continuous integration pipeline. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
62fb0e286b
commit
1e473d9567
41
.github/workflows/test-build-docker-image.yml
vendored
41
.github/workflows/test-build-docker-image.yml
vendored
|
|
@ -122,16 +122,16 @@ jobs:
|
|||
matrix: ${{needs.setup.outputs.matrix}}
|
||||
ted_tag: ${{inputs.ted_tag}}
|
||||
|
||||
server-unit-tests:
|
||||
name: server-unit-tests
|
||||
needs: [build-docker-image]
|
||||
if: success() && ( github.event_name != 'push' || github.ref == 'refs/heads/master')
|
||||
uses: ./.github/workflows/server-build.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
pr: 0
|
||||
skip-tests: false
|
||||
is-pg-build: ${{ github.ref == 'refs/heads/pg' }}
|
||||
#server-unit-tests:
|
||||
# name: server-unit-tests
|
||||
# needs: [build-docker-image]
|
||||
# if: success() && ( github.event_name != 'push' || github.ref == 'refs/heads/master')
|
||||
# uses: ./.github/workflows/server-build.yml
|
||||
# secrets: inherit
|
||||
# with:
|
||||
# pr: 0
|
||||
# skip-tests: false
|
||||
# is-pg-build: ${{ github.ref == 'refs/heads/pg' }}
|
||||
|
||||
client-unit-tests:
|
||||
name: client-unit-tests
|
||||
|
|
@ -143,7 +143,8 @@ jobs:
|
|||
pr: 0
|
||||
|
||||
ci-test-result:
|
||||
needs: [ci-test, client-unit-tests, server-unit-tests]
|
||||
#needs: [ci-test, client-unit-tests, server-unit-tests]
|
||||
needs: [ci-test, client-unit-tests]
|
||||
if: always() &&
|
||||
(github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'schedule' ||
|
||||
|
|
@ -279,7 +280,8 @@ jobs:
|
|||
|
||||
- name: Return status for ui-matrix
|
||||
run: |
|
||||
if [[ "${{ needs.ci-test.result }}" == "success" && "${{ needs.client-unit-tests.result }}" == "success" && "${{ needs.server-unit-tests.result }}" == "success" ]]; then
|
||||
#if [[ "${{ needs.ci-test.result }}" == "success" && "${{ needs.client-unit-tests.result }}" == "success" && "${{ needs.server-unit-tests.result }}" == "success" ]]; then
|
||||
if [[ "${{ needs.ci-test.result }}" == "success" && "${{ needs.client-unit-tests.result }}" == "success" ]]; then
|
||||
echo "Integration, Client unit and Server unit tests completed successfully!";
|
||||
exit 0;
|
||||
elif [[ "${{ needs.ci-test.result }}" == "skipped" ]]; then
|
||||
|
|
@ -288,15 +290,15 @@ jobs:
|
|||
elif [[ "${{ needs.client-unit-tests.result }}" == "skipped" ]]; then
|
||||
echo "Client unit tests were skipped";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.server-unit-tests.result }}" == "skipped" ]]; then
|
||||
echo "Server unit tests were skipped";
|
||||
exit 1;
|
||||
#elif [[ "${{ needs.server-unit-tests.result }}" == "skipped" ]]; then
|
||||
# echo "Server unit tests were skipped";
|
||||
# exit 1;
|
||||
elif [[ "${{ needs.client-unit-tests.result }}" == "failure" ]]; then
|
||||
echo "Client unit tests have failed";
|
||||
exit 1;
|
||||
elif [[ "${{ needs.server-unit-tests.result }}" == "failure" ]]; then
|
||||
echo "Server unit tests have failed";
|
||||
exit 1;
|
||||
#elif [[ "${{ needs.server-unit-tests.result }}" == "failure" ]]; then
|
||||
# echo "Server unit tests have failed";
|
||||
# exit 1;
|
||||
else
|
||||
echo "Integration tests have failed";
|
||||
exit 1;
|
||||
|
|
@ -395,7 +397,8 @@ jobs:
|
|||
org.opencontainers.image.version=${{ steps.info_json.outputs.version }}
|
||||
|
||||
package-master:
|
||||
needs: [ci-test, client-unit-tests, server-unit-tests]
|
||||
#needs: [ci-test, client-unit-tests, server-unit-tests]
|
||||
needs: [ci-test, client-unit-tests]
|
||||
runs-on: ubuntu-latest
|
||||
# Set permissions since we're using OIDC token authentication between Depot and GitHub
|
||||
permissions:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user