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

[FLOC-4421] Diffing of objects #2806

Merged
merged 15 commits into from
Jun 2, 2016
Merged

[FLOC-4421] Diffing of objects #2806

merged 15 commits into from
Jun 2, 2016

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.

2 participants