Overall, a very nice branch.
As discused on IRC, calling CeleryRunJob.delay(BrachScanJob.create(...)) creates a race condition.
Another remark:
> === modified file 'lib/lp/code/model/branch.py' > --- lib/lp/code/model/branch.py 2012-03-21 12:34:12 +0000 > +++ lib/lp/code/model/branch.py 2012-03-27 14:40:29 +0000 > @@ -1032,7 +1032,8 @@ > return getUtility(IBranchLookup).getByUniqueName(location) > > def branchChanged(self, stacked_on_url, last_revision_id, > - control_format, branch_format, repository_format): > + control_format, branch_format, repository_format, > + skip_celery=False):
This changes needs a related change in the interface class. I think that the new parameter deserves a short explanation: As I understand it, skip_celery should be False only in tests.
« Back to merge proposal
Overall, a very nice branch.
As discused on IRC, calling CeleryRunJob. delay(BrachScan Job.create( ...)) creates a race condition.
Another remark:
> === modified file 'lib/lp/ code/model/ branch. py' code/model/ branch. py 2012-03-21 12:34:12 +0000 code/model/ branch. py 2012-03-27 14:40:29 +0000 IBranchLookup) .getByUniqueNam e(location)
> --- lib/lp/
> +++ lib/lp/
> @@ -1032,7 +1032,8 @@
> return getUtility(
>
> def branchChanged(self, stacked_on_url, last_revision_id,
> - control_format, branch_format, repository_format):
> + control_format, branch_format, repository_format,
> + skip_celery=False):
This changes needs a related change in the interface class. I think
that the new parameter deserves a short explanation: As I understand it,
skip_celery should be False only in tests.