Find the developer responsible for crashed code from stack trace
Project description
Find The Developer
findcrashedcodedeveloper is python package which return the information about the developer who is responsible for code crash.
- It uses Github v4 graphql APIs for fetching the blame history of a file.
- It uses Sentry APIs to fetch stack trace of crash
Installation
You can install it from PyPI:
pip install findcrashedcodedeveloper
The package is supported on Python 2.7, as well as Python 3.+.
How to use
The findcrashedcodedeveloper has a command line application to demo some common functionality of this package. To see list of supported commands type python -m findcrashedcodedeveloper -h
Get latest issues from Sentry project:
$ findcrashedcodedeveloper sentryissues -s <sentry_api_token> -p <sentry_user_name>/<sentry_project_name>
$ findcrashedcodedeveloper sentryissues -s abcdefgh123 -p karambir252/testproject
Issues:
1964662080 : ZeroDivisionError: integer division or modulo by zero
1864652080 : TypeError: Cannot convert undefined or null to object
1754652310 : IndexError: index -1 is out of bounds for axis 0 with size 0
To get developer responsible for crashed code pass issue id:
$ findcrashedcodedeveloper finddeveloper -s <sentry_api_token> --issue-id 1964662080 -g <github_api_token> -r <repo_owner_username>/<repo>/<branch>
$ findcrashedcodedeveloper finddeveloper -s abcde1234 --issue-id 1964662080 -g abcde1234 -r karambir252/crashassigner/master
Stack Trace:
file: /home/karambir/myproject/project/crashassigner/src/tmp.py
10: c = b/a
file: /home/karambir/myproject/project/crashassigner/src/tmp.py
14: main()
Developer:
Name: karambir252
UserName: karambir252
Email: <email>@gmail.com
You can also get developer of a line of code:
$ findcrashedcodedeveloper codedeveloper -g <github_api_token> -r karambir252/findcrashedcodedeveloper/master --filepath README.md --line-number 30
Code:
17 : lib/
18 : lib64/
19 : parts/
20*: sdist/
21 : var/
22 : wheels/
23 : *.egg-info/
Developer:
Name: karambir252
UserName: karambir252
Email: <email>@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file findcrashedcodedeveloper-0.1.0.tar.gz.
File metadata
- Download URL: findcrashedcodedeveloper-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
492186a69ba2a7abcf6236fd9449898dcd6cf4a1757a340f8cba684c12136488
|
|
| MD5 |
76bc7561e90c952685bb81e82751f50b
|
|
| BLAKE2b-256 |
9e0563e9360ebb7aba8f8d29439ef6a5a843acb97b12a89eb051f29bd86cd327
|
File details
Details for the file findcrashedcodedeveloper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: findcrashedcodedeveloper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1257aa4333f56edbf6931b6b6913272795e89c9c213a761da2cc0326cbb3f29d
|
|
| MD5 |
a7f3e35498261551b5a0e4f3531352d5
|
|
| BLAKE2b-256 |
ff24f5363ad7cd742f60dadfa1c5f255c3334da611b337b149e1f77db71f9d04
|