tempestmail (from validate-tempest): custom subjects for different matchers

Bug #1730409 reported by Luigi Toscano
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
Emilien Macchi

Bug Description

Currently tempestmail send the same notification email for each failing job to all the email addresses which matches the criteria for that job.

For instance, if a jobs contains tests matching both 'foo' and 'bar', all addresses will receive the same email:

 - mail: <email address hidden>
   regex: '.*foo.*'
 - mail: <email address hidden>
   regex: '.*bar.*'
 - mail: <email address hidden>
   regex: '.*bar.*'

It would be really useful if each filter block could define a set of custom tags that would be added to email subject. The emails sent would be different, and the tags could help with filtering.

For example:

 - mail: <email address hidden>
   regex: '.*foo.*'
   topics: foo1
 - mail: <email address hidden>
   regex: '.*bar.*'
   topics: bar1
 - mail: <email address hidden>
   regex: '.*bar.*'
   topics: bar2,extra

if a jobs contains tests matching both 'foo' and 'bar', then:
- fail1@ will receive an email '[foo1]...' and an email '[bar1]...'
- fail2@ will receive an email '[bar2][extra]...'

Tags: ci
Changed in tripleo:
milestone: none → queens-3
importance: Undecided → Low
status: New → Triaged
Arx Cruz (arxcruz)
Changed in tripleo:
assignee: nobody → Arx Cruz (arxcruz)
assignee: Arx Cruz (arxcruz) → nobody
assignee: nobody → Rafael Folco (rafaelfolco)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.openstack.org/529590

Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
assignee: Rafael Folco (rafaelfolco) → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/529590
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=18a3287dac80a5f94b200c0017f1087e38c54088
Submitter: Zuul
Branch: master

commit 18a3287dac80a5f94b200c0017f1087e38c54088
Author: Rafael Folco <email address hidden>
Date: Thu Dec 21 11:21:07 2017 -0200

    [tempestmail] Custom email for different matchers

    Define a set of custom tags for each filter block to be added to
    the email subject. A separate email will be sent to each email
    address that matches the criteria.

    Change-Id: I6be404c8b25eeefc1f9574c8a26a5b320d62d2c6
    Closes-Bug: #1730409

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.1

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.