Scripts for generating OpenStack development community statistics
Go to file
Russell Bryant d0dd98b2de Make local cache more permanent.
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
2015-04-10 16:07:29 -04:00
doc/source cleaning up index.rst file 2014-05-29 11:20:35 +02:00
projects Drop myself from nova-core 2015-04-09 13:59:54 -04:00
reviewstats Make local cache more permanent. 2015-04-10 16:07:29 -04:00
tests Add --csv-rows option 2013-12-16 11:27:22 -05:00
.coveragerc Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
.gitignore Add a bug statistics tool. 2013-12-06 08:13:37 +13:00
.gitreview Add .gitreview file 2013-07-01 15:03:59 +00:00
.mailmap Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
.testr.conf Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
CONTRIBUTING.rst Adjust wording for new Workflow URLs 2014-12-05 11:50:04 -08:00
LICENSE Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
MANIFEST.in Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
README.rst Document installation from repository 2015-04-02 09:40:49 -04:00
babel.cfg Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
genresults-openreviews.sh Add GERRIT_KEY and GERRIT_SERVER options in scripts 2015-03-26 17:53:29 +01:00
genresults-reviewers.sh Add GERRIT_KEY and GERRIT_SERVER options in scripts 2015-03-26 17:53:29 +01:00
genresults-reviews-for-bugs.sh Add GERRIT_KEY and GERRIT_SERVER options in scripts 2015-03-26 17:53:29 +01:00
openstack-common.conf Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
requirements.txt The argparse module was added in requirements 2014-06-29 16:18:20 +08:00
setup.cfg Add a bug statistics tool. 2013-12-06 08:13:37 +13:00
setup.py Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
test-requirements.txt Pin Sphinx. 2013-12-13 20:13:56 +13:00
tox.ini Work toward Python 3.4 support and testing 2014-09-03 19:03:04 +00:00

README.rst

reviewstats

Utility scripts for generating stats about OpenStack development.

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.