1393 Commits

Author SHA1 Message Date
Paul Gevers
48375e7796
Remove retired members from the britney configuration 2020-03-11 22:03:40 +01:00
Paul Gevers
23c79608ec
autopkgtest: make sure an item is not removed twice 2020-02-22 07:35:39 +01:00
Paul Gevers
ea6d65f657
Let britney reschedule migration-reference/0 runs when they are too old
Currently, britney only schedules reference runs when they don't exist. It does
strip out runs against older versions of the autopkgtest, but the current version
may exist for a while and the reference run can be old. So, add an option to
ignore old results.
2020-02-20 13:21:36 +01:00
Paul Gevers
aa8b84f4b8
Drop the special case that gcc has; it's just a package 2020-02-20 11:24:27 +01:00
Paul Gevers
56babea058
Don't run autopkgtest on architectures where the triggering package doesn't exist 2020-02-14 22:47:03 +01:00
Ivo De Decker
64ba19cde4 Fix architecture check if Release file is used
When the architecture are read from the Release file, they are not
defined in the config file.

Adding 'all' as an architecture will not give the correct result. To
avoid confusion, explicitly check for this and error out if it is added.
2020-02-14 20:54:34 +00:00
Ivo De Decker
9056323165 Check that architecture config doesn't include "all"
Add 'all' as an architecture will not give the correct result. To avoid
confusion, explicitly check for this and error out if it is added.
2020-02-14 19:57:53 +00:00
Ivo De Decker
a567dfd58d Mark packages as uninstallable, even if this doesn't block migration
This allows the autopkgtest policy to skip tests for these packages.
2020-02-14 19:34:09 +00:00
Ivo De Decker
c308361fc5 autopkgtest: filter conflicting packages
We only want to add packages which conflict in testing, but don't
conflict in unstable. For those, the newer version (from unstable)
probably fixes the conflict.
2020-02-07 20:46:30 +01:00
Ivo De Decker
97c3b32f1f autpkgtest: ignore deps already satisfied in testing 2020-02-07 19:36:40 +00:00
Ivo De Decker
237c5d7357 fix test_autopkgtest tests 2020-01-30 18:41:39 +01:00
Ivo De Decker
dfd0973a64 fix test_policy tests 2020-01-30 18:41:39 +01:00
Ivo De Decker
001e18a2f4 fix test_yaml tests 2020-01-30 18:41:39 +01:00
Ivo De Decker
1a33ee9ebc installability/tester.py codestyle fixes 2020-01-30 18:41:39 +01:00
Ivo De Decker
0c66464fd5 hints.py codestyle fixes 2020-01-30 18:41:39 +01:00
Ivo De Decker
976accaf57 Track uninstallable arch:all packages on non-nobreakall archs
When an arch:all binary is uninstallable on a non-nobreakall arch, don't
block it, but still mark it as uninstallable, so the autopkgtest policy
knows not to schedule tests for it.
2020-01-30 18:41:39 +01:00
Paul Gevers
455d962ebd Update test_autopkgtest.py for previous commit 2020-01-30 18:41:39 +01:00
Paul Gevers
a78b26d55d Don't block autopkgtest on uninstallable archs
Currently when a package is uninstallable on an arch, no autopkgtests for that arch are triggered
and the autopkgtest policy blocks migration. However it's not the job of the autopkgtest policy
to judge uninstallability and packages that build an arch:all package that just isn't installable
on the autopkgtest arch should not be blocked for this.

Closes: #918620
2020-01-30 18:41:39 +01:00
Ivo De Decker
9ddd3c7b60 Suite codestyle fix 2020-01-30 18:41:39 +01:00
Ivo De Decker
f67414a06e TargetSuite: use *_in_the_suite functions from Suite
Use the info based on the binaries in the Suite object, instead of the
inst_tester. This should also include packages that are in testing, but
are not installable.
2020-01-30 18:41:21 +01:00
Ivo De Decker
4aa1834cfe Only calculate all_binaries_in_suite when necessary 2020-01-30 18:41:21 +01:00
Ivo De Decker
62c309da07 Don't allow unversioned migrationitems to be hashed
Unversioned migration items match different versioned items for the same
source, so hashing them will not produce a correct result.

