~vorlon/britney/+git/britney2-ubuntu:reset-test-caching

Last commit made on 2021-10-07
Get this branch:
git clone -b reset-test-caching https://git.launchpad.net/~vorlon/britney/+git/britney2-ubuntu
Only Steve Langasek can upload to this branch. If you are Steve Langasek please log in for upload directions.

Branch merges

Branch information

Name:
reset-test-caching
Repository:
lp:~vorlon/britney/+git/britney2-ubuntu

Recent commits

6cd47f3... by Steve Langasek

In the autopkgtest policy, cache the list of force-reset-test hints once

Due to the number of hints in standing use in Ubuntu, hints.search() is an
expensive operation, and we call it once for *every single test* referenced
from -proposed. Since force-reset-test are a small proportion of the hints
in use, searching once for all the hints of this type and only searching
this subset for each autopkgtest improves performance (with 23000
autopkgtests referenced in -proposed, this saves roughly 1 minute of
runtime, or 11% on a 9-minute britney run; the number of packages in
-proposed is typically much higher at other points in the release cycle,
therefore the absolute improvement in performance is expected to be
greater.)

The force-reset-test hints are an Ubuntu delta so this is not expected to be
upstreamed; and it could eventually be dropped if and when baseline
retesting is implemented in Ubuntu and the number of hints required drops.

This could be implemented with a more generic, elegant solution in
HintsCollection, but again, the scalability problem of hints is hopefully
short-lived so I didn't consider it worth the investment here.

82fad57... by Steve Langasek

Don't use expensive 'remove' hints

Since we've never used remove hints in Ubuntu and never will, we shouldn't
pay the cost for them in britney runs. Remove references to them entirely,
to speed up britney runs.

This is an Ubuntu delta not expected to be upstreamed, and can be dropped at
some future point when we don't have 11,000 active hints. (This count of
hints is expected to drop dramatically once we have autopkgtest baseline
retesting.)

1f52026... by Steve Langasek

Iterate over binary packages from a source package before iterating over hints

The existing code attempts to "short circuit" processing of binaries in
unstable by first checking if the package is subject to a removal hint.

This is invalid in Ubuntu for two reasons:
- we do not use removal hints for removing packages from the release pocket
- there are 11,000 hints in Ubuntu (due to force-reset-test) - searching all
  hints is time-consuming and not a short-circuit at all.

Reorder the code so we only scan the hints if there's otherwise an
indication of something to do.

32c3f28... by Iain Lane

autopkgtest: Check for kernel-triggered tests when migrating kernels

We currently skip the ALWAYSFAIL/REGRESSION handling for kernels. This
can lead to us missing genuine regressions in kernel uploads. The
idea is that results from one kernel flavour shouldn't influence
another.

We can keep this idea but do better and actually check for regressions:
when looking at results, if we're considering a kernel, only look at
results which were triggered by this kernel.

ea64504... by Iain Lane

conf: Update ADT_SWIFT_URL & amqp IP for the new deployment

We're shifting autopkgtest to a new deployment which hides the old
internal URL.

RabbitMQ now lives at a different place too, which has a DNS name.

a3da16e... by Steve Langasek

disable BuildDependsPolicy

This policy has some perverse outcomes, slows down migrations, and doesn't
actually ensure build-depends closure in the release pocket

fd48bfe... by Steve Langasek

Update gcc regexp to handle gcc versions > 9

dfe2205... by Michael Hudson-Doyle

add a message when list of valid/invalid excuses fails to validate

f0e46d7... by Iain Lane

britney: Disable Built-Using policy

Launchpad currently doesn't enforce this, so it doesn't make too much
sense to do so in proposed-migration.

Once https://bugs.launchpad.net/launchpad/+bug/1868558 is fixed, we
should think about probably re-enabling this.

8fb4d5d... by Iain Lane

BlockPolicy, ExcuseFinder: refer to DISTRO-release

On Ubuntu we want this to say ubuntu-release, on Debian debian-release.
Substitute the first part with the name of the distro.