在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mozilla/relman-auto-nag开源软件地址:https://github.com/mozilla/relman-auto-nag开源编程语言:Python 84.8%开源软件介绍:This tool is used by Mozilla release management to send emails to the Firefox developers. It will query the bugzilla.mozilla.org database and send emails to Mozilla developers and their managers (if Mozilla staff). The tool will also notify release managers about potential issues in bugzilla and autofix some categories of issues. The list of checkers is documented on the Mozilla wiki: https://wiki.mozilla.org/Release_Management/autonag This package currently uses Mozilla's Bugzilla REST API, and optionally the Mozilla IAM phonebook (to access bug assignees' managers & Mozilla email addresses). Installation
To run it into production, you will need the full list of employees + managers. Automated Nagging ScriptBefore running:
# in scripts/configs/config.json
{
"ldap_username": "[email protected]",
"ldap_password": "xxxxxxxxxxxxxx",
"smtp_server": "smtp.xxx.xxx",
"smtp_port": 314,
"smtp_ssl": true,
"bz_api_key": "xxxxxxxxxxxxxx",
"phab_api_key": "xxxxxxxxxxxxxx",
"iam_client_secret": "xxxxxxxxxxxxxx",
"iam_client_id": "xxxxxxxxxxxxxx",
"private":
{
"Core::General": "https://..."
}
}
There is a ton of scripts in auto_nag/scripts/ so you should be able to find some good examples. Setting up 'Round Robin' triage rotationsOne use case for this tool is managing triage of multiple components across a team of multiple people. To set up a new Round Robin rotation, a manager or team lead should create a Google Calendar with the rotation of triagers. Then the administrators will need to create a configuration file: # in scripts/configs/<name of rotation>_round_robin.json
{
"fallback": "<Name of manager or lead>",
"components":
{
"Product::Component": "default",
"Product::Component": "default",
…
},
"default":
{
"calendar": "private://<Name of calendar>"
}
} The person requesting the round robin schedule must provide the URL of the calendar's .ics file. In the calendar, the summary of the events must be the full name (eventually prefixed with text between square brackets) of triage owner as it appears in Phonebook, e.g. [Gfx Triage] Foo Bar or just Foo Bar. And then you just have to add an entry in auto_nag/scripts/config/tools.json in the round-robin section. Once everything is set-up you can make a PR similar too https://github.com/mozilla/relman-auto-nag/pull/858/files Running on a serverThis needs to run on a private server because it will have login for smtp and bugzilla key so it can't currently be shared access. Cronjob: 00 14 * * 1-5 $HOME/run_autonags_daily.sh &> /tmp/autonag.log 15 */1 * * * $HOME/runauto_nag_hourly.sh &> /tmp/autonag-hour.log |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论