| |
@@ -1,7 +1,7 @@
|
| |
#!/usr/bin/python3
|
| |
|
| |
import configparser
|
| |
- from datetime import datetime
|
| |
+ from datetime import datetime, date, timedelta
|
| |
import bugzilla
|
| |
import pathlib
|
| |
import sys
|
| |
@@ -44,13 +44,16 @@
|
| |
|
| |
TEMPLATE = f"""Dear Maintainer,
|
| |
|
| |
- your package has not been built successfully in {FEDORA}. Action is required from you.
|
| |
+ your package has an open Fails To Build From Source bug for Fedora {FEDORA}.
|
| |
+ Action is required from you.
|
| |
|
| |
If you can fix your package to build, perform a build in koji, and either create
|
| |
an update in bodhi, or close this bug without creating an update, if updating is
|
| |
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
|
| |
- acknowledge this. Following the latest policy for such packages [2], your package
|
| |
- will be orphaned if this bug remains in NEW state more than 8 weeks.
|
| |
+ acknowledge this. If you have already fixed this issue, please close this Bugzilla report.
|
| |
+
|
| |
+ Following the policy for such packages [2], your package will be orphaned if
|
| |
+ this bug remains in NEW state more than 8 weeks (that's on {{orphanon}}).
|
| |
|
| |
A week before the mass branching of Fedora {int(FEDORA)+1} according to the schedule [3],
|
| |
any packages not successfully rebuilt at least on Fedora {int(FEDORA)-1} will be
|
| |
@@ -58,7 +61,7 @@
|
| |
|
| |
[1] https://fedoraproject.org/wiki/Updates_Policy
|
| |
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
|
| |
- [3] https://fedoraproject.org/wiki/Releases/{int(FEDORA)+1}/Schedule
|
| |
+ [3] https://fedorapeople.org/groups/schedule/f-{int(FEDORA)+1}/f-{int(FEDORA)+1}-key-tasks.html
|
| |
""" # noqa
|
| |
|
| |
cache_dir = pathlib.Path('~/.cache/FTBFS_weekly_reminder/').expanduser()
|
| |
@@ -86,6 +89,9 @@
|
| |
|
| |
|
| |
def send_reminder(bug, comment=TEMPLATE, set_needinfo=True):
|
| |
+ created = date(*bug.creation_time.timetuple()[:3])
|
| |
+ orphanon = created + timedelta(days=7*8)
|
| |
+ comment = comment.format(orphanon=orphanon.isoformat())
|
| |
flags = [needinfo(bug.assigned_to)] if set_needinfo else []
|
| |
update = bzapi.build_update(comment=comment, flags=flags)
|
| |
try:
|
| |
https://pagure.io/releng/issue/9264
https://pagure.io/releng/issue/9289