Merge lp:~mabac/launchpad-work-items-tracker/better-error-contacts into lp:~linaro-automation/launchpad-work-items-tracker/linaro
Proposed by
Mattias Backman
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 331 | ||||
Proposed branch: | lp:~mabac/launchpad-work-items-tracker/better-error-contacts | ||||
Merge into: | lp:~linaro-automation/launchpad-work-items-tracker/linaro | ||||
Diff against target: |
75 lines (+22/-12) 2 files modified
collect (+12/-12) lpworkitems/error_collector.py (+10/-0) |
||||
To merge this branch: | bzr merge lp:~mabac/launchpad-work-items-tracker/better-error-contacts | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Infrastructure | Pending | ||
Review via email: mp+91410@code.launchpad.net |
Description of the change
Hi,
This branch changes the format of the config file so that we specify contacts for receiving error emails per project.
The current way is to match a blueprint name with a regexp from the config file to find out where to send those emails. This does miss quite a few errors which we instead see in the log files and email to the Infrastructure errors list.
There is a corresponding config file in lp:~mabac/launchpad-work-items-tracker/better-config
Thanks,
Mattias
To post a comment you must log in.
Yay! Thanks for working on this, Mattias.
On 03/02/12 08:05, Mattias Backman wrote: mails(cfg) : notification_ addresses" map (which assigns project names to a list
>
> === modified file 'collect'
> --- collect 2011-12-15 18:37:53 +0000
> +++ collect 2012-02-03 11:04:28 +0000
> @@ -667,9 +667,10 @@
> def send_error_
> '''Send data_errors to contacts.
>
> - Data error contacts are defined in the configuration in the "error_contact"
> - map (which assigns a regexp over spec names to a list of email addresses).
> - If no match is found, the error goes to stderr.
> + Data error contacts are defined in the configuration in the
> + "project_
> + of email addresses). If no address list for a project is found, the error
> + goes to stderr.
I wonder if we should make the contact address required...
The rest looks pretty good; can't wait to stop receiving all those
warnings on infra-errors!