Merge lp:~abentley/launchpad/fix-build-time-display into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~abentley/launchpad/fix-build-time-display | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
140 lines (+69/-9) 2 files modified
lib/lp/code/browser/sourcepackagerecipe.py (+21/-7) lib/lp/code/browser/tests/test_sourcepackagerecipe.py (+48/-2) |
||||
To merge this branch: | bzr merge lp:~abentley/launchpad/fix-build-time-display | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+24263@code.launchpad.net |
Commit message
No exception when checking for estimated completion time.
Description of the change
= Summary =
Fix bug #570884: build time display oopses for active builds
== Proposed fix ==
Change the displayed time so that it is always the completion time, whether
actual or estimated.
== Pre-implementation notes ==
None
== Implementation details ==
There are now two phases of ETA. When the Job is WAITING, the eta is
calculated by adding the estimated duration to the estimated start time.
When the job is not waiting, the ETA is calculated by adding the estimated
duration to the actual start time.
== Tests ==
bin/test -vt browser test_sourcepack
== Demo and Q/A ==
Request a build. Repeatedly refresh until the build is in progress. It should
display an estimated completion time, and there should be no oops.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
<rockstar> abentley, I'm not sure TestSourcePacka geRecipeBuildVi ew should inherit from BrowserTestCase - TestCaseWithFactory is probably fine.
<rockstar> I say this because it doesn't actually use a browser, but just instantiates a raw view.
<abentley> rockstar, Okay.