mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 05:57:28 +00:00
Don't use latest timestamp from results.cache if it is shared
When using a shared results cache with PPAs (silos) we cannot rely on the latest time stamp from the distro's results.cache. As soon as there is a new run for a package in Ubuntu proper, that updated time stamp hides all previous results for the PPA, and causes tests to be re-requested unnecessarily.
This commit is contained in:
parent
7636d1c862
commit
83f1635e6b
@ -324,9 +324,10 @@ class AutoPackageTest(object):
|
||||
'prefix': '%s/%s/%s/%s/' % (self.series, arch, srchash(src), src)}
|
||||
|
||||
# determine latest run_id from results
|
||||
latest_run_id = self.latest_run_for_package(src, arch)
|
||||
if latest_run_id:
|
||||
query['marker'] = query['prefix'] + latest_run_id
|
||||
if not self.britney.options.adt_shared_results_cache:
|
||||
latest_run_id = self.latest_run_for_package(src, arch)
|
||||
if latest_run_id:
|
||||
query['marker'] = query['prefix'] + latest_run_id
|
||||
|
||||
# request new results from swift
|
||||
url = os.path.join(swift_url, self.swift_container)
|
||||
|
Loading…
x
Reference in New Issue
Block a user