Closes: #945471
2020-01-30 18:41:21 +01:00
Ivo De Decker
18f71a01f5 Update autohinter for versioned excuses 2020-01-30 18:40:24 +01:00
Ivo De Decker
c410435859 use uvname for dependencies between excuses 2020-01-30 18:40:24 +01:00
Ivo De Decker
8369d6b0e7 sort excuses based on uvname 2020-01-30 18:40:24 +01:00
Ivo De Decker
4a8fb58f91 Use versioned items in excusefinder 2020-01-30 18:40:24 +01:00
Ivo De Decker
e70457f137 Add logger to ExcuseFinder 2020-01-30 18:40:24 +01:00
Ivo De Decker
76dc7cc0d2 MigrationItem: calculate (uv)name
Caclulate the (uv)name of the items, instead of accepting it from other
functions.
2020-01-30 18:40:24 +01:00
Ivo De Decker
5dc892ae8f use uvname in excuses output 2020-01-30 15:09:17 +00:00
Ivo De Decker
5c7300caf0 Excuse: get source from MigrationItem 2020-01-30 15:09:17 +00:00
Ivo De Decker
055f0f07e5 Add MigrationItem to Excuse 2020-01-30 15:09:17 +00:00
Ivo De Decker
ef2cae9be5 remove unused function 2020-01-30 15:09:17 +00:00
Ivo De Decker
03fc5208fc remove TPU check that's no longer needed 2020-01-30 15:09:17 +00:00
Ivo De Decker
a425e32984 Remove _excuse_unsat_deps
This should now be handled by the depends policy.
2020-01-30 15:09:17 +00:00
Ivo De Decker
4e5926a41f Add depends policy 2020-01-30 15:09:12 +00:00
Ivo De Decker
2ccb056fa1 validate list of valid excuses 2020-01-30 15:09:12 +00:00
Ivo De Decker
8b6638c566 Specify dependencies between excuses based on packages
Rework the dependencies between excuses.

Dependencies are specified based on packages (source or binary). Based
on these packages, dependencies on other excuses (that have these
packages) are calculated.

As with package dependencies, dependencies between excuses can contain
alternatives.

Each alternative can satisfy the dependency, so the excuse only becomes
invalid if all of the alternatives of a specific dependency are
invalidated.

Tracking of the alternatives and their validity is moved to separate
objects.
2020-01-30 15:09:12 +00:00
Ivo De Decker
b5285f21d7 Track packages (source and binary) for excuses 2020-01-30 15:09:11 +00:00
Ivo De Decker
f11d92bf8f Add PackageId and BinaryPackageId objects 2020-01-03 23:05:29 +00:00
Ivo De Decker
3c8b7ba11d Add source to SourcePackage object
Adding a source parameter to the SourcePackage allow finding the source
the object is referring to, so that parameter doesn't have to be passed
along separately.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2020-01-03 19:44:55 +00:00
Ivo De Decker
6ca84132f9 Excuses: remove unused sane_deps
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2020-01-03 19:43:47 +00:00
Paul Gevers
31e3278202
Give ginggs the STANDARD hint powers 2019-12-08 22:04:59 +01:00
Paul Gevers
91ec61fc30
Enable autopkgtest policy on arm64 2019-11-21 11:41:01 +01:00
Paul Gevers
177b65d674
autopkgtest: also test for autodep8 for migration runs 2019-11-21 11:40:48 +01:00
Paul Gevers
b380508635
Drop dkms auto-detection for autodep8 as it isn't opt-in
Because autopkgtest failure in a package is now a serious bug (RC), packages
that don't opt-in should not be tested. Due to the way autopkgtest and autodep8
work together, package that don't declare they have an autopkgtest can still be
tested. However, maintainers should not be force to say their package doesn't
work with autodep8 by introducing a fake test.
2019-11-18 20:48:49 +01:00
Paul Gevers
d1081c9f59
Give myself allow-uninst power 2019-11-18 20:35:22 +01:00
Ivo De Decker
628b93b791 Make adding a failing test a regression
When there is no test in testing, and a failing test in unstable, don't
allow the package to migrate. Doing so would make it instantly RC-buggy.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-11-14 11:12:38 +00:00
Niels Thykier
0d5ea5eb8c
Improve cache invalidation of (pseudo-)essential set
If a new pseudo-essential package was added to testing *and* it is
mutually-exclusive with an existing member, britney would incorrectly
flag it as uninstallable (unless another change triggered a cache
invalidation of the pseudo-essential set).

With this commit, the cache invalidation is now done based on whether
we add something that *might* be in the (effective) pseudo-essential
set.  It is an overapproximation as there are cases where the
invalidation is unnecessary, but at the moment it is not a performance
concern.

Closes: https://bugs.debian.org/944190
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-11-10 23:08:47 +00:00
Niels Thykier
c3ca2bc703
console: Provide helpers to locate BinaryPackageIDs
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-11-10 23:05:54 +00:00
Niels Thykier
3329f73535
console.py: Fix whitespace issue tripping codestyle
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-11-10 11:26:49 +00:00