Merge lp:~cjwatson/launchpad/germinate-all-dev-series into lp:launchpad
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14624 |
Proposed branch: | lp:~cjwatson/launchpad/germinate-all-dev-series |
Merge into: | lp:launchpad |
Diff against target: |
348 lines (+162/-47) 2 files modified
lib/lp/archivepublisher/scripts/generate_extra_overrides.py (+58/-38) lib/lp/archivepublisher/tests/test_generate_extra_overrides.py (+104/-9) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/germinate-all-dev-series |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+86909@code.launchpad.net |
Commit message
[r=wgrant][bug=904538] Let cron.germinate handle multiple dev series.
Description of the change
== Summary ==
My recent refactoring of cron.germinate caused some dogfood-specific problems, because dogfood has multiple Ubuntu distroseries in the DEVELOPMENT or FROZEN states.
== Proposed fix ==
Generate extra overrides for all DEVELOPMENT and FROZEN series, rather than for just one. Log but otherwise ignore any cases where missing seeds would previously have caused us to abort.
This seems like logically the right thing to do, and removes the obstacle to testing this easily on dogfood.
== Implementation details ==
I introduced a simple new CachedDistroSeries class to preserve the current property that most of generate-
== Tests ==
bin/test -vvct generate_
== Demo and Q/A ==
Run cron.germinate on mawson. Given the current state of dogfood's database, it should emit log entries about the lack of seeds for rusty, and generate updated extra override files (in /srv/launchpad.
== lint ==
None.
It would be better I think to cache those values in the main
DistroSeries, using e.g. @cachedproperty. Its a little more work to
validate, but centralises the caching.