openconfig / models-ci

Continuous integration for OpenConfig models.
Apache License 2.0
1 stars 0 forks source link

Do not allow semantic version to go backwards. #55

Closed robshakir closed 3 years ago

robshakir commented 3 years ago

We pushed a public model that had a revision that went backwards in terms of semantic version. CI should not allow this to happen.

robshakir commented 3 years ago

hey Wen - I can take a look at this if you like, it looks like we might just be able to take https://github.com/Masterminds/semver and check whether the new version is less than the old one.

It seems like it'd be worth pulling this out into a util function so we can test it.