Current event listener implementation does not handle network problems
well. E.g. if ssh stream connection is lost, it would not reconnect or
recover on its own. Instead of fixing the implementation, use
well-tested gerrit listener used by zuul. Explicitly specify version of
zuul to be 2.1.0 to avoid accidental breakages due to changes in zuul
lib.
Downside is that we need to install zuul and its dependencies just to
use gerrit listener.
parse_json_event function had to be changed, because zuul gerrit event
listener provides object, not json string. We still need to create
event from json in populate_db.py, so that part of the function has
been moved there.
Closes-Bug: #1516820
Change-Id: I8aa7a18460b58998f6c378e9d9c0d783032eca21
CI Watch project started outside of OpenStack infrastructure.
This patch adds missing bits to enables infra testing, documentation
builds, and to make packaging easier if we'd like to do so.
Additional changes to accommodate the template:
* ciwatch/__init__.py renamed to ciwatch/server.pp, and all related
imports updated.
* README.md converted into rst and split up into sections.
Partial-Bug: #1505834
Change-Id: I0aaabcfd1607609a337ce6ca2a71f9889b45de0a