Colin Watson
bfb5af7d0b
britney.conf: add Ubuntu hinters
...
Delegate "block" and "unblock" hints to members of ~ubuntu-touch-release.
Add active members of the SRU team to hint permissions.
8 years ago
Colin Watson
072f125caf
britney.conf: Ubuntu configuration
...
- use relative paths
- set Ubuntu architectures
- make all output files series specific
- mark -proposed as a partial suite
- set mindays to 0 for all urgencies
- drop tpu and pu
- disable smooth updates
- disable removals of obsolete source packages
- disable components, using old merged package lists for now
8 years ago
Martin Pitt
15aab3348a
Store Testsuite-Triggers: list in sources
...
Compute an inverse trigger → sources map, as that's usually the direction that
britney is interested in.
8 years ago
Martin Pitt
0d43a20471
Store Testsuite: list in sources
...
Extend read_sources to store the components of Testsuite: as a list.
8 years ago
Colin Watson
7eb3412828
Add a --distribution option
8 years ago
Colin Watson
3db97e9741
Add new --series option
...
Replace %(SERIES) macro in config files with given value.
8 years ago
Colin Watson
8fb3c782aa
Only issue "From wrong source" for binaries not at the same version in testing
...
Same-version could happen for merged binaries in partial-unstable mode.
8 years ago
Colin Watson
b144470940
Optionally merge packages from testing to unstable
...
To cope with a partial unstable suite like Ubuntu's -proposed pocket.
8 years ago
Colin Watson
a2dcb26901
Make sure that containing directories exist before writing output files
...
We don't use os.makedirs(dir, exist_ok=True) as that is too strict: it fails if
the directory already exists with different permissions (e. g. with 775). Thus
introduce a helper function ensuredir().
8 years ago
Robert Bruce Park
f32a8e37da
Make Heidi optional
...
Setting HEIDI_OUTPUT to an empty value will skip the heidi generation, to speed
up britney in scenarios where heidi is not needed.
8 years ago
Martin Pitt
0c73ebfa98
Skip second-stage upgrade testing if UPGRADE_OUTPUT option is absent or empty
...
This is useful to speed up britney in dry run mode, if we are only interested
in builds and package tests.
8 years ago
Martin Pitt
e987fedd80
Save policy state before upgrade tester
...
We might not (want to) run the upgrade tester for some use cases, but we still
need to save the policy state.
8 years ago
Martin Pitt
e93d8ae221
Skip piuparts policy if summary file is missing
8 years ago
Colin Watson
c26dfad9c2
Skip bug-based processing if BugsV is missing
8 years ago
Colin Watson
538d5c61ff
Use default urgency for all packages if Urgencies is missing
8 years ago
Martin Pitt
e5f306c5f5
Consider packages with M-A qualifiers for reverse dependencies
...
Strip of Multi-Arch qualifiers ":any" and ":native" when building the
dependency fields, as they are not part of the package name.
This will fix cases like
Package: ipython3
Depends: python3:any (>= 3)
and include ipython3 in python3's reverse dependencies.
Closes : #794194
8 years ago
Iain Lane
8e0405d2e2
hint-tester: Don't lowercase the input
...
Doing this means that you can't use the hint tester for packages with
uppercase characters in the version, e.g.
Version mismatch, dreamchess 0.2.1-rc2-2build1 != 0.2.1-RC2-2build1
8 years ago
Emilio Pozuelo Monfort
af7c96142d
Add ignore-piuparts to the standard hint set
...
Signed-off-by: Emilio Pozuelo Monfort <pochu@debian.org>
8 years ago
Niels Thykier
0349cd9477
Implement a mandatory 10 day migration delay
...
Per https://lists.debian.org/debian-devel-announce/2016/11/msg00002.html
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
3e888a9fdf
PiupartsPolicy: Improve html message
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Robert Bruce Park
40ccb4bdc6
Invalidate excuse after each policy run
...
This fixes commit 497edc to really allow policies to see if the excuse has
already been invalidated by previous policies.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
bcdb2b39cd
Add PiupartsPolicy to avoid piuparts regressions
...
Closes : Debian/britney2#16
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
e6e221ad52
Extract a compile_nuninst and move it to utils
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
eaf4660918
utils: Replace explicit loop index handling with enumerate
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
06504f2ae7
Move invalidate_exuses to utils
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
20f2e27873
Fix --print-nuninst + --nuninst-cache
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
fd614062ae
Minor optimisation of force handling
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
56fa65f596
Replace a use of src[X] with src.x
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
166a6533ba
completer: Replace src[X] with src.X
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
0cc7f7a8d2
Move build_installability_tester to builder.py
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
7a63784876
Move get_dependency_solvers to utils
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
c4be8436db
Move read_sources_file to utils
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
0f45b195a6
Refactor doop_source to simplify logic
...
Cleanly split doop_source into a (small) part about source packages
and a (longer) part about binary packages.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
027142e12b
Fix bug where compute_groups returned tuple instead of pkg_id
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
a14ced6403
Drop now unused "from __future__" imports
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
7af650d36d
"selected" is never None in iter_packages
...
It used to be possible, but it is not any more.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
ecf95229d3
Use asserts to guard single binary removal items
...
Coverage suggests that the conditions are always true. If so, we can
replace the "elif" with a regular "if" - but for now, lets keep an
assert.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
9ca30aac81
Rename a variable for clarity reasons
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
a768432eb2
solver.py: Add missing "no cover" pragma
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
d3e343a3bd
AgePolicy: Fix bug in creating the age file
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
241b17602d
utils: Remove condition that is always true
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
fc2269ba02
rc-bugs policy: Ignored bugs are not unique to testing
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
d7f6a00a51
Add another policy test for ignore-rc-bugs
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
96b7e606cf
Add simple RC bugs unit test
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
9c563f1a96
Move data classes into britney2/__init__.py
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
4eb5bdb396
Show coverage reports in travis-ci builds
...
Ideally we would extract that report and post it somewhere. That is
left as future work.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
6360daf8c5
Assert that binaries have sensible arch values
...
Add a check to ensure we do not create broken test data (as happened
recently, where the architecture values were swapped for a single
binary). A cold hard failure like this is easier to debug
compared to Britney playing "garbage in, garbage out".
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
20c2b87833
Sprinkle some "no cover" pragmas over the code base
...
Add some "no cover" to some unrecoverable exceptions
(e.g. misconfiguration) or base-class methods that are not intended to
be invoked.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
54fd517062
excuse.py: Drop now unused urgency field
...
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago
Niels Thykier
2d8a471f70
undo_changes: Simplify case for virtual packages
...
doop_source never (no longer?) creates an element in "virtual" where
the package name is prefixed with "-", so we can drop that branch.
Signed-off-by: Niels Thykier <niels@thykier.net>
8 years ago