-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️Pydantic V2 upgrade: autoscaling #6535
♻️Pydantic V2 upgrade: autoscaling #6535
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## pydantic_v2_migration #6535 +/- ##
=======================================================
Coverage ? 73.1%
=======================================================
Files ? 159
Lines ? 8380
Branches ? 553
=======================================================
Hits ? 6126
Misses ? 2175
Partials ? 79
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot.
Just a note: for performance, be sure to not instantiate TypeAdapter
s in loops/functions continuously called. In that case it's better to put their creation somewhere outside.
See: https://docs.pydantic.dev/latest/concepts/performance/#typeadapter-instantiated-once
Is there a related PR in |
@YuryHrytsuk this is coming... |
Quality Gate passedIssues Measures |
c9a48cc
into
ITISFoundation:pydantic_v2_migration
What do these changes do?
Changes:
AUTOSCALING_POLL_INTERVAL
(and any timedelta types) must be defined as ISO8601 strings or integers/floats (e.g. "00:00:10" instead of "10" (this is not accepted anymore!!)packages/models-library/src/models_library/generated_models/docker_rest_api.py
using pydanticV2, this will generate some issues in other places, will be fixed later (e.g. all fields are now snake cased)Related issue/s
How to test
Dev-ops checklist