Merge lp:~abentley/launchpad/incremental-diff-job into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Graham Binns on 2010-09-28 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 9950 | ||||
| Proposed branch: | lp:~abentley/launchpad/incremental-diff-job | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Prerequisite: | lp:~abentley/launchpad/display-incremental | ||||
| Diff against target: |
673 lines (+301/-66) 9 files modified
lib/lp/code/configure.zcml (+5/-0) lib/lp/code/interfaces/branchmergeproposal.py (+20/-0) lib/lp/code/model/branch.py (+12/-4) lib/lp/code/model/branchmergeproposal.py (+11/-0) lib/lp/code/model/branchmergeproposaljob.py (+93/-14) lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+69/-3) lib/lp/code/model/tests/test_diff.py (+45/-44) lib/lp/code/scripts/tests/test_merge_proposal_jobs.py (+12/-1) lib/lp/codehosting/scanner/tests/test_bzrsync.py (+34/-0) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/incremental-diff-job | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-09-28 | Approve on 2010-09-28 |
|
Review via email:
|
|||
Commit Message
Implement jobs for generating incremental diffs.
Description of the Change
= Summary =
Implement jobs for generating incremental diffs for merge proposals, and create
these jobs when the merge proposal source banch tip changes.
== Proposed fix ==
See above
== Pre-implementation notes ==
Discussed with Thumper
== Implementation details ==
As a driveby, I extracted commit_file and create_
could be reused more easily, without necessarily deriving from DiffTestCase.
I also added a job_type parameter to BranchMergeProp
make testing easier.
There were also a few lint fixes, like removing a semicolon.
== Tests ==
bin/test -t TestGenerateInc
== Demo and Q/A ==
Create a merge proposal. After the initial diff has been generated, push new
changes to the source branch. As well as updating the diff, this should show a
diff from the old branch tip to the new branch tip.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
utilities/
lib/lp/
lib/lp/
./lib/lp/
618: E202 whitespace before ')'
635: E231 missing whitespace after ','
./lib/lp/
192: E231 missing whitespace after ','
194: E231 missing whitespace after ','
./lib/lp/
15: E202 whitespace before ')'
./lib/lp/
166: E301 expected 1 blank line, found 0
./lib/lp/
5: E303 too many blank lines (3)
292: E202 whitespace before ')'
./lib/lp/
168: E301 expected 1 blank line, found 0
178: E301 expected 1 blank line, found 0
201: E202 whitespace before '}'
1471: E301 expected 1 blank line, found 0
| Brad Crittenden (bac) wrote : | # |
Is this approved branch ready to land or are you blocked? If you have abandoned the work please change the MP status to "Rejected."
| Aaron Bentley (abentley) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/04/2010 11:09 PM, Brad Crittenden wrote:
> Is this approved branch ready to land or are you blocked? If you have abandoned the work please change the MP status to "Rejected."
This branch was blocked. See my "Mysterious storm bug" post. Then Jamu
and I found a solution. Then there was another bug relating to test
isolation with feature flags, which Tim was able to solve. I merged
Tim's changes from devel, but those brought with them actual windmill
failures introduced by Ian Booth. When those were resolved, I merged
again and attempted to land, only to discover we were in testfix mode
due to spurious windmill failures on db-devel. I forced a build and
when it passed, I attempted to land the branch, but the landing failed
due to conflicts. That was after EOD yesterday. Today I plan to
resolve the conflicts and land it.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkz
6LQAn2JpFS1GQaq
=KAU9
-----END PGP SIGNATURE-----
| Aaron Bentley (abentley) wrote : | # |
I tried to land once again, and once again we are in testfix mode due to the same spurious windmill failure.

Hi Aaron,
Nice branch, just a few things that need fixing before it lands:
* On line 94 of the diff, you need to indent the closing parenthesis by 4 more spaces. rementalDiffJob .
* On line 302 you need to add a \n after the opening bracket of the clauses list. You also need to fix the indentation of the list items so that they're four-spaces in from clauses = [ line.
* You need to add docstrings / comments for the last four tests in TestGenerateInc