Jeremy Stanley 58829de5bc Allow a git ref to pin the governance repo
Change-Id: I230c22fb83447b336eda14a7f10cf33e52e3d321
2014-09-26 16:28:53 +00:00

25 lines
751 B
Plaintext

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 <BEGINDATE>
# optionally specify --end, --keyfile, --ref and --user
DATE=`date --iso`
mv out $DATE
cat $DATE/*.csv | sort | uniq > $DATE/all.csv
4) You can use diff.py to get the new ATCs since the previous run:
./diff.py $OLD-DATE/all.csv $DATE/all.csv $DATE/new.csv