Commit Graph

531 Commits (4f4d289bc60df7b308813a789af290138bcc6dc1)

Author SHA1 Message Date
Ivo De Decker 8b6638c566 Specify dependencies between excuses based on packages
5 years ago
Ivo De Decker b5285f21d7 Track packages (source and binary) for excuses
5 years ago
Ivo De Decker f11d92bf8f Add PackageId and BinaryPackageId objects
5 years ago
Ivo De Decker 3c8b7ba11d Add source to SourcePackage object
5 years ago
Ivo De Decker 6ca84132f9 Excuses: remove unused sane_deps
5 years ago
Paul Gevers 177b65d674
autopkgtest: also test for autodep8 for migration runs
5 years ago
Paul Gevers b380508635
Drop dkms auto-detection for autodep8 as it isn't opt-in
5 years ago
Ivo De Decker 628b93b791 Make adding a failing test a regression
5 years ago
Niels Thykier 0d5ea5eb8c
Improve cache invalidation of (pseudo-)essential set
5 years ago
Niels Thykier c3ca2bc703
console: Provide helpers to locate BinaryPackageIDs
5 years ago
Niels Thykier 3329f73535
console.py: Fix whitespace issue tripping codestyle
5 years ago
Niels Thykier 35aed10291
Add python-console command to the hint-tester
5 years ago
Ivo De Decker 8d5805b8de Don't allow smooth update if section not in s-u config
5 years ago
Ivo De Decker 301298e8c4 Add comment to clarify smooth update code
5 years ago
Niels Thykier ea14c7237d
Remove obsolete file consts.py
5 years ago
Niels Thykier 2a1e4386fd
Remove optimization invalidated by allow-uninst hint
5 years ago
Niels Thykier a6e3581195
SuiteLoader: Support Release files only "Codename" fields
5 years ago
Ivo De Decker 93b46dde0d Allow new uninstallables from allow-uninst hint
5 years ago
Ivo De Decker 988b33d0ba Add allow-uninst hint
5 years ago
Ivo De Decker 4de569114a Fix excuses output for package with urgent hint
5 years ago
Ivo De Decker 4a3f98657d Remove unimportant message from excuses
5 years ago
Ivo De Decker 13b62f8da5 Remove obsolete addhtml()
5 years ago
Ivo De Decker 2bde180d18 fix codestyle issues in policies/__init_.py
5 years ago
Ivo De Decker a1debec1a8 fix codestyle issues in excusefinder.py
5 years ago
Ivo De Decker 3f9092f94b fix codestyle issues in excuse.py
5 years ago
Ivo De Decker 57f9c98241 Fix some verdict descriptions
5 years ago
Ivo De Decker 4cbb691dfe Remove broken depends code in _should_upgrade_src
5 years ago
Ivo De Decker ccd30f96fd switch depends to detailed excuse info
5 years ago
Ivo De Decker a4f7e7433e switch impossible depends to detailed excuse info
5 years ago
Ivo De Decker 03856a3876 switch missing builds to detailed excuse info
5 years ago
Ivo De Decker e25ca70427 switch removal to detailed excuse info
5 years ago
Ivo De Decker 8cff83a8c6 remove obsolete message in bugs policy
5 years ago
Ivo De Decker 68b051d36d switch bugs policy to detailed excuse info
5 years ago
Ivo De Decker 48801054a2 switch autopkgtest policy to detailed excuse info
5 years ago
Ivo De Decker 8c44a78948 switch block policy to detailed excuse info
5 years ago
Ivo De Decker 3d0fdae9d1 switch build-dep policy to detailed excuse info
5 years ago
Ivo De Decker e245891d36 add reason for missing build
5 years ago
Ivo De Decker bb2512c948 add extra info to buildd policy
5 years ago
Ivo De Decker cda4655b83 switch newer in testing to detailed excuse info
5 years ago
Ivo De Decker 90cb743410 switch rdep invalidation to detailed excuse info
5 years ago
Ivo De Decker e144cbc743 switch wrong versions in should_upgrade_srcarch to detailed excuse info
5 years ago
Ivo De Decker 56dad96c2b switch unimportant info in should_upgrade_srcarch to detailed excuse info
5 years ago
Ivo De Decker 4b40b11b07 switch force info to detailed excuse info
5 years ago
Ivo De Decker 409deee905 switch missing builds to detailed excuse info
5 years ago
Ivo De Decker 63a9d786a8 switch no binaries to detailed excuse info
5 years ago
Ivo De Decker 3576ed6667 switch buildd policy to detailed excuse info
5 years ago
Ivo De Decker deb27e7ec0 switch built-using policy to detailed excuse info
5 years ago
Ivo De Decker 76f33a5fc2 switch piuparts policy to detailed excuse info
5 years ago
Ivo De Decker 370bf52d56 switch age policy to detailed excuse info
5 years ago
Ivo De Decker b70d1d09d7 keep track of verdict when invalidating deps
5 years ago
Ivo De Decker abaa4c7205 render html excuse based on 'text'
5 years ago
Ivo De Decker 065dbd26ee Add functions for details excuse info
5 years ago
Ivo De Decker 19392f63c2 fix codestyle issues in policy_.py
5 years ago
Ivo De Decker 7fdbfcbeb2 Check version of cruft removal item
5 years ago
Ivo De Decker e3af8993be compute_groups: rename badly named source_name
5 years ago
Ivo De Decker 8b0803e3bb Buildd: don't block binnmu with maintainer arch: all
5 years ago
Steve Langasek df2babdd0c
Trigger linux rebuild test on upload of gcc-defaults
6 years ago
Ivo De Decker 208726f538 Add BuiltOnBuilddPolicy
6 years ago
Paul Gevers 85d10a27d2
Take suite name from Release file if it exist
6 years ago
Paul Gevers eb3fb3ef6e
Add support for partial source suites via options
6 years ago
Paul Gevers 86c728321e
autopkgtest.py: Lower the logging level for lots of messages
6 years ago
Niels Thykier c741b03aaf
Make PolicyVerdict ordered/comparable
6 years ago
Niels Thykier 533288fa3e
utils: Remove obsolete imports
6 years ago
Niels Thykier 6875272618
AgePolicy: Update age-requirement in excuses to match hints
6 years ago
Mattia Rizzolo bc0fb3f61d
Display bounty/penalty information only if they would actually be changing anything
6 years ago
Niels Thykier 198e257a91
autopkgtest: Move cache upgrade into its own function
6 years ago
Niels Thykier cd654183b7
autopkgtest: Extract some ("boring") loops into a function
6 years ago
Niels Thykier fce1fe5c27
autopkgtests: Move some common code into a function
6 years ago
Paul Gevers 7611231ee2
Fix all pycodestyle issues in b/p/autopkgtest.py
6 years ago
Paul Gevers 992b27abb3
autopkgtest: retrigger old failures
6 years ago
Paul Gevers 42ac9c34a1
autopkgtest: add timestamp to results
6 years ago
Niels Thykier 915b4a012d
Since dpkg/1.19.1, "foo:native" is also valid for arch:all pkgs
6 years ago
Niels Thykier f4ecd86000
Pass migration items to policies (instead of src + suite)
6 years ago
Niels Thykier 97abb6f467
ExcuseFinder: Reduce the number of migration items created
6 years ago
Niels Thykier 78d120114f
ExcuseFinder: Merge two loops
6 years ago
Niels Thykier 9a0a99abc9
ExcuseFinder: Have _should_* work on migration items
6 years ago
Niels Thykier d9f9c6d4a9
Let ExcuseFinder create migration items
6 years ago
Niels Thykier 6dde43a339
Create an ExcuseFinder class for computing relevant excuses
6 years ago
Niels Thykier 59633a92b5
Clone all_buildarchs before mutating it
6 years ago
Niels Thykier 2c9e0b9b97
do_all: Prune cruft after non-recursive hints (e.g. "easy")
6 years ago
Niels Thykier c30ecbb7e8
Skip cruft on source migration / removal items
6 years ago
Niels Thykier 73791e48d0
Rename migrate_item{,s}_to_target_suite
6 years ago
Niels Thykier 5d408fa800
Remove new cruft items in iter_packages
6 years ago
Niels Thykier 32ebe9d4e0
Ensure get_auto_hinter_hints does not choke on cruft items
6 years ago
Paul Gevers 16f823dd91 autopkgtest: in Debian we want linux to be treated as any other
6 years ago
Paul Gevers 1ca76486b5
Replace libreoffice with doxygen as the libgcc smoke test for gcc.
6 years ago
Niels Thykier 69d42ffb36
solver: improve apply_order to simplify more code
6 years ago
Niels Thykier b306700376
solver: Extract a function from _comute_group_order_adds
6 years ago
Niels Thykier 259fecf6cf
solver: Rename a variable to avoid confusion
6 years ago
Niels Thykier cdcfe85bfa
solver: Replace dict with a proper object
6 years ago
Niels Thykier 93f101bee2
solver: Extract some common code into a function
6 years ago
Niels Thykier 2ed6161b49
solver: Refactor out a function to avoid duplicated code
6 years ago
Niels Thykier af20634b12
solver: Merge some loops to reduce nesting level
6 years ago
Niels Thykier b61e1086bd
solver: Invert an if-statement to reduce max indentation level
6 years ago
Niels Thykier 68407c53c0
Remove an unnecessary if-statement
6 years ago
Niels Thykier 9971714e27
solver: Merge two loops by using chain
6 years ago
Niels Thykier 16dc303190
solver: Reduce two small loops into a comprehension
6 years ago
Niels Thykier d3e06fc45f
solver: Split _compute_group_order into three methods
6 years ago
Niels Thykier c65b377c5d
solver: Split solve_groups into 3 smaller methods
6 years ago
Niels Thykier 4eb038ab6d
autopkgtest: Move field creation into __init__
6 years ago
Paul Gevers 1ecb07ac2d
autopkgtest: bug fix in baseline cache
6 years ago
Paul Gevers 075d4d823b
autopkgtest: fix copy() in save_state
6 years ago
Paul Gevers c6c5c45287
autopkgtest: tiny change for easier understanding
6 years ago
Paul Gevers d038e7bbe6
autopkgtest: simplify bin_triggers logic/naming
6 years ago
Niels Thykier caf83b9357
Fix the remaining two style issues in britney2/__init__.py
6 years ago
Niels Thykier e0b46e5196
Make the source pkg consistency checks a TargetSuite method
6 years ago
Niels Thykier b200c15062
Add a missing "no cover"
6 years ago
Niels Thykier 427328821e
Remove redundant variables
6 years ago
Niels Thykier b0835fa4a1
Fix pycodestyle warnings
6 years ago
Ivo De Decker 66648c1a03
Add BuiltUsingPolicy
6 years ago
Ivo De Decker 4fcb90b775
Read Built-Using info for binary packages
6 years ago
Ivo De Decker 35ae8848b4
Fix apply_src_policies when policy is applied on multiple archs
6 years ago
Niels Thykier bb699f7416
Make britney2/utils.py PEP-8 clean
6 years ago
Niels Thykier 5a38e00996
Fix pep8 issues in check_target_suite_source_pkg_consistency
6 years ago
Niels Thykier c9d523da93
Remove trailing whitespace
6 years ago
Ivo De Decker cd08deb943 Fix build-dep check for source with only arch: all binaries
6 years ago
Ivo De Decker 15e5228669 Add src_policy option to policies.
6 years ago
Niels Thykier 82fa58df20 Extract a compute_item_name method
6 years ago
Ivo De Decker 97ed917db4 Sort some data for deterministic output in excuses
6 years ago
Niels Thykier f928c7ed3d Make SourcePackage.binaries a set
6 years ago
Ivo De Decker 37a173af67 Always create a new SourcePackage
6 years ago
Ivo De Decker 7bba77726b Always define source_t in apply_item_to_target_suite
6 years ago
Ivo De Decker 69c94caa01 Add source_name return value to compute_groups
6 years ago
Ivo De Decker 046bdc60c6 Add consistency checks for target suite.
6 years ago
Niels Thykier 6c3f8354e5
BlockPolicy: Compile regex once rather than once per migration item
6 years ago
Niels Thykier c4371b9f58
BlockPolicy: Replace print with logger.info
6 years ago
Niels Thykier 2fea931da3
Remove --control-files; It is not used any where
6 years ago
Niels Thykier 603aa9fdca
Drop unused local variables
6 years ago
Ivo De Decker f1cd87dc9c Check build-depends-indep
6 years ago
Ivo De Decker 1c115eee11 For build-depends-indep, only add best result
6 years ago
Ivo De Decker 3f575a1cd0 For b-d-indep track best result and archs per result
6 years ago
Ivo De Decker fa44a3f968 Implement get_check_archs for build-depends-indep
6 years ago
Ivo De Decker 65128a13b7 Read all_buildarch config option
6 years ago
Ivo De Decker a28a7665f3 Split off adding build-dep info into separate function
6 years ago
Ivo De Decker 07643f4c30 Define BuildDepResult object (based on IntEnum)
6 years ago
Ivo De Decker c9148d475a Get dependency type from variable
6 years ago
Ivo De Decker ccbaedab1d Split of _get_check_archs into separate function
6 years ago
Ivo De Decker a073e35940 BuildDependsPolicy: split off checking in separate function
6 years ago
Ivo De Decker 0709f8d96c Move block handling to BlockPolicy
6 years ago
Ivo De Decker 49d9a38d25 Skip unimplemented policies in excuses
6 years ago
Ivo De Decker 7090c23efc Expose architecture and suite property for hints
6 years ago
Ivo De Decker 7e05c0e5ac Apply policy to srcarch excuses
6 years ago
Ivo De Decker d0b5cc2ce1 Rename apply_policy to apply_src_policy
6 years ago
Ivo De Decker 0d80bad65c Move handling of policies to PolicyEngine
6 years ago
Niels Thykier b16ae8046a
Add some '# pragma: no cover' for error cases, abstract methods, etc.
6 years ago
Niels Thykier 5bcbed499e
Fix the doc string for compile_nuninst
6 years ago
Niels Thykier 04318473f6
Simplify MigrationItem.parse_item by extracting a method
6 years ago
Niels Thykier 542f030a96
Remove now obsolete code from MigrationItem
6 years ago
Niels Thykier 61d3068de6
Move suite name auto-correction to MigrationItemFactory
6 years ago
Niels Thykier eec7b9b7ef
MigrationItem: Remove setter for "name"
6 years ago
Niels Thykier 6174d2c3f9
Create a MigrationItemFactory and migrate most code to use it
6 years ago
Ivo De Decker 18d951be25 Handle dependencies between excuses in a generic way
6 years ago
Ivo De Decker 847e6e41e1 Add invalidated-by-other-package field in excuses.yaml
6 years ago
Niels Thykier dd3dcf818f
Mark a regex pattern as a raw string
6 years ago
Raphaël Hertzog 6c1cf01898 Do not ensure consistency of "Section" field across unstable and testing
6 years ago
Ivo De Decker 348274947e Add option fake_runtime to override runtime in britney.conf
6 years ago
Niels Thykier 179faeb23b
Update some comments to match a renamed method
6 years ago
Niels Thykier 8cefd1a546
Have transactions verify/assert safe usage
6 years ago
Niels Thykier 7d758760d1
MigrationManager: _transaction is a stack; not a queue
6 years ago
Niels Thykier a5352d353b
Simplify undo code handling sources
6 years ago
Niels Thykier 59ae7e3d68
Optimize out "nvirtual" member of undo items
6 years ago
Niels Thykier 5642a90449
Rename _compute_groups to compute_groups
6 years ago
Niels Thykier 33ba41c76e
Split out a _compute_removals from _compute_groups
6 years ago
Niels Thykier d3b391aed1
MigrationManager: Precompute a set of all architectures
6 years ago
Niels Thykier 89fcccba13
MigrationManager: Create a is_nuninst_worse
6 years ago
Niels Thykier aa6dd4a0f3
Extract a compute eqv_set function
6 years ago
Niels Thykier a95565c0e8
Split migrate_item_to_target_suite into two
6 years ago
Niels Thykier 57ded55674
Remove dead assignment
6 years ago
Niels Thykier c7dbd95c0b
Have MigrationManager keep track of active transaction
6 years ago
Niels Thykier 4803065e1a
Move (and rename) try_migration to the MigrationManager
6 years ago
Niels Thykier 28c7a052fa
Move to MM and rename doop_source to apply_item_to_target_suite
6 years ago
Niels Thykier 4ae6a34a27
Move _compute_groups to a new MigrationManager class
6 years ago
Ivo De Decker 12debfc7c8 Check that version increases when adding packages to testing
6 years ago
Niels Thykier a05a249e04
Record exactly which binaries are updated in the transaction
6 years ago
Niels Thykier 5d49a41204
Introduce a "Transaction" for changes to testing
6 years ago
Niels Thykier 68fd0ba4b2
Remove --components/COMPONENTS as it is auto-detected
6 years ago
Niels Thykier 7124313aa6
Make InstallabilityTester suite agnostic
6 years ago
Niels Thykier ced7b7b413
Refactor britney.py to use InstallabilityTester less
6 years ago
Niels Thykier 0099c34d93
Refactor _read_binaries to reduce its complexity a bit
6 years ago
Niels Thykier f547fb20b1
suiteloader: Create a _setup_architecture method
6 years ago
Niels Thykier 7efa865a04
Move Suite/Package loading into a separate class/module
6 years ago
Niels Thykier deb9482a2f
Move parse_provides to britney2.utils
6 years ago
Ivo De Decker 3828a76053 Filter out cruft in find_smooth_updateable_binaries
6 years ago
Ivo De Decker f0ddfc253f Fix parsing of migration item name for binNMU in tpu
6 years ago
Niels Thykier 65b67e763c
Replace the use of inst_tester with new suite functionality
6 years ago
Niels Thykier 03df891b7e
Expand the Suite interface and create a TargetSuite sub-class
6 years ago
Niels Thykier 0b4f58315f
Rename a method and reduce a table to a set
6 years ago
Niels Thykier 0eb8b5a201
BinaryPackageUniverse: Provde equivalent_packages
6 years ago
Niels Thykier ef813bf0d8
Let the BinaryPackageUnvierse track broken packages
6 years ago
Niels Thykier 8867ef0cf9
Let the BinaryPackageUniverse track essential packages
6 years ago
Niels Thykier 07a407e810
Partly separate the solver from the inst_tester
6 years ago
Niels Thykier c0ecdd82fb
Remove now redundant APIs from the InstallabilityTester
6 years ago
Niels Thykier 0a669461ca
Separate inst_tester from universe
6 years ago
Niels Thykier 35b06ee007
tests: Separate inst_tester from universe
6 years ago
Niels Thykier d557610c6f
BinaryPackageUniverse: Implement packages_equivalent_to()
6 years ago
Niels Thykier 530db5d3f7
Extract a BinaryPackageUniverse from the InstallabilityTester
6 years ago
Niels Thykier 32def47991
Fix typo in doc string
6 years ago
Niels Thykier b37575f000
Stop creating some throw-away data-structures for a method call
6 years ago
Niels Thykier f86cda97da
inst_tester: Improve doc string/argument name
6 years ago
Niels Thykier 7bcbcb6282
Make clone_nuninst able to fully deep clone nuninst
6 years ago