Esempio n. 1
0
    def __init__(self, configuration, bus):
        assert 'hookId' in configuration
        self.triggered_groups = set()
        self.group_id = configuration.get('hookGroupId', 'project-releng')
        self.hook_id = configuration['hookId']
        self.bus = bus

        # Setup TC services
        self.queue = taskcluster.get_service('queue')
        self.hooks = taskcluster.get_service('hooks')
Esempio n. 2
0
    def __init__(self, queue_name, emails, period):
        assert isinstance(queue_name, str)
        assert isinstance(period, int)
        assert period > 0
        assert isinstance(emails, list)
        assert len(emails) > 0
        self.queue_name = queue_name
        self.period = period
        self.stats = {}
        self.emails = emails

        # Setup Taskcluster services
        self.notify = taskcluster.get_service('notify')
        self.queue = taskcluster.get_service('queue')
        self.index = taskcluster.get_service('index')
Esempio n. 3
0
    def __init__(self,
                 publish=False,
                 risk_analysis_reviewers=[],
                 *args,
                 **kwargs):
        super().__init__(*args, **kwargs)
        self.publish = publish
        logger.info('Phabricator publication is {}'.format(
            self.publish and 'enabled' or 'disabled'))

        self.hooks = taskcluster.get_service('hooks')
        self.risk_analysis_reviewers = risk_analysis_reviewers