mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +00:00
Make the huge queue in autopkgtest optional
This commit is contained in:
parent
2bb1c526e1
commit
d975b2fc39
@ -127,6 +127,9 @@ ADT_SHARED_RESULTS_CACHE =
|
||||
ADT_SWIFT_URL = file:///path/to/britney/state/debci.json
|
||||
# Base URL for autopkgtest site, used for links in the excuses
|
||||
ADT_CI_URL = https://example.com/
|
||||
# Enable the huge queue for packages that trigger vast amounts of tests to not
|
||||
# starve the regular queue
|
||||
#ADT_HUGE = 20
|
||||
|
||||
# Autopkgtest results can be used to influence the aging, leave
|
||||
# ADT_REGRESSION_PENALTY empty to have regressions block migration
|
||||
|
@ -191,8 +191,11 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
for arch in self.adt_arches:
|
||||
# request tests (unless they were already requested earlier or have a result)
|
||||
tests = self.tests_for_source(source_name, source_data_srcdist.version, arch)
|
||||
# TODO: this value should be an option
|
||||
is_huge = len(tests) > 20
|
||||
is_huge = False
|
||||
try:
|
||||
is_huge = len(tests) > int(self.options.adt_huge)
|
||||
except AttributeError:
|
||||
pass
|
||||
for (testsrc, testver) in tests:
|
||||
self.pkg_test_request(testsrc, arch, trigger, huge=is_huge)
|
||||
(result, real_ver, url) = self.pkg_test_result(testsrc, testver, arch, trigger)
|
||||
|
@ -392,6 +392,7 @@ ADT_SHARED_RESULTS_CACHE =
|
||||
|
||||
ADT_SWIFT_URL = http://localhost:18085
|
||||
ADT_CI_URL = https://autopkgtest.ubuntu.com/
|
||||
ADT_HUGE = 20
|
||||
|
||||
ADT_SUCCESS_BOUNTY =
|
||||
ADT_REGRESSION_PENALTY =
|
||||
|
Loading…
x
Reference in New Issue
Block a user