e8566158dd
Gerrit 2.11 no longer seems to support the sortKey method of skipping changes. Instead is provides a --start option that takes a number of changes to skip. See: https://review.openstack.org/Documentation/cmd-query.html In addition, this required a change to the format of the changes dict. It turns out we were overwriting some changes if two had the same id. This is common in stable branch cherry picks. In order to avoid this, I used a tuple of id, project, branch as the key for the changes dict. This does break compatibility with existing cache files, so a check was added to clear old caches. Both of these changes were required together because otherwise we end up with a smaller number of items in changes than we should have, and the --start argument is incorrect so we start double processing changes, which breaks the loop because it looks like the change was already cached. Change-Id: If5ab46ce3367b3790e0db1d8bb1ed18e39202ad9 |
||
---|---|---|
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.