Merge lp://staging/~thumper/launchpad/more-careful-network-service-usage into lp://staging/launchpad/db-devel
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~thumper/launchpad/more-careful-network-service-usage |
Merge into: | lp://staging/launchpad/db-devel |
Diff against target: |
465 lines (+224/-17) 10 files modified
lib/canonical/launchpad/webapp/errorlog.py (+9/-1) lib/canonical/launchpad/webapp/interfaces.py (+5/-0) lib/lp/code/model/branchmergeproposaljob.py (+9/-0) lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+98/-1) lib/lp/code/model/tests/test_diff.py (+2/-4) lib/lp/codehosting/scanner/tests/test_bzrsync.py (+4/-2) lib/lp/services/job/runner.py (+22/-7) lib/lp/services/job/tests/test_runner.py (+63/-0) lib/lp/testing/__init__.py (+11/-1) lib/lp/testing/tests/test_fixture.py (+1/-1) |
To merge this branch: | bzr merge lp://staging/~thumper/launchpad/more-careful-network-service-usage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Björn Tillenius (community) | Approve | ||
Review via email:
|
Commit message
Add missing operation descriptions for the jobs, and catch errors that might arise during emailing users about errors.
Description of the change
This branch adds a default getOperationDes
If the run job raises an error, we attempt to notify the recipients. However, as we have found with staging, that can fail. The extra try/except block catches this failures to notify about failures, but it just logs the error and makes an oops.
Extra tests were added for the other job types to make sure they have a sensible getOperationDes
To post a comment you must log in.
As mentioned on IRC, please us logger.exception() instead of using logger.error(e).
Otherwise fine.