45
45
- run : |
46
46
pip install . --no-cache-dir
47
47
pip install docarray==0.21.0 # only valid for this version. I think we should remove this schema loading
48
+ pip install docarray==1.10.3
48
49
JINA_VERSION=$(sed -n '/^__version__/p' ./jina/__init__.py | cut -d \' -f2)-master
49
50
echo "JINA_VERSION=${JINA_VERSION}" >> $GITHUB_ENV
50
51
cd schema
@@ -108,6 +109,7 @@ jobs:
108
109
matrix :
109
110
python-version : ["3.10"]
110
111
protobuf-version : ['==3.19.6', '']
112
+ pydantic-version : ['==1.10.3', '<3.0.0']
111
113
steps :
112
114
113
115
- name : Set up Python ${{ matrix.python-version }}
@@ -118,6 +120,7 @@ jobs:
118
120
uses : actions/setup-go@v2
119
121
with :
120
122
go-version : 1.19.5
123
+
121
124
- name : Install dependencies
122
125
run : |
123
126
python -m pip install --upgrade pip
@@ -130,7 +133,8 @@ jobs:
130
133
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
131
134
- name : Prepare environment
132
135
run : |
133
- docker build -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
136
+ # Take into account in the `test-pip` the versions
137
+ docker build --build-arg PYDANTIC_VERSION="${{ matrix.pydantic-version }}" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
134
138
python -m pip install --upgrade pip
135
139
python -m pip install wheel
136
140
WHEEL_FILE=$(ls dist/*whl)
@@ -140,22 +144,24 @@ jobs:
140
144
else
141
145
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
142
146
fi
147
+ pip install pydantic"${{ matrix.pydantic-version }}"
143
148
jina
144
149
export JINA_LOG_LEVEL="ERROR"
145
150
- name : Test
146
151
id : test
147
152
run : |
148
153
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/unit/serve/runtimes/test_helper.py
149
- pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_v2.py
150
154
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/deployment_http_composite
151
155
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_singleton.py
152
156
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_parameters_as_pydantic.py
153
157
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_streaming.py
154
158
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/csp
155
159
pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/docker
160
+ pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_v2.py
161
+ pytest --suppress-no-test-exit-code --force-flaky --min-passes 1 --max-runs 5 --cov=jina --cov-report=xml --timeout=600 -v -s --ignore-glob='tests/integration/hub_usage/dummyhub*' tests/integration/docarray_v2/test_errors.py
156
162
echo "flag it as jina for codeoverage"
157
163
echo "codecov_flag=jina" >> $GITHUB_OUTPUT
158
- timeout-minutes : 45
164
+ timeout-minutes : 60
159
165
env :
160
166
JINA_AUTH_TOKEN : " ${{ secrets.JINA_AUTH_TOKEN }}"
161
167
- name : Check codecov file
@@ -165,13 +171,14 @@ jobs:
165
171
files : " coverage.xml"
166
172
- name : Upload coverage from test to Codecov
167
173
168
- if : steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8 '
174
+ if : steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10 '
169
175
with :
170
176
file : coverage.xml
171
177
name : ${{ matrix.test-path }}-codecov
172
178
flags : ${{ steps.test.outputs.codecov_flag }}
173
179
fail_ci_if_error : false
174
180
181
+
175
182
stateful-docarray-v-two-test :
176
183
needs : prep-testbed
177
184
runs-on : ubuntu-latest
@@ -182,6 +189,7 @@ jobs:
182
189
matrix :
183
190
python-version : ["3.10"]
184
191
protobuf-version : ['==3.19.6', '']
192
+ pydantic-version : ['==1.10.3', '<3.0.0']
185
193
steps :
186
194
187
195
- name : Set up Python ${{ matrix.python-version }}
@@ -205,7 +213,8 @@ jobs:
205
213
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
206
214
- name : Prepare environment
207
215
run : |
208
- docker build -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
216
+ # Take into account in the `test-pip` the versions
217
+ docker build --build-arg PYDANTIC_VERSION="${{ matrix.pydantic-version }}" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
209
218
python -m pip install --upgrade pip
210
219
python -m pip install wheel
211
220
WHEEL_FILE=$(ls dist/*whl)
@@ -215,6 +224,7 @@ jobs:
215
224
else
216
225
pip install -U protobuf${{ matrix.protobuf-version }} grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
217
226
fi
227
+ pip install pydantic"${{ matrix.pydantic-version }}"
218
228
jina
219
229
export JINA_LOG_LEVEL="ERROR"
220
230
- name : Test stateful
@@ -233,7 +243,7 @@ jobs:
233
243
files : " coverage.xml"
234
244
- name : Upload coverage from test to Codecov
235
245
236
- if : steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8 '
246
+ if : steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10 '
237
247
with :
238
248
file : coverage.xml
239
249
name : ${{ matrix.test-path }}-codecov
@@ -474,12 +484,13 @@ jobs:
474
484
setuptools-golang-build-manylinux-wheels --pythons cp310-cp310
475
485
- name : Prepare environment
476
486
run : |
477
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
487
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
478
488
python -m pip install --upgrade pip
479
489
python -m pip install wheel
480
490
WHEEL_FILE=$(ls dist/*whl)
481
491
pip install "$WHEEL_FILE[all]" --no-cache-dir
482
492
pip install docarray==0.21.0
493
+ pip install pydantic==1.10.3
483
494
pip install grpcio==1.65.5 grpcio-reflection==1.65.5 grpcio-health-checking==1.65.5
484
495
jina
485
496
export JINA_LOG_LEVEL="ERROR"
@@ -517,7 +528,7 @@ jobs:
517
528
matrix :
518
529
core : ['', 'true']
519
530
perf : ['', 'true']
520
- python-env : ['3.7', '3.8', ' 3.9', ' 3.10', ' 3.11' ]
531
+ python-version : ["3.8", " 3.9", " 3.10", " 3.11" ]
521
532
exclude :
522
533
- core : ' true'
523
534
perf : ' true'
@@ -532,6 +543,7 @@ jobs:
532
543
python -m pip install --upgrade pip
533
544
python -m pip install wheel
534
545
pip install --no-cache-dir .
546
+ pip list
535
547
env :
536
548
JINA_PIP_INSTALL_CORE : ${{ matrix.core }}
537
549
JINA_PIP_INSTALL_PERF : ${{ matrix.perf }}
@@ -576,28 +588,6 @@ jobs:
576
588
- run : |
577
589
docker run --platform ${{ matrix.test-arch }} localhost:5000/jina/multiarch:latest -v
578
590
579
- hub-test :
580
- needs : update-schema
581
- runs-on : ubuntu-latest
582
- if : ${{ !github.event.pull_request.head.repo.fork }}
583
- steps :
584
- # - name: Cancel Previous Runs
585
-
586
- # with:
587
- # access_token: ${{ github.token }}
588
-
589
- - name : Set up Python 3.10
590
- uses : actions/setup-python@v4
591
- with :
592
- python-version : " 3.10"
593
- - name : Test hubapp with hubpods
594
- run : |
595
- ./tests/jinahub/test_integration.sh
596
- timeout-minutes : 30
597
- env :
598
- JINAHUB_USERNAME : ${{ secrets.JINAHUB_USERNAME }}
599
- JINAHUB_PASSWORD : ${{ secrets.JINAHUB_PASSWORD }}
600
-
601
591
k8s-flow-test :
602
592
needs : update-schema
603
593
runs-on : ubuntu-latest
@@ -609,11 +599,12 @@ jobs:
609
599
python-version : " 3.10"
610
600
- name : Prepare enviroment
611
601
run : |
612
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
602
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
613
603
python -m pip install --upgrade pip
614
604
python -m pip install wheel
615
605
pip install ".[all]" --no-cache-dir
616
606
pip install docarray==0.21.0
607
+ pip install pydantic==1.10.3
617
608
jina
618
609
export JINA_LOG_LEVEL="ERROR"
619
610
curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl
@@ -651,11 +642,12 @@ jobs:
651
642
python-version : " 3.10"
652
643
- name : Prepare enviroment
653
644
run : |
654
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
645
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
655
646
python -m pip install --upgrade pip
656
647
python -m pip install wheel
657
648
pip install ".[all]" --no-cache-dir
658
649
pip install docarray==0.21.0
650
+ pip install pydantic==1.10.3
659
651
jina
660
652
export JINA_LOG_LEVEL="ERROR"
661
653
curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl
@@ -693,11 +685,12 @@ jobs:
693
685
python-version : " 3.10"
694
686
- name : Prepare enviroment
695
687
run : |
696
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
688
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
697
689
python -m pip install --upgrade pip
698
690
python -m pip install wheel
699
691
pip install ".[all]" --no-cache-dir
700
692
pip install docarray==0.21.0
693
+ pip install pydantic==1.10.3
701
694
jina
702
695
export JINA_LOG_LEVEL="ERROR"
703
696
curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl
@@ -735,11 +728,12 @@ jobs:
735
728
python-version : " 3.10"
736
729
- name : Prepare enviroment
737
730
run : |
738
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
731
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
739
732
python -m pip install --upgrade pip
740
733
python -m pip install wheel
741
734
pip install ".[all]" --no-cache-dir
742
735
pip install docarray==0.21.0
736
+ pip install pydantic==1.10.3
743
737
jina
744
738
export JINA_LOG_LEVEL="ERROR"
745
739
curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl
@@ -778,11 +772,12 @@ jobs:
778
772
python-version : " 3.10"
779
773
- name : Prepare enviroment
780
774
run : |
781
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
775
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
782
776
python -m pip install --upgrade pip
783
777
python -m pip install wheel
784
778
pip install ".[all]" --no-cache-dir
785
779
pip install docarray==0.21.0
780
+ pip install pydantic==1.10.3
786
781
jina
787
782
export JINA_LOG_LEVEL="ERROR"
788
783
curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl
@@ -818,11 +813,12 @@ jobs:
818
813
python-version : " 3.10"
819
814
- name : Prepare enviroment
820
815
run : |
821
- docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
816
+ docker build --build-arg DOCARRAY_VERSION="0.21.0" --build-arg PYDANTIC_VERSION="==1.10.3" - f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
822
817
python -m pip install --upgrade pip
823
818
python -m pip install wheel
824
819
pip install ".[all]" --no-cache-dir
825
820
pip install docarray==0.21.0
821
+ pip install pydantic==1.10.3
826
822
jina
827
823
export JINA_LOG_LEVEL="ERROR"
828
824
env :
@@ -867,7 +863,7 @@ jobs:
867
863
# just for blocking the merge until all parallel core-test are successful
868
864
success-all-steps :
869
865
runs-on : ubuntu-latest
870
- needs : [core-test, docarray-v-two-test, stateful-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]
866
+ needs : [core-test, docarray-v-two-test, stateful-docarray-v-two-test, import-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]
871
867
if : always()
872
868
steps :
873
869
- uses : technote-space/workflow-conclusion-action@v2
0 commit comments