-
Notifications
You must be signed in to change notification settings - Fork 625
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
Hub crash and system information reports using Bugout #624
Conversation
Locust summaryGit referencesInitial: 1ac80bbTerminal: dd83ce1 hub/exceptions.pyChanges:
hub/report.pyChanges:
hub/cli/command.pyChanges:
|
Just added functionality to support reporting with client IDs and session IDs. |
@zomglings Looks like I'm missing a dependency, can you help? |
@mynameisvinn : |
Fixed the install issue with the non-existent import. It was because I was importing all of hub in setup.py to get the version, that wasn't a good idea. |
@zomglings mind submitting a PR when you're ready? |
@mynameisvinn : Do you mean I should open a new PR? |
Locust summaryGit referencesInitial: e890bafTerminal: b37523b hub/exceptions.pyChanges:
hub/report.pyChanges:
hub/cli/command.pyChanges:
|
e614958
to
adeb7ac
Compare
2c17607
to
aa40f8f
Compare
@imshashank mind taking a look before we merge into master for Monday's release? |
@mynameisvinn , @davidbuniat , @mikayelh : As we discussed, here is a pull request with the code required to collect crash reports and system information from users who opt into reporting.
Consent
Users can currently consent to reporting by running
hub consent --allow
. This is an opt in process and by default we do not assume consent.If users have given consent but would like to revoke it, they can run
hub consent --disallow
.If users would like to temporarily turn off consent, they can just set the environment variable
HUB_REPORTING_ENABLED=0
.Report types
This code currently sends two types of reports:
Improvements
I plan to make some improvements over the weekend:
hub/__init__.py
to make this easier - it's a good practice because it also makes it easier for you to display it withclick
.pip freeze
information in reports.hub reports send -f <report file>
Let me know if you would like any other improvements.
Installation
You can use this branch by running:
Viewing reports
@mynameisvinn and @davidbuniat : You both have accounts at https://bugout.dev and I added you to a knowledge base called
Hub exceptions demo
where reports will be pushed.The knowledge base search makes it easy to filter over reports and do things like filter in/out OS, python version, etc. I will show that to you in our meeting next week.