Merge lp:~wgrant/launchpad/flatten-bfj-4-app-eliminate into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | William Grant | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 16479 | ||||
Proposed branch: | lp:~wgrant/launchpad/flatten-bfj-4-app-eliminate | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~wgrant/launchpad/flatten-bfj-3.5-more-query | ||||
Diff against target: |
365 lines (+32/-91) 9 files modified
lib/lp/buildmaster/model/buildfarmjob.py (+9/-31) lib/lp/buildmaster/model/packagebuild.py (+3/-4) lib/lp/buildmaster/tests/test_buildfarmjob.py (+0/-7) lib/lp/buildmaster/tests/test_manager.py (+0/-1) lib/lp/buildmaster/tests/test_packagebuild.py (+1/-2) lib/lp/code/model/sourcepackagerecipebuild.py (+8/-19) lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+2/-8) lib/lp/soyuz/model/binarypackagebuild.py (+8/-18) lib/lp/translations/model/translationtemplatesbuild.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/flatten-bfj-4-app-eliminate | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Kowalik (community) | code | Approve | |
Review via email: mp+145820@code.launchpad.net |
Commit message
Remove the deprecated copies of the denormalised BuildFarmJob columns, and stop creating PackageBuilds.
Description of the change
The build farm job schema is being reworked to improve performance. Columns from PackageBuild and BuildFarmJob are being merged into tables that previously delegated to them. The PackageBuild table will end up dying entirely, but BuildFarmJob will remain, a shadow of its former self, to answer questions about Archive:+builds and Builder:+history. Additionally, BinaryPackageBuild is growing new distribution, distroseries, sourcepackagename and is_distro_archive columns to make searches even faster.
This branch removes the writes to deprecated columns. PackageBuild records are no longer created for BPB/SPRBs, and most of BuildFarmJob's columns have been removed.