108 Commits

Author SHA1 Message Date
Paul Gevers
dc4ea6ca2c
autopkgtest: remember old results instead of discarting them
For packages with lots of reverse dependencies, new versions of those reverse
dependencies may keep on showing up in testing. If migration is blocked until
the results for these new version, migration may take extremely long. If there
are results for the current trigger but for the previous version of the reverse
dependency, use those until the fresh resuts are available.

Similar for the reference runs.
2020-05-01 21:34:30 +02: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
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
Paul Gevers
455d962ebd Update test_autopkgtest.py for previous commit 2020-01-30 18:41:39 +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
Ivo De Decker
f202601b81 fix codestyle issue in test_autopkgtest.py
This issue only shows up in the bullseye test.
2019-09-04 12:02:52 +00:00
Ivo De Decker
2bde180d18 fix codestyle issues in policies/__init_.py 2019-09-04 11:44:15 +00:00
Ivo De Decker
a1debec1a8 fix codestyle issues in excusefinder.py 2019-09-04 11:44:15 +00:00
Ivo De Decker
3f9092f94b fix codestyle issues in excuse.py 2019-09-04 11:44:14 +00:00
Ivo De Decker
19392f63c2 fix codestyle issues in policy_.py 2019-09-03 23:50:00 +02:00
Ivo De Decker
5890cb914e Fix codestyle issues is britney.py
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-09-02 22:22:04 +00:00
Paul Gevers
747c67854a
tests: use yaml.safe_load as yaml.load is deprecated 2019-08-25 20:47:14 +02:00
Paul Gevers
964ecaf045
tests: add the suite to debci results 2019-05-18 21:40:26 +02:00
Niels Thykier
c741b03aaf
Make PolicyVerdict ordered/comparable
This shortens the annyoing "a.value < b.value" to "a < b".

Signed-off-by: Niels Thykier <niels@thykier.net>
2019-03-06 19:07:17 +00:00
Paul Gevers
ccc1c25f61
Fix pycodestyle issues in test_policy.py 2019-02-07 19:46:37 +01:00
Paul Gevers
e8b5f5e631
Fix loads of pycodestyle issues in test_autopkgtest 2019-02-07 19:17:16 +01:00
Paul Gevers
7611231ee2
Fix all pycodestyle issues in b/p/autopkgtest.py 2019-02-07 13:35:52 +01:00
Paul Gevers
992b27abb3
autopkgtest: retrigger old failures 2019-02-07 13:35:52 +01:00
Paul Gevers
42ac9c34a1
autopkgtest: add timestamp to results 2019-01-31 15:37:13 +01:00
Niels Thykier
f4ecd86000
Pass migration items to policies (instead of src + suite)
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 09:52:33 +00:00
Niels Thykier
6dde43a339
Create an ExcuseFinder class for computing relevant excuses
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-27 06:58:00 +00:00
Niels Thykier
3de7816fd2
tests: Fix test broken by refactoring
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 22:22:42 +00:00
Paul Gevers
31db506e39
tests/test_policy.py: No change breaking long lines 2019-01-19 20:14:38 +01:00
Niels Thykier
caf83b9357
Fix the remaining two style issues in britney2/__init__.py
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 17:02:10 +00:00
Niels Thykier
e0b46e5196
Make the source pkg consistency checks a TargetSuite method
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 16:47:40 +00:00
Ivo De Decker
4fcb90b775
Read Built-Using info for binary packages
Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-01-19 12:45:06 +00:00
Ivo De Decker
35ae8848b4
Fix apply_src_policies when policy is applied on multiple archs
Move the logic of apply_src_policy and apply_srcarch_policy into PolicyEngine.

This fixes an issue with the excuses.yaml output introduced in commit
15e5228669: only the last verdict was added to the excuse info for that
policy.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-01-19 12:45:05 +00:00
Niels Thykier
22610d86a0
Skip codestyle in stable
Testing this is sid is sufficient and avoids annoying cases where
pycodestyle might work differently in stable vs. sid.

Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 12:37:07 +00:00
Niels Thykier
bb85373210
Ignore pep-8 errors in britney2-tests
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 12:18:45 +00:00
Niels Thykier
dc820756cf
Accept all known issues (by file)
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 12:03:37 +00:00
Niels Thykier
c9d523da93
Remove trailing whitespace
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 12:03:34 +00:00
Niels Thykier
822a8c712c
Migrate to pycodestyle and setup a basic config file
Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-19 12:03:33 +00:00
edawine
ed2aef3db1
Added pycodestyle checks
Changed .travis.yml to download pep8 module
Added pycodestyle conformance checks to be run by nosetests
2019-01-19 12:03:32 +00:00
Niels Thykier
f928c7ed3d Make SourcePackage.binaries a set
The recent code changes made use remove from the "binaries" field in
SourcePackages.  Lists are not particularly optimized for this kind
of removal and we have a few source packages with a lot of binary
packages (e.g. libreoffice, gcc-X-cross{,-ports}) that might trip
poor performance.

Signed-off-by: Niels Thykier <niels@thykier.net>
2019-01-14 13:19:05 +00:00
Ivo De Decker
d0b5cc2ce1 Rename apply_policy to apply_src_policy
apply_src_policy expects an excuse with a new source and binaries. It doesn't
apply to srcarch excuses, which only have new binaries for an existing source.

Signed-off-by: Ivo De Decker <ivodd@debian.org>
2019-01-01 18:28:27 +00:00
Niels Thykier
6174d2c3f9
Create a MigrationItemFactory and migrate most code to use it
This is a step towards making migration unit-testable.  This step
reduces the need for global state (in the MigrationItem class as class
fields) and with another step we can remove the global state entirely
and enable unit tests to create migration items without having to
worry about other unit tests.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-12-31 12:00:50 +00:00
Niels Thykier
7124313aa6
Make InstallabilityTester suite agnostic
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-12-16 11:00:02 +00:00
Niels Thykier
ced7b7b413
Refactor britney.py to use InstallabilityTester less
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-12-16 11:00:01 +00:00
Paul Gevers
b4370ada0b tests: add autopkgtest policy unittest 2018-11-25 11:41:23 +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
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
Paul Gevers
32ea0ccb70
tests: naming of variables in test_policy:apply_policy is highly confusing 2018-11-01 15:22:02 +01: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