Commit Graph

310 Commits (915b4a012d4d6509d794faf38611a303c5568894)

Author SHA1 Message Date
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
Niels Thykier 6c5300d873
Unfold the suite.binaries tuple into two members
6 years ago
Ivo De Decker 9c606ef533 Don't add smooth-updatable cruft to migration items
6 years ago
Niels Thykier 99a35a2986
autopkgtest.py: Update previous commit to match recent changes
6 years ago
Iain Lane c09a229dc9
autopkgtest: Run gcc-n's testuite, if it has one
6 years ago
Niels Thykier 880a614b2b
britney: Extract a find_smooth_updateable_binaries function
6 years ago
Niels Thykier c4931fb1b2
solver: Move a common variable out of an if
6 years ago
Niels Thykier 1e46965924
inst/builder.py: Split function in three to reduce indentation levels
6 years ago
Niels Thykier dd5211d55a
inst-tester: Add missing element to a set
6 years ago
Niels Thykier 55dd190fa6
inst-tester: Make "check" a list
6 years ago
Niels Thykier cd1f384012
inst-tester: Remove obsolete "safe-set" optimization
6 years ago
Niels Thykier 95b945d2b3
inst-tester: Remove obsolete optimization
6 years ago
Niels Thykier 0690a85fe0
excuse: Avoid some unnecessary throw-away tuples
6 years ago
Niels Thykier bd1a0ea000
excuse: Fix some minor style/pep8 issues
6 years ago
Niels Thykier 41f4b43f2c
excuse.p: Refactor some duplicated code
6 years ago
Paul Gevers 18633e275c
autopkgtest: figure out which packages from unstable are needed
6 years ago
Paul Gevers 713b98ad6b
inst_tester: add is_pkg_in_testing
6 years ago
Paul Gevers 20a64cadef
Process space separated triggers individually
6 years ago
Niels Thykier b6888c2716 test-builder: Avoid allocating empty throw-away lists on empty relations
6 years ago
Niels Thykier 373f7f51f3 inst-builder: Avoid some hash-look ups by doing them early
6 years ago
Niels Thykier 35add7cb26 Move loop-invariant out of loop
6 years ago
Niels Thykier 02001d4d4f inst-builder: Loop over values instead of keys + hash-lookup
6 years ago