
It turns out len(changes) is only the correct number of changes to skip the first time through with an empty cache. On subsequent runs it skips way too far ahead in the gerrit changes and thus never gets any new ones. This change keeps track of the number of new changes separately from the length of changes, which seems to make the behavior with a cache work correctly again. Change-Id: I1e3509d2d54b514afba64fedecc6a9f5ca408235
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.
Description
Languages
Python
95%
Shell
5%