|
|
@ -167,23 +167,24 @@ class AutopkgtestPolicy(BasePolicy):
|
|
|
|
# Blacklisted tests don't get a version
|
|
|
|
# Blacklisted tests don't get a version
|
|
|
|
if res['version'] is None:
|
|
|
|
if res['version'] is None:
|
|
|
|
res['version'] = 'blacklisted'
|
|
|
|
res['version'] = 'blacklisted'
|
|
|
|
(trigger, src, arch, ver, status, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'], str(res['run_id'])])
|
|
|
|
(triggers, src, arch, ver, status, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'], str(res['run_id'])])
|
|
|
|
if trigger is None:
|
|
|
|
if triggers is None:
|
|
|
|
# not requested for this policy, so ignore
|
|
|
|
# not requested for this policy, so ignore
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
if status is None:
|
|
|
|
for trigger in triggers.split():
|
|
|
|
# still running => pending
|
|
|
|
if status is None:
|
|
|
|
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
|
|
|
# still running => pending
|
|
|
|
if arch not in arch_list:
|
|
|
|
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
|
|
|
self.logger.info('Pending autopkgtest %s on %s to verify %s',src, arch, trigger)
|
|
|
|
if arch not in arch_list:
|
|
|
|
arch_list.append(arch)
|
|
|
|
self.logger.info('Pending autopkgtest %s on %s to verify %s',src, arch, trigger)
|
|
|
|
arch_list.sort()
|
|
|
|
arch_list.append(arch)
|
|
|
|
elif status == 'tmpfail':
|
|
|
|
arch_list.sort()
|
|
|
|
# let's see if we still need it
|
|
|
|
elif status == 'tmpfail':
|
|
|
|
continue
|
|
|
|
# let's see if we still need it
|
|
|
|
else:
|
|
|
|
continue
|
|
|
|
self.logger.info('Results %s %s %s added', src, trigger, status)
|
|
|
|
else:
|
|
|
|
self.add_trigger_to_results(trigger, src, ver, arch, stamp, Result[status.upper()])
|
|
|
|
self.logger.info('Results %s %s %s added', src, trigger, status)
|
|
|
|
|
|
|
|
self.add_trigger_to_results(trigger, src, ver, arch, stamp, Result[status.upper()])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.logger.info('%s does not exist, no new data will be processed', debci_file)
|
|
|
|
self.logger.info('%s does not exist, no new data will be processed', debci_file)
|
|
|
|
|
|
|
|
|
|
|
|