Merge lp:~wgrant/launchpad/silence-of-the-prober-ii into lp:launchpad
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | William Grant | ||||||||||||
Approved revision: | no longer in the source branch. | ||||||||||||
Merged at revision: | 12408 | ||||||||||||
Proposed branch: | lp:~wgrant/launchpad/silence-of-the-prober-ii | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
98 lines (+27/-2) 4 files modified
lib/lp/registry/model/distributionmirror.py (+2/-1) lib/lp/registry/scripts/distributionmirror_prober.py (+2/-1) lib/lp/registry/tests/test_distributionmirror.py (+20/-0) lib/lp/registry/tests/test_distributionmirror_prober.py (+3/-0) |
||||||||||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/silence-of-the-prober-ii | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | code | Approve | |
Steve Kowalik (community) | code* | Approve | |
Review via email: mp+50273@code.launchpad.net |
Commit message
[r=stevenk,
Description of the change
This branch fixes three issues in the mirror prober that make my inbox sad:
- Sending a failure email for a mirror with a deactivated owner causes an exception due to a lack of To addresses. I've fixed this by first checking if the set of destination addresses is non-empty.
- Some mirrors are too cool for 404s, instead redirecting to a special Not Found document. The prober logged these incidents as errors that required investigation. I've added them as an expected error alongside other invalid redirects and response codes, so they behave correctly like 404s.
- Some non-Ubuntu mirrors exist, but we do not support probing them. This is a routine situation, not requiring any special attention. I have reduced its warning from INFO to DEBUG due to its unimportance.
This change looks great to me, and awesome work fixing 3 critical bugs.