Merge lp:~wgrant/launchpad/checkwatches-will-you-be-quiet-please into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 12443 |
Proposed branch: | lp:~wgrant/launchpad/checkwatches-will-you-be-quiet-please |
Merge into: | lp:launchpad |
Diff against target: |
471 lines (+153/-112) 8 files modified
lib/lp/bugs/doc/bug-watch-activity.txt (+3/-3) lib/lp/bugs/doc/externalbugtracker-bugzilla-oddities.txt (+2/-2) lib/lp/bugs/doc/externalbugtracker-bugzilla.txt (+6/-6) lib/lp/bugs/doc/externalbugtracker-mantis.txt (+2/-2) lib/lp/bugs/doc/externalbugtracker.txt (+2/-42) lib/lp/bugs/externalbugtracker/base.py (+11/-4) lib/lp/bugs/scripts/checkwatches/remotebugupdater.py (+51/-43) lib/lp/bugs/scripts/checkwatches/tests/test_remotebugupdater.py (+76/-10) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/checkwatches-will-you-be-quiet-please |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+50892@code.launchpad.net |
Commit message
[r=lifeless][bug=592345,719288][incr] Several checkwatches OOPSes have been demoted to INFO log entries.
Description of the change
This branch suppresses lots of checkwatches OOPSes. In particular, InvalidBugId, BugNotFound, PrivateRemoteBug, UnknownRemoteSt
The first three show up already in the UI as BugWatchActivity entries. The OOPS had no further useful information. There is some argument that UnknownRemote(
InvalidBugId, BugNotFound, and PrivateRemoteBug were easily fixed by changing the logging in their exception handler.
RemoteBugUpdater had a wrapper around status conversion which logged the exception nicely, but there was no similar thing for importance. I turned the OOPS into an INFO log entry, and generalised it to work for importance too. _convertRemoteS
def test_suite(): TestLoader( ).loadTestsFrom Name(__ name__)
return unittest.
can be deleted
you might find a matcher to call _convertRemote... would be more pithy than the assertions you have at the moment.