Skip to content

Commit da1d311

Browse files
JoanFMjina-bot
andauthored
feat: change return error code (#6220)
Co-authored-by: Jina Dev Bot <[email protected]>
1 parent 59f832a commit da1d311

File tree

19 files changed

+140
-140
lines changed

19 files changed

+140
-140
lines changed

.github/workflows/cd.yml

+30-32
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
strategy:
107107
fail-fast: false
108108
matrix:
109-
python-version: [3.8]
109+
python-version: ["3.10"]
110110
protobuf-version: ['==3.19.6', '']
111111
steps:
112112
- uses: actions/[email protected]
@@ -127,7 +127,7 @@ jobs:
127127
128128
- name: Build wheels with setuptools-golang-build-manylinux-wheel
129129
run: |
130-
setuptools-golang-build-manylinux-wheels --pythons cp38-cp38
130+
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
131131
- name: Prepare environment
132132
run: |
133133
docker build -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -138,7 +138,7 @@ jobs:
138138
if [[ "${{ matrix.protobuf-version }}" == "==3.19.6" ]]; then
139139
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.47.5 grpcio-reflection==1.47.5 grpcio-health-checking==1.47.5
140140
else
141-
pip install -U protobuf${{ matrix.protobuf-version }}
141+
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
142142
fi
143143
jina
144144
export JINA_LOG_LEVEL="ERROR"
@@ -180,7 +180,7 @@ jobs:
180180
strategy:
181181
fail-fast: false
182182
matrix:
183-
python-version: [3.8]
183+
python-version: ["3.10"]
184184
protobuf-version: ['==3.19.6', '']
185185
steps:
186186
- uses: actions/[email protected]
@@ -202,7 +202,7 @@ jobs:
202202
203203
- name: Build wheels with setuptools-golang-build-manylinux-wheel
204204
run: |
205-
setuptools-golang-build-manylinux-wheels --pythons cp38-cp38
205+
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
206206
- name: Prepare environment
207207
run: |
208208
docker build -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -213,7 +213,7 @@ jobs:
213213
if [[ "${{ matrix.protobuf-version }}" == "==3.19.6" ]]; then
214214
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.47.5 grpcio-reflection==1.47.5 grpcio-health-checking==1.47.5
215215
else
216-
pip install -U protobuf${{ matrix.protobuf-version }}
216+
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
217217
fi
218218
jina
219219
export JINA_LOG_LEVEL="ERROR"
@@ -281,9 +281,6 @@ jobs:
281281
matrix:
282282
include:
283283
# linux
284-
- os: ubuntu-latest
285-
python: '3.7'
286-
python-manylinux-tag: "cp37-cp37m"
287284
- os: ubuntu-latest
288285
python: '3.8'
289286
python-manylinux-tag: "cp38-cp38"
@@ -451,7 +448,7 @@ jobs:
451448
strategy:
452449
fail-fast: false
453450
matrix:
454-
python-version: [3.8]
451+
python-version: ["3.10"]
455452
test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}}
456453
steps:
457454
- uses: actions/[email protected]
@@ -473,7 +470,7 @@ jobs:
473470
474471
- name: Build wheels with setuptools-golang-build-manylinux-wheel
475472
run: |
476-
setuptools-golang-build-manylinux-wheels --pythons cp38-cp38
473+
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
477474
- name: Prepare environment
478475
run: |
479476
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -482,6 +479,7 @@ jobs:
482479
WHEEL_FILE=$(ls dist/*whl)
483480
pip install "$WHEEL_FILE[all]" --no-cache-dir
484481
pip install docarray==0.21.0
482+
pip install grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
485483
jina
486484
export JINA_LOG_LEVEL="ERROR"
487485
- name: Test
@@ -503,7 +501,7 @@ jobs:
503501
files: "coverage.xml"
504502
- name: Upload coverage from test to Codecov
505503
uses: codecov/[email protected]
506-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
504+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
507505
with:
508506
file: coverage.xml
509507
name: ${{ matrix.test-path }}-codecov
@@ -587,10 +585,10 @@ jobs:
587585
# with:
588586
# access_token: ${{ github.token }}
589587
- uses: actions/[email protected]
590-
- name: Set up Python 3.8
588+
- name: Set up Python 3.10
591589
uses: actions/setup-python@v4
592590
with:
593-
python-version: 3.8
591+
python-version: "3.10"
594592
- name: Test hubapp with hubpods
595593
run: |
596594
./tests/jinahub/test_integration.sh
@@ -604,10 +602,10 @@ jobs:
604602
runs-on: ubuntu-latest
605603
steps:
606604
- uses: actions/[email protected]
607-
- name: Set up Python 3.8
605+
- name: Set up Python 3.10
608606
uses: actions/setup-python@v4
609607
with:
610-
python-version: 3.8
608+
python-version: "3.10"
611609
- name: Prepare enviroment
612610
run: |
613611
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -634,7 +632,7 @@ jobs:
634632
files: "coverage.xml"
635633
- name: Upload coverage from test to Codecov
636634
uses: codecov/[email protected]
637-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
635+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
638636
with:
639637
file: coverage.xml
640638
name: ${{ matrix.test-path }}-codecov
@@ -646,10 +644,10 @@ jobs:
646644
runs-on: ubuntu-latest
647645
steps:
648646
- uses: actions/[email protected]
649-
- name: Set up Python 3.8
647+
- name: Set up Python 3.10
650648
uses: actions/setup-python@v4
651649
with:
652-
python-version: 3.8
650+
python-version: "3.10"
653651
- name: Prepare enviroment
654652
run: |
655653
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -676,7 +674,7 @@ jobs:
676674
files: "coverage.xml"
677675
- name: Upload coverage from test to Codecov
678676
uses: codecov/[email protected]
679-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
677+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
680678
with:
681679
file: coverage.xml
682680
name: ${{ matrix.test-path }}-codecov
@@ -688,10 +686,10 @@ jobs:
688686
runs-on: ubuntu-latest
689687
steps:
690688
- uses: actions/[email protected]
691-
- name: Set up Python 3.8
689+
- name: Set up Python 3.10
692690
uses: actions/setup-python@v4
693691
with:
694-
python-version: 3.8
692+
python-version: "3.10"
695693
- name: Prepare enviroment
696694
run: |
697695
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -718,7 +716,7 @@ jobs:
718716
files: "coverage.xml"
719717
- name: Upload coverage from test to Codecov
720718
uses: codecov/[email protected]
721-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
719+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
722720
with:
723721
file: coverage.xml
724722
name: ${{ matrix.test-path }}-codecov
@@ -730,10 +728,10 @@ jobs:
730728
runs-on: ubuntu-latest
731729
steps:
732730
- uses: actions/[email protected]
733-
- name: Set up Python 3.8
731+
- name: Set up Python 3.10
734732
uses: actions/setup-python@v4
735733
with:
736-
python-version: 3.8
734+
python-version: "3.10"
737735
- name: Prepare enviroment
738736
run: |
739737
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -761,7 +759,7 @@ jobs:
761759
files: "coverage.xml"
762760
- name: Upload coverage from test to Codecov
763761
uses: codecov/[email protected]
764-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
762+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
765763
with:
766764
file: coverage.xml
767765
name: ${{ matrix.test-path }}-codecov
@@ -773,10 +771,10 @@ jobs:
773771
runs-on: ubuntu-latest
774772
steps:
775773
- uses: actions/[email protected]
776-
- name: Set up Python 3.8
774+
- name: Set up Python 3.10
777775
uses: actions/setup-python@v4
778776
with:
779-
python-version: 3.8
777+
python-version: "3.10"
780778
- name: Prepare enviroment
781779
run: |
782780
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -801,7 +799,7 @@ jobs:
801799
files: "coverage.xml"
802800
- name: Upload coverage from test to Codecov
803801
uses: codecov/[email protected]
804-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
802+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
805803
with:
806804
file: coverage.xml
807805
name: ${{ matrix.test-path }}-codecov
@@ -813,10 +811,10 @@ jobs:
813811
runs-on: ubuntu-latest
814812
steps:
815813
- uses: actions/[email protected]
816-
- name: Set up Python 3.8
814+
- name: Set up Python 3.10
817815
uses: actions/setup-python@v4
818816
with:
819-
python-version: 3.8
817+
python-version: "3.10"
820818
- name: Prepare enviroment
821819
run: |
822820
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
@@ -839,7 +837,7 @@ jobs:
839837
files: "coverage.xml"
840838
- name: Upload coverage from test to Codecov
841839
uses: codecov/[email protected]
842-
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
840+
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
843841
with:
844842
file: coverage.xml
845843
name: ${{ matrix.test-path }}-codecov

0 commit comments

Comments
 (0)