|author||Paul Hobbs <firstname.lastname@example.org>||Tue Nov 07 19:40:31 2017|
|committer||Paul Hobbs <email@example.com>||Wed Nov 08 23:00:41 2017|
Added "MaybeExonerate" for marking CLs with CQ+1 TEST=None BUG=chromium:756762 Change-Id: I3666cb65b426295935c46fb65d88d5b5bbf74212
This app finds CLs which were incorrectly blamed for a CQ failure, and re-marks them as CQ-ready. It does this by polling cidb‘s buildMessageTable for finalize messages, then finds CLs which were blamed in the build’s annotatations and marks them as CQ+1 in Gerrit (if they haven't already been).
Create a “creds” folder, then run “cros cidbcreds --folder=creds/cidb” to fetch the credentials.
Local deployment is done by creating a virtualenv from requirements.txt:
virtualenv --python=`which python2` en source env/bin/activate pip install -r dev_requirements.txt
Then, install the Google App Engine SDK and link it into the virtualenv. Assuming the google appengine SDK is installed at $GAE, run
ln -s $GAE/* env/lib/python2.7/site-packages
Tests are run with pytest. Start a development server with
gunicorn -c gunicorn.conf.py -b :8080 main:app and visit localhost:8080 in your web browser.
Run “gcloud app deploy” after copying cidb creds to creds/cidb (see the [Credentials][#Credentials] section)