Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new rule for monitoring performance alert resolution changes. #2535

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

gmierz
Copy link
Contributor

@gmierz gmierz commented Nov 5, 2024

This PR adds a new rule to monitor perfalert resolution changes. It will send out an email which provides a summary of all the performance alerts which have had their resolution changed within the last day. It includes the resolution comment, and author in the email as well.

@gmierz

This comment was marked as outdated.

@gmierz

This comment was marked as outdated.

@gmierz

This comment was marked as outdated.

@gmierz
Copy link
Contributor Author

gmierz commented Nov 14, 2024

Example run for the email:

****************************
* DRYRUN: not sending mail *
****************************
Receivers: ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]']
Message:
Content-Type: multipart/mixed; boundary="===============4356218612956373498=="
MIME-Version: 1.0
From: [email protected]
To: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: [bugbot] PerfAlert regressions whose resolution has changed recently for the 2024-11-14
Cc: 
Bcc: 
X-Mailer: bugbot

--===============4356218612956373498==
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html lang="en-us">
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <p>Hi there,</p>
        
        <p>The following bug list contains performance alerts whose resolution has changed in the last week:</p>
<table style="border:1px solid black;border-collapse:collapse;" border="1">
    <thead>
        <tr>
            <th>Bug</th>
            <th>Summary</th>
            <th>Status</th>
            <th>Resolution</th>
        </tr>
    </thead>
    <tbody>
        <tr bgcolor="#E0E0E0"
            >
            <td>
                <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1930747">1930747</a>
            </td>
            <td>
                <table>
                    <tr>
                        <td>8.62 - 7.33% cpstartup content-process-startup / cpstartup content-process-startup (Linux) regression on Thu October 31 2024</td>
                    </tr>
                    <tr>
                        <td>
                            <b>Resolution Comment:</b> Unfortunately we likely have to accept this regression, because we shouldn't keep deferring the update to a more recent ICU. Otherwise we run into cross-browser compatibility issues (e.g. bug 1909112 or bug 1919905) and we run behind in sec-updates (e.g. 1871635, 1871636, 1871623).
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <i>Resolved by [email protected]</i>
                        </td>
                    </tr>
                </table>
            </td>
            <td>RESOLVED</td>
            <td>--- -> WONTFIX</td>
        </tr>
    <tr >
            <td>
                <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1927052">1927052</a>
            </td>
            <td>
                <table>
                    <tr>
                        <td>2.07 - 1.93% speedometer EmberJS-Debug-TodoMVC/CompletingAllItems/Sync / speedometer EmberJS-Debug-TodoMVC/CompletingAllItems/Sync + 3 more (Windows) regression on Sat October 12 2024</td>
                    </tr>
                    <tr>
                        <td>
                            <b>Resolution Comment:</b> The update is no update -- and realistically, WONTFIX.
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <i>Resolved by [email protected]</i>
                        </td>
                    </tr>
                </table>
            </td>
            <td>RESOLVED</td>
            <td>--- -> WONTFIX</td>
        </tr>
    </tbody>
</table>
        <p>
            Sincerely,
            <br>
            BugBot
        </p>
        <p>
                See the search query on <a href="https://mzl.la/3Z5GPtl">Bugzilla</a>.
            </p>
        
        <p>
            See the source / report issues on the <a href="https://github.com/mozilla/bugbot/">GitHub repo</a>
        </p>
    </body>
</html>

Example run for the needinfo comment:

2024-11-14 10:14:54,268 - INFO - The bugs: 1927120
 will be autofixed with:
{'comment': {'body': 'A comment containing a reason for why the performance regression was resolved as FIXED could not be found. It should provided when the status of the bug is changed.\n\n:dao, since you resolved this bug, could you provide a comment explaining the resolution? If one has already been provided, this needinfo can be ignored/removed.\n\nIf you need additional information/help, reach out in [#perftest](https://matrix.to/#/#perftest:mozilla.org), or [#perfsheriffs](https://matrix.to/#/#perfsheriffs:mozilla.org) on Element.\n\nFor more information, please visit [BugBot documentation](https://wiki.mozilla.org/BugBot#perfalert_resolved_regression.py).\n'}, 'flags': [{'name': 'needinfo', 'requestee': '[email protected]', 'status': '?', 'new': 'true'}]}
2024-11-14 10:14:54,269 - INFO - The bugs: 1929843
 will be autofixed with:
{'comment': {'body': 'A comment containing a reason for why the performance regression was resolved as INVALID could not be found. It should provided when the status of the bug is changed.\n\n:bacasandrei, since you resolved this bug, could you provide a comment explaining the resolution? If one has already been provided, this needinfo can be ignored/removed.\n\nIf you need additional information/help, reach out in [#perftest](https://matrix.to/#/#perftest:mozilla.org), or [#perfsheriffs](https://matrix.to/#/#perfsheriffs:mozilla.org) on Element.\n\nFor more information, please visit [BugBot documentation](https://wiki.mozilla.org/BugBot#perfalert_resolved_regression.py).\n'}, 'flags': [{'name': 'needinfo', 'requestee': '[email protected]', 'status': '?', 'new': 'true'}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants