Skip to content
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

Fix Pydantic serialization warnings #6992

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

giancarloromeo
Copy link
Contributor

@giancarloromeo giancarloromeo commented Dec 23, 2024

What do these changes do?

Solve serialization warnings like the following, mainly caused by a misuse of model_construct method:

 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected
 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected
 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected
 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected
 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected
 Expected `Author` but got `dict` with value `{'name': 'nodetails', '[email protected]'}` - serialized value may not be as expected

The problem affects both CI (with tests executions) and deployed systems, flooding logs with these messages.

Related issue/s

How to test

Dev-ops checklist

@giancarloromeo giancarloromeo self-assigned this Dec 23, 2024
@giancarloromeo giancarloromeo added the t:maintenance Some planned maintenance work label Dec 23, 2024
@giancarloromeo giancarloromeo added this to the Event Horizon milestone Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.78%. Comparing base (493488c) to head (e5a63c3).

❗ There is a different number of reports uploaded between BASE (493488c) and HEAD (e5a63c3). Click for more details.

HEAD has 29 uploads less than BASE
Flag BASE (493488c) HEAD (e5a63c3)
unittests 30 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #6992       +/-   ##
===========================================
- Coverage   87.02%   65.78%   -21.24%     
===========================================
  Files        1621      696      -925     
  Lines       63993    33239    -30754     
  Branches     2035      262     -1773     
===========================================
- Hits        55688    21866    -33822     
- Misses       7972    11313     +3341     
+ Partials      333       60      -273     
Flag Coverage Δ
integrationtests 64.90% <ø> (+0.31%) ⬆️
unittests 90.57% <100.00%> (+5.54%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 77.37% <ø> (-8.02%) ⬇️
agent ∅ <ø> (∅)
api_server ∅ <ø> (∅)
autoscaling ∅ <ø> (∅)
catalog 90.57% <100.00%> (+<0.01%) ⬆️
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 78.79% <ø> (-12.63%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 59.86% <ø> (-29.89%) ⬇️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
osparc_gateway_server ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 59.21% <ø> (-25.22%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 493488c...e5a63c3. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant