Beispiel #1
0
    def setup_bugzilla(self, analysis, bug_data):
        """
        Bug is on Bugzilla, store data
        Only when the uplift is pending (tag '?' on attachment)
        """
        if self.bug_data is None:
            self.bug_data = bug_data

        # Check the versions contain current analysis
        versions = self.list_versions()
        version_pending = '{} ?'.format(analysis2branch(analysis))
        if version_pending not in versions:
            logger.warn('Skipping bugzilla',
                        bz_id=self.bugzilla_id,
                        version=version_pending,
                        versions=list(versions.keys()))  # noqa
            return

        self.on_bugzilla.append(analysis)
        logger.debug('On bugzilla', bz_id=self.bugzilla_id)
Beispiel #2
0
    def setup_bugzilla(self, analysis, bug_data):
        '''
        Bug is on Bugzilla, store data
        Only when the uplift is pending (tag '?' on attachment)
        '''
        if self.bug_data is None:
            self.bug_data = bug_data

        # Check the versions contain current analysis
        versions = self.list_versions()
        version_pending = '{} ?'.format(analysis2branch(analysis))
        if version_pending not in versions:
            logger.warn('Skipping bugzilla', bz_id=self.bugzilla_id, version=version_pending, versions=list(versions.keys()))  # noqa
            return

        self.on_bugzilla.append(analysis)
        logger.debug('On bugzilla', bz_id=self.bugzilla_id)