Scripts for generating OpenStack development community statistics
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Sean McGinnis 58f2b47814 Raise hacking version and fix pep8 errors
Various issues hit when switching to using stestr to run tests.
Presumably from other pulled in dependencies. This raises hacking to a
version that fixes a pyflakes issue [0] and addresses other pep8
violations that are then identified.

[0] https://github.com/PyCQA/pyflakes/pull/80

Change-Id: I9d8637d50067d6618aa408f4dbd9c736956099ed
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
4 years ago
doc Adds tox docs job 4 years ago
projects Merge "Add vitrage projects" 4 years ago
reviewstats Raise hacking version and fix pep8 errors 4 years ago
tests Add --csv-rows option 10 years ago
.coveragerc Change ignore-errors to ignore_errors 8 years ago
.gitignore Add a bug statistics tool. 10 years ago
.gitreview OpenDev Migration Patch 4 years ago
.mailmap Cookiecutterify reviewstats. 10 years ago
.testr.conf Cookiecutterify reviewstats. 10 years ago
.zuul.yaml Adds tox docs job 4 years ago
CONTRIBUTING.rst Adds tox docs job 4 years ago
LICENSE Cookiecutterify reviewstats. 10 years ago
MANIFEST.in Cookiecutterify reviewstats. 10 years ago
README.rst Adds tox docs job 4 years ago
babel.cfg Cookiecutterify reviewstats. 10 years ago
genresults-openreviews.sh Removes tabs from .sh files 6 years ago
genresults-reviewers.sh Removes tabs from .sh files 6 years ago
genresults-reviews-for-bugs.sh Removes tabs from .sh files 6 years ago
openstack-common.conf Cookiecutterify reviewstats. 10 years ago
requirements.txt Load subproject data from governance 4 years ago
setup.cfg Adds tox docs job 4 years ago
setup.py Cookiecutterify reviewstats. 10 years ago
test-requirements.txt Raise hacking version and fix pep8 errors 4 years ago
tox.ini Adds tox docs job 4 years ago

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