Merge lp://staging/~michael.nelson/launchpad/567922-binarypackagebuild-new-table-1 into lp://staging/launchpad/db-devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Aaron Bentley | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 9405 | ||||
Proposed branch: | lp://staging/~michael.nelson/launchpad/567922-binarypackagebuild-new-table-1 | ||||
Merge into: | lp://staging/launchpad/db-devel | ||||
Prerequisite: | lp://staging/~michael.nelson/launchpad/567922-binarypackagebuild-packagebuild-4 | ||||
Diff against target: |
1092 lines (+252/-243) (has conflicts) 20 files modified
lib/lp/buildmaster/doc/buildfarmjob.txt (+0/-11) lib/lp/buildmaster/interfaces/buildfarmjob.py (+65/-73) lib/lp/buildmaster/interfaces/packagebuild.py (+14/-13) lib/lp/buildmaster/model/buildfarmjob.py (+37/-23) lib/lp/buildmaster/model/packagebuild.py (+18/-4) lib/lp/buildmaster/tests/test_buildfarmjob.py (+1/-4) lib/lp/buildmaster/tests/test_packagebuild.py (+4/-0) lib/lp/code/configure.zcml (+0/-1) lib/lp/soyuz/configure.zcml (+0/-2) lib/lp/soyuz/doc/build.txt (+3/-2) lib/lp/soyuz/interfaces/binarypackagebuild.py (+28/-11) lib/lp/soyuz/model/binarypackagebuild.py (+56/-62) lib/lp/soyuz/model/sourcepackagerelease.py (+12/-10) lib/lp/soyuz/templates/build-index.pt (+1/-1) lib/lp/soyuz/templates/builds-list.pt (+2/-2) lib/lp/soyuz/tests/test_build.py (+7/-13) lib/lp/soyuz/tests/test_buildpackagejob.py (+0/-4) lib/lp/translations/configure.zcml (+1/-3) lib/lp/translations/model/translationtemplatesbuildjob.py (+1/-1) lib/lp/translations/tests/test_translationtemplatesbuildjob.py (+2/-3) Text conflict in lib/lp/buildmaster/interfaces/buildbase.py Text conflict in lib/lp/buildmaster/model/buildbase.py Text conflict in lib/lp/buildmaster/tests/test_buildbase.py |
||||
To merge this branch: | bzr merge lp://staging/~michael.nelson/launchpad/567922-binarypackagebuild-new-table-1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+24401@code.staging.launchpad.net |
Description of the change
This branch is part of a pipeline for
https:/
https:/
Overview
========
This branch *finally* starts the work to switch our BinaryPackageBuild class to the new binarypackagebuild table (using the delegated PackageBuild/
Details
=======
It updates the SQLBase _table to BinaryPackageBuild and then deals with the fallout to ensure that the stated interface is still provided.
This branch is dependent on the pending schema patch in a previous branch.
To test
=======
First update the test db schema (required as the db patch still needs to be updated to remove the old build table):
psql launchpad_
bin/py database/
And then:
bin/test -vv -m soyuz.tests.
The next branch will continue to update the BinaryPackageBuild implementation to get the rest of the tests working.
distro_series should be defined on IPackageBuild, because it's common to all packages, even though the implementation will differ for ISourcePackageR ecipeBuild and IBinaryBuild. If needed, define a property on IPackageBuild that raises NotImplementedE rror.
diff lines 342-343 need to be re-indented.
I'm also concerned about the split between IPackageBuild and IPackageBuildDe rived. It seems like there should only be one interface for things that are "package builds", so please see if you can unify them, or at least make it clear that IPackageBuild only exists to represent the PackageBuild model object.