Problem
The inference-services-pipeline-logo-detection-publish CI job fails at the pip install step:
- kserve==0.11.2 (model server requirements) pins fastapi<0.96, which requires pydantic<2
- python/requirements.txt (shared) has pydantic-settings==2.8.1, which requires pydantic>=2.7
This makes resolution impossible:
ERROR: ResolutionImpossible pydantic-settings 2.8.1 depends on pydantic>=2.7.0 fastapi 0.95.2 depends on pydantic<2.0.0
Failed build: https://integration.wikimedia.org/ci/job/inference-services-pipeline-logo-detection-publish/40/console
Solution
Bump kserve to 0.15.2 in src/models/logo_detection/model_server/requirements.txt.
Verified locally that resolution succeeds (pydantic 2.13.4, fastapi 0.141.1, no ray dependency → smaller image), compatible with tensorflow-cpu 2.16.1 / keras 3.2.1.
TODO
- Bump kserve to 0.15.2