Merge lp:~al-maisan/launchpad/flip-the-switch-516545 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Gavin Panella on 2010-02-10 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~al-maisan/launchpad/flip-the-switch-516545 |
| Merge into: | lp:launchpad |
| Diff against target: |
325 lines (+19/-178) 5 files modified
lib/lp/soyuz/doc/build-estimated-dispatch-time.txt (+10/-8) lib/lp/soyuz/doc/build.txt (+7/-4) lib/lp/soyuz/interfaces/build.py (+0/-9) lib/lp/soyuz/model/build.py (+1/-156) lib/lp/soyuz/templates/build-index.pt (+1/-1) |
| To merge this branch: | bzr merge lp:~al-maisan/launchpad/flip-the-switch-516545 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2010-02-10 | Approve on 2010-02-10 | |
|
Review via email:
|
|||
| Muharem Hrnjadovic (al-maisan) wrote : | # |
| Gavin Panella (allenap) wrote : | # |
Hi Muharem,
All looks good. One tiny comment in below.
Gavin.
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -8,6 +8,7 @@
> launchpad build daemon.
>
> # Create a 'mozilla-firefox' build in ubuntutest/
> + >>> from zope.security.proxy import removeSecurityProxy
> >>> from lp.soyuz.
> >>> login('<email address hidden>')
> >>> test_publisher = SoyuzTestPublis
> @@ -17,6 +18,9 @@
> >>> binaries = test_publisher.
> ... binaryname=
> >>> [firefox_build] = source.getBuilds()
> + >>> the_job = removeSecurityP
> + >>> the_job.start()
> + >>> the_job.complete()
I think it's bad to keep a reference to an unwrapped object that is
normally subject to access control. It's too easy to inadvertently
reuse this reference later in the test. Would you be happy to do
something like:
job = firefox_
removeSecur
removeSecur
instead?
| Muharem Hrnjadovic (al-maisan) wrote : | # |
On 02/10/2010 11:51 AM, Gavin Panella wrote:
> Review: Approve
> Hi Muharem,
>
> All looks good. One tiny comment in below.
Hello Gavin,
your point below is well made. Thanks!
>> === modified file 'lib/lp/
>> --- lib/lp/
>> +++ lib/lp/
>> @@ -8,6 +8,7 @@
>> launchpad build daemon.
>>
>> # Create a 'mozilla-firefox' build in ubuntutest/
>> + >>> from zope.security.proxy import removeSecurityProxy
>> >>> from lp.soyuz.
>> >>> login('<email address hidden>')
>> >>> test_publisher = SoyuzTestPublis
>> @@ -17,6 +18,9 @@
>> >>> binaries = test_publisher.
>> ... binaryname=
>> >>> [firefox_build] = source.getBuilds()
>> + >>> the_job = removeSecurityP
>> + >>> the_job.start()
>> + >>> the_job.complete()
>
> I think it's bad to keep a reference to an unwrapped object that is
> normally subject to access control. It's too easy to inadvertently
> reuse this reference later in the test. Would you be happy to do
> something like:
>
> job = firefox_
> removeSecurityP
> removeSecurityP
>
> instead?
That's much better indeed. Done. Thanks again!
Best regards
--
Muharem Hrnjadovic <email address hidden>
Public key id : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F 5602 219F 6B60 B2BB FCFC

Hello there!
The generalization of the build farm (so it can run jobs other than binary
builds) made a generalization of the job dispatch time estimation logic
necessary as well.
The latter was implemented in the course of the last 6 weeks and the
corresponding branches have all landed already.
The branch at hand "flips the switch" and turns on the new generalized job
dispatch time estimation logic.
Tests to run:
bin/test -vv -t build
No pertinent "make lint" errors or warnings.