-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
Signed-off-by: Sahil Suneja <[email protected]>
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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) |
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.
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' |
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.
can you also add a travis test for new docker version ?
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.
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.
Signed-off-by: Sahil Suneja [email protected]
fix for #260