-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add event serialization testing #9573
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9573 +/- ##
==========================================
- Coverage 91.87% 91.84% -0.04%
==========================================
Files 433 433
Lines 26770 26770
==========================================
- Hits 24595 24586 -9
- Misses 2175 2184 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #9573 will improve performances by 11.06%Comparing Summary
Benchmarks breakdown
|
261b703
to
bdac9c6
Compare
event, _ = args | ||
event_json = event_to_json(event) | ||
round_trip_event = event_from_json(str(event_json)) | ||
assert event == round_trip_event |
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.
In this case, if we get a FullSnapshotEvent
or a SnapshotUpdateEvent
, are we able to differentiate them?
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.
Good point
Issue
Resolves #9517
Approach
Add serialization roundtrip for all events generated by EverestRunModel
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable