Skip to content

Conversation

@sarum90
Copy link
Contributor

@sarum90 sarum90 commented Jun 2, 2016

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.

@@ -0,0 +1,247 @@
# Copyright ClusterHQ Inc. See LICENSE file for details.
# -*- test-case-name: flocker.control.test.test_diffing -*-

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a module docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wallrj
Copy link
Contributor

wallrj commented Jun 2, 2016

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.

@sarum90 sarum90 merged commit 700eb83 into master Jun 2, 2016
@sarum90 sarum90 deleted the FLOC-4421-flocker-diffing branch June 2, 2016 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants