Due to the number of hints in standing use in Ubuntu, hints.search() is an expensive operation, and we call it once for *every single test* referenced from -proposed. Since force-reset-test are a small proportion of the hints in use, searching once for all the hints of this type and only searching this subset for each autopkgtest improves performance (with 23000 autopkgtests referenced in -proposed, this saves roughly 1 minute of runtime, or 11% on a 9-minute britney run; the number of packages in -proposed is typically much higher at other points in the release cycle, therefore the absolute improvement in performance is expected to be greater.) The force-reset-test hints are an Ubuntu delta so this is not expected to be upstreamed; and it could eventually be dropped if and when baseline retesting is implemented in Ubuntu and the number of hints required drops. This could be implemented with a more generic, elegant solution in HintsCollection, but again, the scalability problem of hints is hopefully short-lived so I didn't consider it worth the investment here.less-recipients
parent
82fad57aa9
commit
6cd47f352b
Loading…
Reference in new issue