Niels Thykier
0446ead9e8
inst-builder: Replace RelationBuilder with a set_relations method
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 13:06:48 +00:00
Niels Thykier
ab6b2ef953
inst-builder: Refactor to bulk adding dependency clauses
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 12:47:11 +00:00
Niels Thykier
bc1d3afa38
inst-builder: Make add_breaks a bulk call
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 12:33:09 +00:00
Niels Thykier
6f97e36477
inst-builder: Split relation loop and optimize conflicts
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 12:25:20 +00:00
Niels Thykier
6a3d100b92
Fix error format string error in AssertionError
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 12:23:35 +00:00
Niels Thykier
fc834624fc
Avoid some unnecessary hash look ups
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-12 08:37:07 +00:00
Niels Thykier
74c728bf91
Make the tab-completer suite agnostic
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-09 22:59:19 +00:00
Niels Thykier
208c3c2e90
britney: Use direct and indirect affected packages for nuninst checks
...
Previously, we split affected into a "reverse relations with a
dependency on the migrated/change package" set and a set of "the
rest". With this commit we change the sets into a set of packages
with a direct relation on the migrated/changed package and the full
set of all affected.
The change has no effect on Britney's results as the first set is only
used as an optimization to reject some items faster.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-09 17:46:31 +00:00
Niels Thykier
0d5c4a24c4
Handle Build-Depends-Indep in excuses
...
Admittedly, no policy adds them yet so this is currently no-op code.
However, future commits can start to rely on this infrastructure code.
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-08 16:18:02 +00:00
Niels Thykier
1623828a48
SourcePackage: Add field for Build-Depends-Indep
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-08 16:18:02 +00:00
Niels Thykier
8753649e54
Replace a for-loop with any()
2018-08-08 16:18:02 +00:00
Niels Thykier
70947f4c21
Use excuses_suffix instead of name for items
...
At the moment, the two are identical, but they are not intended to
remain identical (i.e. the name should eventually become the full
suite name).
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-07 20:43:48 +00:00
Niels Thykier
1d45b2a3b2
Move autopkgtest specific field to Autopkgtest policy
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-07 19:28:25 +00:00
Mathieu Trudel-Lapierre
8d2cabd914
Add 'unsatisifiable dependencies' to YAML excuses
...
Cherry-Pick: 80bf9060de6b7a7fe21f10da90f0dcc15b96ac1c
Cherry-Pick: f32907aceab7bdf37856ceef3122149c046f0ee1
Cherry-Pick: 9ef496177f86b18d9f910da1360dd773b82f1fb7
Cherry-Pick: b16530a37df93851fda35db016775056a6b0c218
Signed-off-by: Niels Thykier <niels@thykier.net>
Flatten the defaultdict(set) for unsat_deps into a standard dict for output
2018-08-07 18:55:57 +00:00
Niels Thykier
3e1da36331
excuses: Correct source field in YAML excuses
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-07 18:29:39 +00:00
Paul Gevers
0868962ee3
autopkgtest: Ignore triggers without a forward slash
...
They are manual triggers in the name of britney, most likely by mistake (but
those happen).
Closes : #905600
2018-08-07 08:47:25 +02:00
Niels Thykier
f67fc00292
AgePolicy: Move self.options usage to constructor/initialization
...
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-05 07:22:04 +00:00
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