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

fixed new docker versioning vs semantic_version #267

Merged
merged 2 commits into from
Mar 21, 2017

Conversation

sahilsuneja1
Copy link
Contributor

Signed-off-by: Sahil Suneja [email protected]
fix for #260

@codecov-io
Copy link

codecov-io commented Mar 14, 2017

Codecov Report

Merging #267 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #267      +/-   ##
==========================================
+ Coverage   89.31%   89.34%   +0.02%     
==========================================
  Files         111      111              
  Lines        4147     4157      +10     
==========================================
+ Hits         3704     3714      +10     
  Misses        443      443
Impacted Files Coverage Δ
crawler/utils/dockerutils.py 96.68% <100%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2dcbb96...86d8660. Read the comment docs.

def _fix_version(v):
# removing leading zeroes from docker version
# which are not liked by semantic_version
version_parts = re.match(r'(\d+).(\d+).(\d+)', v)
Copy link
Contributor

Choose a reason for hiding this comment

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

So essentially for docker version "17.04.01-ce", "17.04.01" would be compared against 1.10.0?

@@ -44,6 +45,14 @@ def tearDown(self):

shutil.rmtree(self.tempd)

def test_fix_version(self):
import semantic_version
ver = u'17.03.01-ce'
Copy link
Contributor

Choose a reason for hiding this comment

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

can you also add a travis test for new docker version ?

Copy link
Contributor

@nadgowdas nadgowdas left a comment

Choose a reason for hiding this comment

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

As discussed with @sahilsuneja1 he will create a new PR to update travis configs to run testa against new docker version. Issue #267 opened to track this.

@nadgowdas nadgowdas merged commit 5f7fc42 into cloudviz:master Mar 21, 2017
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