system-config/tools/atc
Monty Taylor e69c7b7fb9 Rename review.openstack.org to review.opendev.org
There are many references to review.openstack.org, and while the
redirect should work, we can also go ahead and fix them.

Change-Id: I28f398796a6392a3dffea1d25cfe2ae3a36a3589
2019-05-09 14:38:51 +00:00
..
README Rename review.openstack.org to review.opendev.org 2019-05-09 14:38:51 +00:00
diff.py Fix pep8 errors in modules dir 2013-11-12 11:30:34 -05:00
email_stats.py Rename review.openstack.org to review.opendev.org 2019-05-09 14:38:51 +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.opendev.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