fix: unsatisfiable testing dependencies caused by a version conflict #30646
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix: Resolve dependency conflict with model-hosting-container-standards
Problem
Issue #30595 reported unsatisfiable testing dependencies caused by a version conflict between:
model-hosting-container-standards >= 0.1.9(requiresstarlette >= 0.49.1)fastapi[standard] >= 0.115.0(some versions requirestarlette < 0.48.0)This conflict prevented successful dependency resolution during testing and development.
Root Cause Analysis
The dependency conflict occurred because:
model-hosting-container-standards >= 0.1.9was added in PR Revert "Supress verbose logs from model_hosting_container_standards (… #29335starlette >= 0.49.1fastapi[standard] >= 0.115.0constraint allowed FastAPI 0.116.1starlette >= 0.40.0, < 0.48.0starlette >= 0.49.1vsstarlette < 0.48.0Solution
Updated the FastAPI version constraint in
requirements/common.txt:fastapi[standard] >= 0.115.0fastapi[standard] >= 0.117.0FastAPI 0.117.0+ supports
starlette >= 0.49.1, making it compatible withmodel-hosting-container-standards >= 0.1.9.Changes Made
Modified
requirements/common.txt:>= 0.115.0to>= 0.117.0Added test validation:
test_dependency_fix.pyto verify the fixVerification
The fix has been validated through:
Testing
Run the validation script:
To regenerate dependencies with the fix:
Impact
Related Issues
Next Steps
After merging this fix:
requirements/test.txtusing uv