-
Notifications
You must be signed in to change notification settings - Fork 85
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
Include a version string in sentry reports #453
Conversation
The following is the sum total of all the testing I've done: $ python
Python 3.9.7 (default, Aug 30 2021, 00:00:00)
[GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sydent.util.versionstring
>>> sydent.util.versionstring.get_version_string()
'[email protected] (b=dmr/version-in-sentry,05e1fa8,dirty)' |
05e1fa8
to
933067c
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.
A couple small nits, but otherwise this looks to mirror Synapse's implementation.
"""Calculate a git-aware version string for sydent. | ||
|
||
Implementation nicked from Synapse. |
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.
I think it's worth writing a bit more here as to what form the version string will actually take (given what information can be found).
@@ -0,0 +1 @@ | |||
Include Sydent's version number when reporting to Sentry. |
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.
Include Sydent's version number when reporting to Sentry. | |
Include Sydent's version number (and git commit hash if available) when reporting to Sentry. |
Will open a second PR with changes for these @anoadragon453 |
No description provided.