system-config/tools/atc
Jeremy Stanley 85f6bb9db8 Update email_stats.py for the big tent
Changes to the projects.yaml (nee programs.yaml) in the
openstack/governance repo to accommodate big tent terminology have
resulted in a need to similarly adjust the script interpreting it.
While at it, update the variable names within the script for
clarity.

Change-Id: Ie001901c33749aa41181a09e43576bf9d516b4e5
2015-02-11 00:05:12 +00:00
..
README Specify ATC contribution start/end in seconds 2014-10-05 19:10:05 +00:00
diff.py Fix pep8 errors in modules dir 2013-11-12 11:30:34 -05:00
email_stats.py Update email_stats.py for the big tent 2015-02-11 00:05:12 +00:00

README

These are the scripts used to create the ATC lists for use in PTL
elections and Summit invitations.

1) Run the following queries on review.openstack.org:

  sudo -H mysql -e 'SELECT * FROM accounts;' reviewdb > accounts.tab
  sudo -H mysql -e 'SELECT * FROM account_external_ids;' reviewdb > emails.tab

2) Copy those files to this directory.
3) Run:

  mkdir out
  virtualenv venv
  . venv/bin/activate
  pip install paramiko requests pyyaml
  ./email_stats.py --begin <BEGINTIME>
  # optionally specify --end, --keyfile, --ref and --user
  TIME=`date +%Y%m%d%H%M%S`
  mv out $TIME
  cat $TIME/*.csv | sort | uniq > $TIME/all.csv

4) You can use diff.py to get the new ATCs since the previous run:

  ./diff.py $OLD-TIME/all.csv $TIME/all.csv $TIME/new.csv