-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add version metadata #4874
Add version metadata #4874
Conversation
Codecov Report
|
1849e36
to
e019e57
Compare
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.
Awesome!
'version.patch': '4', | ||
'version.scheme': 'semver', | ||
} | ||
assert expected == 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.
(nit) This could be a parameterized test.
Currently if the firs case fail, the following cases are not run.
db.cursor().fetchone.return_value = ['11nightly3'] | ||
assert get_version(db) == VersionInfo(11, -1, 3) | ||
version = parse_version('11nightly3') | ||
assert version == VersionInfo(11, 0, 0, 'nightly.3') |
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.
(nit) This could be a parameterized test.
Currently if the firs case fail, the following cases are not run.
@@ -749,3 +751,4 @@ def check(self, instance): | |||
self.db.commit() | |||
except Exception as e: | |||
self.log.warning("Unable to commit: %s", e) | |||
self._version = None # We don't want to cache versions between runs to capture minor updates for metadata |
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.
(nit) In this case, maybe we should just pass down the version as method parameter instead of caching it on self._version. Seems easier to understand and less error prone.
Adds inventories to PG, also stop using negative versions for betas
Depends on #4844