Scripts for generating OpenStack development community statistics
a376f1ff79
Currently, we are overriding 'install_command' to use 'pip'. This is considered poor behavior and 'python -m pip' should be used instead: https://snarky.ca/why-you-should-use-python-m-pip/ It turns out that this is the the default value provided by tox: https://tox.readthedocs.io/en/latest/config.html#conf-install_command So we can remove the line and simply use the default value. Change-Id: I50080434a5a11226300eb699fd31103c5e9f5e28 |
||
---|---|---|
doc | ||
projects | ||
reviewstats | ||
tests | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
genresults-openreviews.sh | ||
genresults-reviewers.sh | ||
genresults-reviews-for-bugs.sh | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
reviewstats
Utility scripts for generating stats about OpenStack development.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/reviewstats
Features
- openreviews.py - Get some stats on the number and age of open reviews.
- reviewers.py - See how many reviews each person has done over a period of time.
Usage
Clone the git repository, then install the library:
pip install .
Run the scripts.
Project definitions
Each project has a JSON file describing what reviews, bugs and so on will count towards that projects statistics. The JSON file should have a single top level object containing the following keys:
- name: The project name.
- subprojects: A list of Gerrit projects to include.
- core-team: A list of Gerrit usernames to consider as core reviewers across subprojects.
- lp_projects: A list of Launchpad project ids to include.
Examples
Get reviewer stats for the last 14 days (default) in the stable/pike branch:
$ reviewers --stable pike --output ~/reviewers-stable-pike-14
Get reviewer stats for the last 90 days across all stable branches:
$ reviewers --stable all --days 90 --output ~/reviewers-stable-all-90