-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joan Fontanals Martinez <[email protected]>
- Loading branch information
Showing
6 changed files
with
160 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -537,7 +537,7 @@ jobs: | |
JINAHUB_PASSWORD: ${{ secrets.JINAHUB_PASSWORD }} | ||
|
||
k8s-flow-test: | ||
needs: update-schema | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -576,8 +576,8 @@ jobs: | |
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-graceful-and-deployment-test: | ||
needs: update-schema | ||
k8s-deployment-test: | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -596,11 +596,11 @@ jobs: | |
export JINA_LOG_LEVEL="ERROR" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Test graceful request handling on k8s and Executor deployment on k8s | ||
- name: Test k8s Flow | ||
run: | | ||
export LINKERD2_VERSION=stable-2.11.4 | ||
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_deployment.py ./tests/k8s/test_k8s_graceful_request_handling.py | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_deployment.py | ||
timeout-minutes: 30 | ||
- name: Check codecov file | ||
id: check_files | ||
|
@@ -616,9 +616,49 @@ jobs: | |
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-graceful-test: | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Prepare enviroment | ||
run: | | ||
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip . | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel | ||
pip install ".[all]" --no-cache-dir | ||
pip install docarray==0.21.0 | ||
jina | ||
export JINA_LOG_LEVEL="ERROR" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Test graceful request handling on k8s and Executor deployment on k8s | ||
run: | | ||
export LINKERD2_VERSION=stable-2.11.4 | ||
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_graceful_request_handling.py | ||
timeout-minutes: 45 | ||
- name: Check codecov file | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "coverage.xml" | ||
- name: Upload coverage from test to Codecov | ||
uses: codecov/[email protected] | ||
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' | ||
with: | ||
file: coverage.xml | ||
name: ${{ matrix.test-path }}-codecov | ||
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-failures-test: | ||
needs: [ lint-flake-8, code-injection ] | ||
runs-on: ubuntu-latest | ||
needs: update-schema | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
|
@@ -642,6 +682,44 @@ jobs: | |
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | ||
curl --proto '=https' --tlsv1.2 -sSfL https://linkerd.github.io/linkerd-smi/install | sh | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_failures.py | ||
timeout-minutes: 45 | ||
- name: Check codecov file | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "coverage.xml" | ||
- name: Upload coverage from test to Codecov | ||
uses: codecov/[email protected] | ||
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' | ||
with: | ||
file: coverage.xml | ||
name: ${{ matrix.test-path }}-codecov | ||
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-otel-test: | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Prepare enviroment | ||
run: | | ||
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip . | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel | ||
pip install ".[all]" --no-cache-dir | ||
pip install docarray==0.21.0 | ||
jina | ||
export JINA_LOG_LEVEL="ERROR" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Test k8s | ||
run: | | ||
pytest -v -s --cov=jina --cov-report=xml ./tests/k8s_otel | ||
timeout-minutes: 30 | ||
- name: Check codecov file | ||
id: check_files | ||
|
@@ -717,7 +795,7 @@ jobs: | |
# just for blocking the merge until all parallel core-test are successful | ||
success-all-steps: | ||
runs-on: ubuntu-latest | ||
needs: [core-test, docarray-v-two-test, import-test, hub-test, k8s-flow-test, k8s-graceful-and-deployment-test, k8s-failures-test, docker-compose-test, docker-image-test, benchmark-pre-release, update-schema, update-docker, pre-release] | ||
needs: [core-test, docarray-v-two-test, import-test, hub-test, k8s-flow-test, k8s-deployment-test, k8s-graceful-test, k8s-failures-test, k8s-otel-test, docker-compose-test, docker-image-test, benchmark-pre-release, update-schema, update-docker, pre-release] | ||
if: always() | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,7 +210,47 @@ jobs: | |
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-graceful-and-deployment-test: | ||
k8s-deployment-test: | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Prepare enviroment | ||
run: | | ||
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip . | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel | ||
pip install ".[all]" --no-cache-dir | ||
pip install docarray==0.21.0 | ||
jina | ||
export JINA_LOG_LEVEL="ERROR" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Test k8s Flow | ||
run: | | ||
export LINKERD2_VERSION=stable-2.11.4 | ||
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_deployment.py | ||
timeout-minutes: 30 | ||
- name: Check codecov file | ||
id: check_files | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "coverage.xml" | ||
- name: Upload coverage from test to Codecov | ||
uses: codecov/[email protected] | ||
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8' | ||
with: | ||
file: coverage.xml | ||
name: ${{ matrix.test-path }}-codecov | ||
flags: ${{ steps.test.outputs.codecov_flag }} | ||
fail_ci_if_error: false | ||
|
||
k8s-graceful-test: | ||
needs: [lint-flake-8, code-injection] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -234,7 +274,7 @@ jobs: | |
run: | | ||
export LINKERD2_VERSION=stable-2.11.4 | ||
curl --proto '=https' --tlsv1.2 -sSfL https://run.linkerd.io/install | sh | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_deployment.py ./tests/k8s/test_k8s_graceful_request_handling.py | ||
pytest -v -s --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml ./tests/k8s/test_k8s_graceful_request_handling.py | ||
timeout-minutes: 45 | ||
- name: Check codecov file | ||
id: check_files | ||
|
@@ -717,7 +757,7 @@ jobs: | |
# just for blocking the merge until all parallel core-test are successful | ||
success-all-test: | ||
runs-on: ubuntu-latest | ||
needs: [commit-lint, core-test, docarray-v-two-test, import-test, hub-test, k8s-flow-test, k8s-failures-test, docker-compose-test, docker-image-test, check-docstring, check-black, code-injection, build-wheels] | ||
needs: [commit-lint, core-test, docarray-v-two-test, import-test, hub-test, k8s-flow-test, k8s-deployment-test, k8s-graceful-test, k8s-failures-test, k8s-otel-test, docker-compose-test, docker-image-test, check-docstring, check-black, code-injection, build-wheels] | ||
|
||
if: always() | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters