Browse Source

register reporters on test config

When doing the layout validation, I ended up spammed with a few errors:

  ERROR:zuul.Scheduler:Invalid reporter name gerrit

The issue is that my pipelines use 'gerrit' as reporter while it is not
registered when testing the config.  I registered the 'smtp' reporter as
well and the error is gone.

Side effect: the layout validation output now dumps actions for
start/success/failure.

Change-Id: I271a2943fa3e846ae60d9b615cd3a1ac3815bb1b
changes/84/55184/1
Antoine Musso 9 years ago
parent
commit
5c86fbbd09
  1. 2
      zuul/cmd/server.py

2
zuul/cmd/server.py

@ -119,6 +119,8 @@ class Server(object):
logging.basicConfig(level=logging.DEBUG)
self.sched = zuul.scheduler.Scheduler()
self.sched.registerReporter(None, 'gerrit')
self.sched.registerReporter(None, 'smtp')
self.sched.registerTrigger(None, 'gerrit')
self.sched.registerTrigger(None, 'timer')
layout = self.sched.testConfig(self.config.get('zuul',

Loading…
Cancel
Save