d0dd98b2de
With no cache, this code has to download the entire review history for a project, which takes a really long time, not to mention it's generally wasteful. There was code to keep a local cache, but it expired after an hour. It would make quick repeated runs go faster, but for the stats I keep posted for OpenStack projects this didn't help. I regenerate everything less often. My stats site is basically broken because of how terribly inefficient this is. This updated code keeps the cache around without expiring it. Instead, it just updates the cache until it hits the first change that hasn't changed since our cached version and stops. This should make things work much better and allow my stats site to keep working. Change-Id: I784b99dfabeeca81c779dcfda15f1f20bb736957 |
||
---|---|---|
doc/source | ||
projects | ||
reviewstats | ||
tests | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
genresults-openreviews.sh | ||
genresults-reviewers.sh | ||
genresults-reviews-for-bugs.sh | ||
openstack-common.conf | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
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.