Niels Thykier
9ace17b38a
solver.py: Remove unused import
...
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
bd5b3ac4ec
Remove unused assignments/parameters
...
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
a5aad84699
britney.py: Remove trailing semi-colons
...
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
3230d1dc75
britney.py: Fix use before assignment
...
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
a13386ae34
britney.py: Avoid some redundancy in auto_hinter()
...
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
11e84d01a3
britney: Optimise the original auto-hinter a bit
...
Notably:
* Avoid repeated calls frozenset(X), where we can trivially do
without.
* Skip the inner loop, when "i" is in "to_skip".
* Use a set rather than a list for "to_skip" as we do more
membership tests.
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Niels Thykier
3710980b10
get_dependency_solvers: Avoid unnecessary boolean ret value
...
The get_dependency_solvers method returns a (boolean, list)-tuple, but
the boolean can always be implied from the list (in boolean context).
Signed-off-by: Niels Thykier <niels@thykier.net>
10 years ago
Ivo De Decker
3a05c6ba91
Also make sure forced-reason is a list
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
10 years ago
Julien Cristau
d127ac65ae
Fix silly NameError
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Ivo De Decker
14107520d7
Make sure reason is a list, even with python 3
...
Signed-off-by: Ivo De Decker <ivodd@debian.org>
10 years ago
Julien Cristau
62c1c9ec3c
Add explicit encoding to all files
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
f64f7072c0
Sources and Packages are utf-8
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
7b0138ecb7
Don't crash if the urgencies file contains non-ascii
...
The live-2011-12-13 test set has random garbage in the middle.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
e8c84e8cc7
Use python3-style super()
10 years ago
Julien Cristau
c42fbcc5d3
Remove dependency on six
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
8044667ed6
Use python3
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
71b21083b7
Use super() instead of explicitly calling our superclass
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
49f37a8965
Disable a code path for encoded yaml in python3
...
The comment says we should no longer need that.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
b354afc39d
Use six.moves for itertools, urllib and intern
...
They're renamed in python3.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
ba981aabc2
Add sort method to MigrationItem
...
write_excuses wants them sorted, and python3 doesn't allow sorting
arbitrary objects.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
d75813eb07
Stop using string.find
...
It's gone in python3
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
1e1f574f8a
Use the key= argument to sorted()
...
cmp is gone in python3. Also add a sorting method to Excuse that is
compatible with its __eq__/__hash__ methods.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
63ccd53759
Stop using sys.maxint
...
It doesn't exist in python3, but 1000 days should be safe enough as a
fallback for a package without urgency.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
b3aef7fe6d
Stop using dict.iter* methods
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
c580fb7683
Use python3-compatible form for except clause
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
24e8e9337c
Replace map() with list comprehensions
...
As a bonus this removes a use of string.strip (not in python3).
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
49475f79ba
Simplify a bit the loop to read our config file
...
- split the one-liner into a for and an if
- use open() as a context manager
- don't use string.strip which is gone in python3
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
b64afb639f
Don't use the file builtin
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
5d7393cf86
Switch to print_function
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
726bbde3a3
Remove sys.path frobbing
...
I don't think this has been necessary since we stopped loading a C
extension.
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Julien Cristau
bf1d91d587
Fix typo
...
Signed-off-by: Julien Cristau <jcristau@debian.org>
10 years ago
Jonathan Wiltshire
d0d17dac5b
britney.conf: NOBREAKALL amd64 in addition to i386
...
Signed-off-by: Jonathan Wiltshire <jmw@debian.org>
10 years ago
Adam D. Barratt
8d97761dec
britney{,_nobreakall}.conf: remove kfreebsd
...
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
10 years ago
Colin Watson
d412b71391
[r=adconrad] Fix autopkgtest version selection loop
10 years ago
Steve Langasek
c1fa1c0082
Enable gating on boot testing results
10 years ago
Francis Ginther
da2175f1f1
Set 'BOOTTEST_ENABLE = yes' to turn it on.
10 years ago
Steve Langasek
84983f5eae
Merge lp:~cprov/britney/boottest-double-blocking
10 years ago
Celso Providelo
50e0bc137d
Add 'boottest' excuse failure reason when it has failed even if the previous tests had already failed.
10 years ago
Celso Providelo
ea6493ae71
Only enable BOOTTEST for testing, so britney.conf is safe on trunk.
10 years ago
Celso Providelo
c76874fda5
Test ADT & BootTest criteria running simultaneously. Fixed minor issue related to doubling-blocking promotions.
10 years ago
Steve Langasek
8effd3d220
Disable boottesting for now.
...
Britney runs failed with:
Traceback (most recent call last):
File "/home/ubuntu-archive/proposed-migration/code/b2/britney.py", line 3259, in <module>
Britney().main()
File "/home/ubuntu-archive/proposed-migration/code/b2/britney.py", line 3211, in main
self.write_excuses()
File "/home/ubuntu-archive/proposed-migration/code/b2/britney.py", line 1982, in write_excuses
upgrade_me.remove(excuse.name)
ValueError: list.remove(x): x not in list
10 years ago
Steve Langasek
9afd502e7f
Merge lp:~canonical-ci-engineering/britney/boottesting-support
10 years ago
Vincent Ladeuil
0b7d702f69
Poperly initialize Excuse.run_boottest.
10 years ago
Celso Providelo
0f3662ec67
Cope with missing/broken results due to outdated apt cache. Britney will not fail, but source promotion will be blocked. Also waiting for amd64 binaries (arch-indep deps) before running boottests.
10 years ago
Celso Providelo
341ec4a3e0
Typo fixed
10 years ago
Celso Providelo
bf8056a061
Cope with missing/broken results due to outdated apt cache. Britney will not fail, but source promotion will be blocked.
10 years ago
Celso Providelo
496a2f3134
Suppress boottest SKIPPED notice on excuses, it's unnecessary noise.
10 years ago
Celso Providelo
60a0bcad76
Presenting links for the corresponding boottest jenkins job.
10 years ago
Celso Providelo
b9890e1b7c
Adding links to the boottest jobs (results) in the public and the private servers.
10 years ago
Celso Providelo
011aa3570e
Stop announcing skipped boottest attempts.
10 years ago