Closed gmierz closed 3 weeks ago
Sample output from a dry run:
2024-11-05 11:57:00,328 - INFO - The bugs: 1917560
will be autofixed with:
{'comment': {'body': 'It has been over 7 days with no activity on this performance regression.\n\n:longsonr, since you are the author of the regressor, bug 1914345, which triggered this performance alert, could you please provide a progress update?\n\nIf you need additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or 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_inactive_regression.py).\n', 'is_private': False}, 'flags': [{'name': 'needinfo', 'requestee': 'longsonr@gmail.com', 'status': '?', 'new': 'true'}]}
2024-11-05 11:57:00,328 - INFO - The bugs: 1918406
will be autofixed with:
{'comment': {'body': 'It has been over 7 days with no activity on this performance regression.\n\n:bradwerth, since you are the author of the regressor, bug 1885446, which triggered this performance alert, could you please provide a progress update?\n\nIf you need additional information/help, please needinfo the performance sheriff who filed this alert (they can be found in comment #0), or 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_inactive_regression.py).\n', 'is_private': False}, 'flags': [{'name': 'needinfo', 'requestee': 'bwerth@mozilla.com', 'status': '?', 'new': 'true'}]}
2024-11-05 11:57:00,332 - DEBUG - Starting new HTTPS connection (1): bugzilla.mozilla.org:443
2024-11-05 11:57:00,833 - DEBUG - https://bugzilla.mozilla.org:443 "GET /rest/bitly/shorten?url=https%3A%2F%2Fbugzilla.mozilla.org%2Fbuglist.cgi%3Finclude_fields%3Did%26include_fields%3Dregressed_by%26include_fields%3Dsummary%26include_fields%3Dgroups%26f3%3Dcreation_ts%26o3%3Dgreaterthan%26v3%3D2024-09-01T00%253A00%253A00Z%26f1%3Dregressed_by%26o1%3Disnotempty%26f2%3Dkeywords%26o2%3Dallwords%26v2%3Dregression%26v2%3Dperf-alert%26f9%3Ddays_elapsed%26o9%3Dgreaterthan%26v9%3D7%26status%3DUNCONFIRMED%26status%3DNEW%26status%3DREOPENED%26resolution%3D---%26f10%3Dstatus_whiteboard%26o10%3Dnotsubstring%26v10%3D%255Bno-nag%255D%26product%3DJSS%26product%3DTesting%26product%3DGeckoView%26product%3DDevTools%26product%3DFirefox%2Bfor%2BiOS%26product%3DCore%26product%3DExternal%2BSoftware%2BAffecting%2BFirefox%26product%3DFirefox%26product%3DWebExtensions%26product%3DFenix%26product%3DNSPR%26product%3DFirefox%2BBuild%2BSystem%26product%3DRemote%2BProtocol%26product%3DNSS%26product%3DToolkit%26product%3DFocus%26product%3DDeveloper%2BInfrastructure%26product%3DRelease%2BEngineering HTTP/11" 200 None
2024-11-05 11:57:00,837 - INFO -
****************************
* DRYRUN: not sending mail *
****************************
Receivers: ['calixte@mozilla.com', 'sylvestre@mozilla.com', 'mcastelluccio@mozilla.com', 'smujahid@mozilla.com', 'jwalker@mozilla.com', 'perfalert-activity@mozilla.com', 'sparky@mozilla.com']
Message:
Content-Type: multipart/mixed; boundary="===============0508284960801228216=="
MIME-Version: 1.0
From: xxx@xxxx.xxx
To: calixte@mozilla.com, sylvestre@mozilla.com, mcastelluccio@mozilla.com, smujahid@mozilla.com, jwalker@mozilla.com, perfalert-activity@mozilla.com, sparky@mozilla.com
Subject: [bugbot][autofix] PerfAlert regressions with 1 week(s) of inactivity for the 2024-11-05
Cc:
Bcc:
X-Mailer: bugbot
--===============0508284960801228216==
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 bugs are performance alerts which have had no activity in the last 7 days:
</p>
<table style="border:1px solid black;border-collapse:collapse;" border="1">
<thead>
<tr>
<th>Bug</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
<tr bgcolor="#E0E0E0"
>
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1918406">1918406</a>
</td>
<td>0.5 - 0.22% installer size / installer size + 4 more (OSX) regression on Wed September 11 2024</td>
</tr>
<tr >
<td>
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917560">1917560</a>
</td>
<td>14 - 2.61% speedometer3 React-Stockcharts-SVG/total + 17 more (Linux, OSX, Windows) regression on Tue August 27 2024</td>
</tr>
</tbody>
</table>
<p>
Sincerely,
<br>
BugBot
</p>
<p>
See the search query on <a href="https://mzl.la/4hBC6Xv">Bugzilla</a>.
</p>
<p>
See the source / report issues on the <a href="https://github.com/mozilla/bugbot/">GitHub repo</a>
</p>
</body>
</html>
Thanks for the review, and merge @suhaibmujahid!
This patch adds additional emails to send to for changes made by the
perfalert_inactive_regression
rule. It also adds an additional blank line to the needinfo comment.