Scripts for generating OpenStack development community statistics
Go to file
Matt Riedemann 59f6c2e5ac reviewers: make --project and --stable mutually exclusive
When using the reviewers command to get stats on stable branch
reviews, I always think I can specify --stable and --project nova
to get nova stable reviews, but that's not how the command
works and the --project option is ignored resulting in a report
which I don't expect, i.e. there are non-nova reviewers in the
report.

This makes --project and --stable mutually exclusive to avoid that
confusion.

Change-Id: Ie9938f5e68f27b9a5a58635be2185365f041136f
2019-11-04 11:15:27 -05:00
doc Adds tox docs job 2019-05-18 13:45:47 +02:00
projects Merge "Add vitrage projects" 2019-06-23 02:59:03 +00:00
reviewstats reviewers: make --project and --stable mutually exclusive 2019-11-04 11:15:27 -05:00
tests Add --csv-rows option 2013-12-16 11:27:22 -05:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:24:02 +00:00
.gitignore Switch to stestr 2019-08-01 17:02:18 +02:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:14 +00:00
.mailmap Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
.stestr.conf Switch to stestr 2019-08-01 17:02:18 +02:00
.zuul.yaml Adds tox docs job 2019-05-18 13:45:47 +02:00
CONTRIBUTING.rst Adds tox docs job 2019-05-18 13:45:47 +02: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 Adds tox docs job 2019-05-18 13:45:47 +02:00
babel.cfg Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
genresults-openreviews.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
genresults-reviewers.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
genresults-reviews-for-bugs.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
openstack-common.conf Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
requirements.txt Load subproject data from governance 2019-08-01 17:01:07 +02:00
setup.cfg Mailing lists change openstack-dev to openstack-discuss 2019-07-01 19:38:32 +08:00
setup.py Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
test-requirements.txt Switch to stestr 2019-08-01 17:02:18 +02:00
tox.ini Drop pypy default tox env 2019-08-01 17:03:10 +02: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.

Examples

  1. Get reviewer stats for the last 14 days (default) in the stable/pike branch:

    $ reviewers --stable pike --output ~/reviewers-stable-pike-14

  2. Get reviewer stats for the last 90 days across all stable branches:

    $ reviewers --stable all --days 90 --output ~/reviewers-stable-all-90