-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use packaged msgpack #55354
Use packaged msgpack #55354
Conversation
re-run full all |
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.
🚀
b24705d
to
dd47818
Compare
Codecov Report
@@ Coverage Diff @@
## master #55354 +/- ##
===========================================
- Coverage 40.05% 18.43% -21.61%
===========================================
Files 1484 816 -668
Lines 261512 174097 -87415
Branches 56214 37405 -18809
===========================================
- Hits 104717 32077 -72640
+ Misses 144600 139454 -5146
+ Partials 12195 2566 -9629
|
Cleaned up the history now that it's all green 👍. @dwoz I tried to move as much msgpack logic as possible from salt/payload.py to salt/utils/msgpack.py. If I move much more then the msgpack module starts behaving too differently from the base msgpack module |
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.
Does this replace all of the import msgpack
?
It would be full of winning if we could add a lint rule to stop any import msgpack
- though I'm not sure if those rules are in this repo.
In most cases, yes, It replaces most |
This commit introduces salt.utils.msgpack modifies all places in the code that either use json or msgpack to use salt.utils.json or salt.utils.msgpack respectively. While this change itself does not have any effect, it is important to allow for centrally dealing with objects that cannot be directly serialied via json or msgpack.
When accessing msgpack.Unpacker, we cannot use salt.utils.msgpack, but we do not have to either.
re-run full debian8 |
re-run full macosxmojave |
What does this PR do?
Separates msgpack changes from #54878
Adds a significant amount of testing to new msgpack module