IRC #openstack-ironic gerritbot CI failed messages

When a gerrit comment of type Verified with value -2 is posted, send a
message to the #openstack-ironic channel.

This will raise awareness of CI job failures preventing changes from
landing, and is proposed as a trial for later refinement.

Update irc_tests.py for the dependend change to pass tests.

Change-Id: I251e9e5ea760fe5da1a8fbca7cee365dd3ae563b
Depends-On: https://review.opendev.org/#/c/698089/
This commit is contained in:
Steve Baker 2019-12-10 10:20:07 +13:00 committed by Andreas Jaeger
parent ac7ffa6808
commit abefaaea44
2 changed files with 4 additions and 1 deletions

View File

@ -995,6 +995,8 @@ openstack-ironic:
events:
- patchset-created
- change-merged
- comments-added
- x-vrif-minus-2
projects:
- openstack/bifrost
- openstack/ironic

View File

@ -35,7 +35,8 @@ def access_gerrit_check():
print("Basic check of gerritbot/channels.yaml")
REQUIRED_ENTRIES = ("branches", "events", "projects")
VALID_EVENTS = ("change-merged", "patchset-created")
VALID_EVENTS = ("change-merged", "comments-added",
"patchset-created", "x-vrif-minus-2")
for channel in gerrit_config:
for entry in REQUIRED_ENTRIES:
if entry not in gerrit_config[channel]: