Niels Thykier
8e9e099a67
BasePolicy: Make an easy accessor for state_dir
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-05 07:03:44 +00:00
Niels Thykier
b0e193d955
Add missing @property - otherwise "verdict.is_blocked" is always True
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-05 06:56:53 +00:00
Niels Thykier
36608194f8
test_policy: Add additional tests of AgePolicy
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-04 20:09:03 +00:00
Niels Thykier
e88f4d2e5e
AgePolicy: Explicitly ignore comment lines in data files
...
Currently not useful, but it enables us to write comment lines in the
test data files.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-04 20:09:03 +00:00
Niels Thykier
b0f0dde8f5
test_policy: Properly add the fake source package to the Suite.sources field
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-04 20:09:03 +00:00
Niels Thykier
206d5ac5df
Fix typo in parameter
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-04 20:08:16 +00:00
Paul Gevers
c219c42804
Add text to excuses in case autopkgtest is delayed
...
In case autopkgtest triggering is delayed because the required builds aren't
ready yet or the package is not installable, currently there is only the
message that autopktest delays the migration, but no hint why. This commit adds
these hints.
2018-08-01 09:58:41 +00:00
Niels Thykier
b48a1dc17e
Grant elbrus age-days hint
...
To enable elbrus to restore the correct age of some packages with "too
trivial" autopkgtests.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-30 19:30:50 +00:00
Paul Gevers
08a6cdde6f
Don't have britney create migration-references itself
...
The initial idea was to do this to bootstrap the baseline, but it turns out
that this has the drawback it triggers runs for a package that has a new
autopkgtest where it didn't have it in the version in the target suite. It was
considered harmless (as it would just have a failing reference), but due to
autodep8, package can have a passing result in the target suite while the new
autopkgtest is actually broken. Such a package should not be blocked / getting
a penalty.
The alternative is to make the check here smarter, but as this is only for
bootstrapping, lets do that outside of britney proper.
2018-07-29 14:03:41 +00:00
Niels Thykier
94dc17c0d7
britney: Remove {sources,binaries} from Britney
2018-07-29 09:27:20 +00:00
Niels Thykier
4a2fe3420a
Rewrite write_controlfiles to take a single suite as argument
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:27:20 +00:00
Niels Thykier
97d707e5c0
britney: Avoid some references to britney.{sources,binaries}
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:27:20 +00:00
Niels Thykier
dfbff18b5c
Remove some references to "unstable"
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
6c6b8fcb96
policies: Make policies suite name agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
54e5eb0e74
policies: Use suite class instead of suite name
...
When determining whether a policy applies to a given item, use the
suite class rather than the suite name.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
e7b5339eae
britney.py: Replace an instance of 'pu'/'tpu' hardcoding
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
7ed3568eca
britney.py: Remove two more references to "testing"
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
d5224f78cd
Refactor excuse_unsat_dep and make it suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
861632e270
Make upgrade_testing suite agnotic (except for its name)
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
63c867995b
write_heidi: Accept a target suite instead of sources+packages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
609bb9e960
Make migration and undo code suite agnotisc
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
382ced2a68
Make write_excuses suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
9a7394c89d
britney: Rewrite should_* to be (almost) suite agnostic
...
The "almost" comes from the fact that there is a reference to
"pu"/"stable" which does not have an obvious fix at the moment.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
9a5c0c3fa8
Rewrite old_libraries to be suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
b3bfda7d6c
britney.py: Make loading of constraints+faux pkgs suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
7b38fbed91
britney.py: Avoid hardcoding "testing" in some log messages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
64d2bc4203
builder.py: Make the code suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
d0399f4eb0
britney.py: Make get_nuninst suite name agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
f464baa257
Move the "binary" field from Britney to Suite
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
0c6314b466
read_binaries: Use the suite object
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
3e930174ab
Make autohinter suite name agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
d2836b15d4
Rewrite do_hint without hardcoding suite names
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
73f4f3a5dd
Suites now have a reference to sources
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
d1350606bb
Use a proper Suite object for MigrationItem.suite
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
21528f6f0c
Refactor to avoid empty "pu" and "tpu" data structures
...
Previously, we would always create empty data structures for "pu" and
"tpu" if these optional suites were not configured. However, we only
reference "pu" and "tpu" directly in very few spots that can easily be
rewritten.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
8768e2a02a
Define a SuiteClass to classify suites
...
Into 3 categories:
* target suite ("testing")
* primary source suite ("unstable")
* additional source suites ("pu" and "tpu")
This will be useful for implementing logic working with suites without
basing it on the name of the suite.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
b63ade583c
Rename and turn SuiteInfo into a proper class
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
e63aa05708
Add Suites to keep track of all suites
...
At the moment, it is just a glorified dict. However, we will
eventually use it to get rid of the hardcoded references to "testing"
etc. all over the code.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-29 09:23:12 +00:00
Niels Thykier
37f02d611c
Revert "Rename autopkgtest related hints"
...
This reverts commit a07fa9f9070fc9c328021db5cc3e4c4f3063798e.
The new names are just as unhelpful and confusing as the old ones.
Undo for now.
2018-07-25 18:17:36 +00:00
Niels Thykier
a07fa9f907
Rename autopkgtest related hints
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-07-25 16:51:03 +00:00
Paul Gevers
bfa5c9f191
Don't show excuses for packages that are PASS, NEUTRAL, RUNNING-ALWAYSFAIL or ALWAYSFAIL
2018-07-25 18:06:29 +02:00
Paul Gevers
0da1e4d589
autopkgtest: Drop broken reference update
...
1) the update didn't happen for all but the first
2) we don't want a package that fixes a regression in unstable to influence the
reference for another package until it actually migrates, so this updating
is flawed.
2018-07-21 13:21:39 +02:00
Paul Gevers
624b185ba6
autopkgtest: enable NEUTRAL state for the case where all tests were skipped (or none available)
...
Closes : #901847
2018-07-21 13:21:39 +02:00
Niels Thykier
d2fe22348d
Merge branch 'rename-alwaysfailed-in-excuses' into 'master'
...
Rephrase 'Always failed' as it is confusing in Debian
See merge request release-team/britney2!1
2018-07-21 10:24:51 +00:00
Paul Gevers
8bbe112735
Rephrase 'Always failed' as it is confusing in Debian
2018-07-21 10:28:17 +02:00
Niels Thykier
6a2ca127c7
.gitlab-ci: Only publish on commits to master
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:45:27 +00:00
Niels Thykier
c07a10f0bf
Update coveragerc to exclude sitecustomize.py
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:40:08 +00:00
Niels Thykier
3d076d9bb0
.gitlab-ci.yml: Run tests with coverage on gitlab
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:39:47 +00:00
Niels Thykier
28953b2224
Add .gitlab-ci to generate docs
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-06-05 13:39:47 +00:00
Niels Thykier
d11152b366
Remove the "valid candidate"/"Not considered" messages
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-05-21 07:48:33 +00:00