You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(BA-6003): address CI failures from BackendAISchema migration
* Remove unused BaseModel imports in toml.py, extractor.py,
sokovan/deployment/strategy/types.py.
* Reflow long line in manager/api/utils.py to satisfy ruff format.
* Migrate test classes in tests/unit/common/configs/{test_meta,
test_generator,test_inspector}.py from BaseModel to BackendAISchema
so they match the narrowed type[BackendAISchema] signatures.
* Update test sites expecting raw pydantic.ValidationError to also
accept BackendAISchemaValidationFailed via tuple-catch: bulk
s/pytest.raises(ValidationError)/pytest.raises((BackendAISchemaValidationFailed,
ValidationError))/ plus the corresponding import. Tests against
DTO.model_validate now see the wrapped exception; the
ValidationError arm still covers constructor paths and any plain
BaseModel fallback.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments