-
Notifications
You must be signed in to change notification settings - Fork 290
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
[FLOC-4421] Diffing of objects #2806
Conversation
…empt-implementation
…empt-implementation
…mpt-implementation
@@ -0,0 +1,247 @@ | |||
# Copyright ClusterHQ Inc. See LICENSE file for details. | |||
# -*- test-case-name: flocker.control.test.test_diffing -*- | |||
|
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.
Add a module docstring.
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.
done
Thanks @sarum90 This looks great. I see now why the Node and Application pmaps make this so much easier. I noted some missing test coverage which we should probably address before merging. |
In order to be able to just send Configuration and State diffs to all of the nodes, Flocker needs to have a mechanism to compute the diff between two different Configurations or two different States.
This Adds a generic "Diffs between pyrsistent objects" module, and adds a bunch of hypothesis strategies to generate deployments in order to assist in testing the diffing algorithm.