autopkgtest.py: Lower the logging level for lots of messages

ubuntu/rebased
Paul Gevers 6 years ago
parent 48d0777e2a
commit 86c728321e
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -210,7 +210,7 @@ class AutopkgtestPolicy(BasePolicy):
# let's see if we still need it # let's see if we still need it
continue continue
else: else:
self.logger.info('Results %s %s %s added', src, trigger, status) self.logger.debug('Results %s %s %s added', src, trigger, status)
self.add_trigger_to_results(trigger, src, ver, arch, run_id, seen, Result[status.upper()]) self.add_trigger_to_results(trigger, src, ver, arch, run_id, seen, 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)
@ -343,7 +343,7 @@ class AutopkgtestPolicy(BasePolicy):
verdict = PolicyVerdict.REJECTED_TEMPORARILY verdict = PolicyVerdict.REJECTED_TEMPORARILY
if verdict == PolicyVerdict.PASS: if verdict == PolicyVerdict.PASS:
self.logger.info('Checking autopkgtests for %s', source_name) self.logger.debug('Checking autopkgtests for %s', source_name)
trigger = source_name + '/' + source_data_srcdist.version trigger = source_name + '/' + source_data_srcdist.version
# build a (testsrc, testver) → arch → (status, log_url) map; we trigger/check test # build a (testsrc, testver) → arch → (status, log_url) map; we trigger/check test
@ -868,14 +868,14 @@ class AutopkgtestPolicy(BasePolicy):
try: try:
(trigsrc, trigver) = trigger.split('/', 1) (trigsrc, trigver) = trigger.split('/', 1)
except ValueError: except ValueError:
self.logger.error('Ignoring invalid test trigger %s', trigger) self.logger.info('Ignoring invalid test trigger %s', trigger)
return return
if trigsrc == src and apt_pkg.version_compare(ver, trigver) < 0: if trigsrc == src and apt_pkg.version_compare(ver, trigver) < 0:
self.logger.error('test trigger %s, but run for older version %s, ignoring', trigger, ver) self.logger.debug('test trigger %s, but run for older version %s, ignoring', trigger, ver)
return return
if self.options.adt_baseline == 'reference' and \ if self.options.adt_baseline == 'reference' and \
not self.test_version_in_any_suite(src, ver): not self.test_version_in_any_suite(src, ver):
self.logger.error( self.logger.debug(
"Ignoring result for source %s and trigger %s as the tested version %s isn't found in any suite", "Ignoring result for source %s and trigger %s as the tested version %s isn't found in any suite",
src, trigger, ver) src, trigger, ver)
return return
@ -953,7 +953,7 @@ class AutopkgtestPolicy(BasePolicy):
# We're done if we don't retrigger and we're not using swift # We're done if we don't retrigger and we're not using swift
return return
elif result_state in {Result.PASS, Result.NEUTRAL}: elif result_state in {Result.PASS, Result.NEUTRAL}:
self.logger.info('%s/%s triggered by %s already known', src, arch, trigger) self.logger.debug('%s/%s triggered by %s already known', src, arch, trigger)
return return
# Without swift we don't expect new results # Without swift we don't expect new results
@ -1000,11 +1000,11 @@ class AutopkgtestPolicy(BasePolicy):
if self.options.adt_baseline == 'reference': if self.options.adt_baseline == 'reference':
try: try:
result_reference = self.test_results[REF_TRIG][src][arch] result_reference = self.test_results[REF_TRIG][src][arch]
self.logger.info('Found result for src %s in reference: %s', self.logger.debug('Found result for src %s in reference: %s',
src, result_reference[0].name) src, result_reference[0].name)
except KeyError: except KeyError:
self.logger.info('Found NO result for src %s in reference: %s', self.logger.debug('Found NO result for src %s in reference: %s',
src, result_reference[0].name) src, result_reference[0].name)
pass pass
self.result_in_baseline_cache[src][arch] = deepcopy(result_reference) self.result_in_baseline_cache[src][arch] = deepcopy(result_reference)
return result_reference return result_reference
@ -1023,7 +1023,7 @@ class AutopkgtestPolicy(BasePolicy):
pass pass
self.result_in_baseline_cache[src][arch] = deepcopy(result_ever) self.result_in_baseline_cache[src][arch] = deepcopy(result_ever)
self.logger.info('Result for src %s ever: %s', src, result_ever[0].name) self.logger.debug('Result for src %s ever: %s', src, result_ever[0].name)
return result_ever return result_ever
def pkg_test_result(self, src, ver, arch, trigger): def pkg_test_result(self, src, ver, arch, trigger):

Loading…
Cancel
Save