Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

fix(scheduler): use semver package to compare server version#1167

Merged
bacongobbler merged 1 commit into
deis:masterfrom
bacongobbler:fix-1159
Dec 12, 2016
Merged

fix(scheduler): use semver package to compare server version#1167
bacongobbler merged 1 commit into
deis:masterfrom
bacongobbler:fix-1159

Conversation

@bacongobbler
Copy link
Copy Markdown
Member

Since the server version can be any valid string type, it is incorrect to assume that the minor
version can be converted into a float value. Instead, it is better to compare it as a string using
the semver package.

closes #1159.

@bacongobbler bacongobbler added this to the v2.10 milestone Dec 9, 2016
@bacongobbler bacongobbler self-assigned this Dec 9, 2016
@deis-bot
Copy link
Copy Markdown

deis-bot commented Dec 9, 2016

@helgi, @mboersma and @kmala are potential reviewers of this pull request based on my analysis of git blame information. Thanks @bacongobbler!

@bacongobbler
Copy link
Copy Markdown
Member Author

looks like the tests are failing. One sec

Since the server version can be any valid string type, it is incorrect to assume that the minor
version can be converted into a float value. Instead, it is better to compare it as a string using
pypa's packaging library, which consists of a core set of utilities for python packages..
@codecov-io
Copy link
Copy Markdown

Current coverage is 87.73% (diff: 75.00%)

Merging #1167 into master will increase coverage by <.01%

@@             master      #1167   diff @@
==========================================
  Files            42         42          
  Lines          3716       3718     +2   
  Methods           0          0          
  Messages          0          0          
  Branches        646        646          
==========================================
+ Hits           3260       3262     +2   
  Misses          299        299          
  Partials        157        157          

Powered by Codecov. Last update 3b6d094...b52013d

@bacongobbler bacongobbler merged commit 62f081a into deis:master Dec 12, 2016
@bacongobbler bacongobbler deleted the fix-1159 branch December 12, 2016 20:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoscale:set throws an exception

5 participants