Ivo De Decker
f0ddfc253f
Fix parsing of migration item name for binNMU in tpu
...
The parsing of migration items should also look for the suite name in the
architecture part. This fixes the parsing for migration items like
some-src/amd64_tpu and some-src/amd64_tpu/1.0-1
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-12-11 14:37:55 +00:00
Ivo De Decker
a3b194c13e
Don't calculate smoothbins for items from *pu
...
When building the excuses, don't calculate smoothbins for items not from
unstable.
This improves the change from commit db584d9fdc
Also try to make the code more readable.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-12-11 14:32:53 +00:00
Niels Thykier
b41a1a4123
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-12-09 18:03:26 +00:00
Ivo De Decker
db584d9fdc
Don't calculate smoothbins for sources not in unstable
...
When building the excuses, don't calculate smoothbins if the source is not in
unstable. Doing so would result in a KeyError and a crash. This happens for
sources that are in testing and (testing-)proposed-updates, but not in
unstable.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-12-07 22:59:18 +00:00
Niels Thykier
12c1d70cb3
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-12-02 16:44:25 +00:00
Ivo De Decker
111413fb7b
Don't remove package if removal is blocked
...
Support blocking the removal of a package with a removal hint. This is useful
to block an auto-removal.
Before this patch, only removals for packages not in unstable could be
blocked.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-11-25 12:40:30 +00:00
Niels Thykier
b62a265175
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-25 11:49:54 +00:00
Paul Gevers
b4370ada0b
tests: add autopkgtest policy unittest
2018-11-25 11:41:23 +00:00
Ivo De Decker
d074142d35
Fix architecture check for binnmu removals
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-11-22 22:11:22 +00:00
Ivo De Decker
52ff85d566
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-11-19 15:35:56 +00:00
Niels Thykier
65b67e763c
Replace the use of inst_tester with new suite functionality
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:20 +00:00
Niels Thykier
03df891b7e
Expand the Suite interface and create a TargetSuite sub-class
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:19 +00:00
Niels Thykier
0b4f58315f
Rename a method and reduce a table to a set
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:18 +00:00
Niels Thykier
0eb8b5a201
BinaryPackageUniverse: Provde equivalent_packages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:17 +00:00
Niels Thykier
ef813bf0d8
Let the BinaryPackageUnvierse track broken packages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:16 +00:00
Niels Thykier
8867ef0cf9
Let the BinaryPackageUniverse track essential packages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:15 +00:00
Niels Thykier
07a407e810
Partly separate the solver from the inst_tester
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:14 +00:00
Niels Thykier
c0ecdd82fb
Remove now redundant APIs from the InstallabilityTester
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:13 +00:00
Niels Thykier
0a669461ca
Separate inst_tester from universe
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:12 +00:00
Niels Thykier
35b06ee007
tests: Separate inst_tester from universe
...
This commit updates the test suite to use the BinaryPackageUniverse
instead of the InstallabilityTester where that makes sense. The rest
of Britney has yet to be updated except where absolutely necessary (as
that will come in a later commit).
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:11 +00:00
Niels Thykier
d557610c6f
BinaryPackageUniverse: Implement packages_equivalent_to()
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:10 +00:00
Niels Thykier
530db5d3f7
Extract a BinaryPackageUniverse from the InstallabilityTester
...
The InstallabilityTester is suffering from a lack of clear purpose
because it serves multiple. This commit extracts most of one of these
purposes into the BinaryPackageUniverse class while retaining the
original API of the InstallabilityTester.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:38:09 +00:00
Niels Thykier
b7fe352713
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-11 09:37:11 +00:00
Niels Thykier
a1df601c04
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-04 20:03:58 +00:00
Niels Thykier
32def47991
Fix typo in doc string
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-01 21:30:25 +00:00
Niels Thykier
b37575f000
Stop creating some throw-away data-structures for a method call
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-01 21:30:24 +00:00
Niels Thykier
f86cda97da
inst_tester: Improve doc string/argument name
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-11-01 21:30:23 +00:00
Paul Gevers
32ea0ccb70
tests: naming of variables in test_policy:apply_policy is highly confusing
2018-11-01 15:22:02 +01:00
Ivo De Decker
b839e1a459
Ignore dependencies of cruft when building excuses.
...
Don't make dependencies of cruft a blocker for being a candidate. In most
cases, the cruft won't migrate to testing, so it shouldn't be a blocker. If
the cruft would be considered for migration to testing, the installability
check will catch missing deps.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-30 19:40:37 +00:00
Niels Thykier
7cdf10bc77
Inline get_nuninst into its remaining callees
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-28 21:37:41 +00:00
Niels Thykier
05aaf1cc12
Refactor nuninst initialization to avoid reading the cache from disk
...
At the moment, britney will always read the nuncache from disk
(possibly regenerating it before reading it). However, we can save
the "read from disk" by moving the initialization of nuninst into the
constructor of Britney and relying on clone_nuninst.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-28 21:35:18 +00:00
Niels Thykier
7bcbcb6282
Make clone_nuninst able to fully deep clone nuninst
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-28 21:26:48 +00:00
Niels Thykier
bd0a96553c
britney.conf: Bump autopkgtest regression deadline by 2 days
2018-10-28 17:48:08 +00:00
Niels Thykier
7df8cc3ae3
doc/hints.rst: Fix a warning from sphinx-build
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-25 20:14:33 +00:00
Niels Thykier
6c5300d873
Unfold the suite.binaries tuple into two members
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-25 18:34:41 +00:00
Ivo De Decker
9c606ef533
Don't add smooth-updatable cruft to migration items
...
Based on patch by Niels Thykier.
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2018-10-24 22:15:27 +00:00
Paul Gevers
b752bdea07
Document force-badtest and force-skiptest
2018-10-23 21:58:24 +02:00
Niels Thykier
480516f6af
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-20 05:17:59 +00:00
Niels Thykier
ba3ca4d092
britney.conf: Bump autopkgtest regression deadline by 2 days
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-14 06:23:22 +00:00
Niels Thykier
9564b1b6d6
britney.conf: Bump autopkgtest regression deadline by 2 days
2018-10-08 05:22:22 +00:00
Niels Thykier
edfe40d69c
Fix and re-add a test
...
Thanks: Paul Gevers <elbrus@debian.org>
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-03 05:35:48 +00:00
Niels Thykier
712b618ee8
tests: Comment out test requiring "do_test" function
...
It does not exist in the Debian version (yet?).
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-01 19:48:07 +00:00
Niels Thykier
99a35a2986
autopkgtest.py: Update previous commit to match recent changes
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-01 19:46:43 +00:00
Iain Lane
c09a229dc9
autopkgtest: Run gcc-n's testuite, if it has one
2018-10-01 19:22:29 +00:00
Niels Thykier
7fd15eab4f
britney: Use chain rather then duplicate statement
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 16:31:21 +00:00
Niels Thykier
e279eabf0a
britney.py: Remove duplicated variable
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 16:03:02 +00:00
Niels Thykier
f561de89d0
britney.py: Remove an unnecessary level of indentation
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 12:57:07 +00:00
Niels Thykier
880a614b2b
britney: Extract a find_smooth_updateable_binaries function
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 12:57:06 +00:00
Niels Thykier
7d7a42153d
britney.py: Simply a loop in should_upgrade_src
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 12:19:39 +00:00
Niels Thykier
c4931fb1b2
solver: Move a common variable out of an if
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-30 12:19:38 +00:00