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

Tests get imageRef from nova #1835

Merged
merged 5 commits into from
Feb 10, 2016
Merged

Tests get imageRef from nova #1835

merged 5 commits into from
Feb 10, 2016

Conversation

manishtomar
Copy link
Contributor

instead of configured one. This overcomes rackerlabs/mimic#513 and allows us to use latest mimic.

Manish Tomar added 2 commits February 1, 2016 11:51
instead of IMAGE_REF env.
instead of configured imageRef
@manishtomar
Copy link
Contributor Author

@glyph review please? Meanwhile, let me see how to deploy pinned mimic version in this repo instead of constantly changing the git revision in https://github.com/rackerlabs/autoscaling-chef

@glyph
Copy link
Contributor

glyph commented Feb 2, 2016

Goin' in the queue…

@manishtomar
Copy link
Contributor Author

jenkins please run integration tests

1 similar comment
@manishtomar
Copy link
Contributor Author

jenkins please run integration tests

This version of mimic will be installed when running integration tests
@manishtomar
Copy link
Contributor Author

jenkins please run integration tests

@@ -10,6 +10,9 @@ class AutoscaleConfig(ConfigSectionInterface):
"""
SECTION_NAME = 'autoscale'

lc_image_ref = None
Copy link
Contributor

Choose a reason for hiding this comment

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

Mutable staaaaate :-(

I do like the fact that this makes the data structure more regular-python-ish and less of a wrapper around a weird dictionary. But I don't like the fact that this change results in even less documentation for these two properties. It took me a minute to understand what they were supposed to be, and why this was in a "config section" at all. Can you add some :ivar: documentation to the class docstring?

Also, these are default-NULL, which I am coming to believe is always an antipattern. I wrote some about this in Python: https://glyph.twistedmatrix.com/2015/09/python-option-types.html and of course there's the option of sumtypes. When and why are these values None?

@glyph
Copy link
Contributor

glyph commented Feb 10, 2016

Once again sorry for the delay.

This mostly seems fine; 👍 . I have a lot of concerns about the cloudcafe code, but most of that stuff is not really related to this PR. My general comment is maybe take a little more care in documenting parameter types and return values since not all of this stuff is very straightforward and I am betting that you will be cursing yourself in 6 months if you come back to it and are trying to remember why the twisted and blocking image-ID fetchers work differently :-). So maybe refine the names or add a little bit more docs, but otherwise it looks like it's doing the right thing for mimc.

@manishtomar
Copy link
Contributor Author

Once again sorry for the delay.

No problem at all 😄 . I should say a big thanks for reviewing such a messy code. I can try to understand how confusing and horrible this can look from external eyes 😕

@manishtomar
Copy link
Contributor Author

jenkins please run integration tests

manishtomar added a commit that referenced this pull request Feb 10, 2016
@manishtomar manishtomar merged commit 1d6c7f1 into master Feb 10, 2016
@manishtomar manishtomar deleted the tests-imageid branch February 10, 2016 20:16
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