Commit Graph

4 Commits

Author SHA1 Message Date
Jeremy Stanley
19c0ee2d3c Modernize ATCs script to Gerrit 2.8, programs.yaml
* tools/atc/README: Simplify instructions to use mysqlclient
tab-separated-values stdout, and remove obsolete manual steps which
have been automated.

* tools/atc/email-stats.sh: The functionality this shell script
previously provided has now been translated to Python and folded
into the inner script.

* tools/atc/email_stats.py: Implement the old email-stats.sh outer
loop, make it possible to run in a virtualenv, and make previously
hard-coded constants into command-line parameters with sane and
dynamically-determined defaults. Update field order and contents to
cope with differences in Gerrit 2.8, use a proper YAML parser on the
programs.yaml which has also changed format since the previous run,
and adjust for the improved extra-atcs file format as well.

Change-Id: I2deef2e6766ff998190e66737e7cec9cdcd5459c
2014-06-26 02:35:29 +00:00
Jeremy Stanley
1c608c8143 Rename ATC listing script
Rename tools/atc/email-stats.py to tools/atc/email_stats.py in
preparation for making it an importable module. This is being
separated from the subsequent change to make it more reviewable.

Change-Id: I1907de0715c96f54edb44910746fbb24a5ab8665
2014-06-24 19:38:03 +00:00
Jeremy Stanley
d654b45b60 Modernize ATC list format
* tools/atc/README: When generating the initial data dump, MySQL on
review.openstack.org creates output files with DOS line endings and
ISO-8859-1 encoding. Recommend using fromdos and iconv to normalize
them.

Change-Id: Ie16a56c024b0eee97b0e6bd5abe8ed3b0e0a9f7e
2014-02-13 16:24:22 +00:00
James E. Blair
96f2f6ddd9 Initial checkin of ATC scripts
Change-Id: Ibffab01bc835d380ca9f0c18521c8a6d808de761
2013-09-24 09:34:10 -07:00