From 871bf8025a58c160fe2bbff2ce4147fdc8956e43 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Aug 12 2020 17:16:04 +0000 Subject: [PATCH 1/3] fixup! ftbfs-fti: Skip dummy test packages Signed-off-by: Igor Raits --- diff --git a/scripts/ftbfs-fti/follow-policy.py b/scripts/ftbfs-fti/follow-policy.py index 58e2793..19eead6 100755 --- a/scripts/ftbfs-fti/follow-policy.py +++ b/scripts/ftbfs-fti/follow-policy.py @@ -251,7 +251,7 @@ def follow_policy(release): for pkg, rules in pkg_rules.items(): if re.search(r"^rust-.*-devel$", pkg): continue - if pkg.startswith("dummy-test-packagep"): + if pkg.startswith("dummy-test-package"): continue # All direct problems will be in the first rule From e6d725cc257e34e69da840077c8f4730eb318502 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Aug 12 2020 17:16:04 +0000 Subject: [PATCH 2/3] mass-rebuild-close-bugs: Koji is now returning timezone-aware date Signed-off-by: Igor Raits --- diff --git a/scripts/mass-rebuild-close-bugs.py b/scripts/mass-rebuild-close-bugs.py index 7b98b8d..2acf34f 100755 --- a/scripts/mass-rebuild-close-bugs.py +++ b/scripts/mass-rebuild-close-bugs.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: MIT import argparse -from datetime import datetime +from datetime import datetime, timezone import logging import queue import threading @@ -15,7 +15,7 @@ from massrebuildsinfo import MASSREBUILDS LOGGER = logging.getLogger(__name__) def koji2datetime(d): - return datetime.strptime(d, "%Y-%m-%d %H:%M:%S.%f") + return datetime.fromisoformat(d) def bug2str(bug): return f"{bug.id} ({bug.summary})" @@ -90,7 +90,7 @@ def main(): args.threads = multiprocessing.cpu_count() massrebuild = rebuilds_info[args.release] - rebuild_time = koji2datetime(massrebuild["epoch"]) + rebuild_time = koji2datetime(massrebuild["epoch"]).replace(tzinfo=timezone.utc) bz = bugzilla.Bugzilla("https://bugzilla.redhat.com") ks = koji.ClientSession("https://koji.fedoraproject.org/kojihub") From 53d240793078f6be878cc05ea9c87ed9a318d155 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Aug 12 2020 17:16:04 +0000 Subject: [PATCH 3/3] ftbfs-fti: Trivial improvements Signed-off-by: Igor Raits --- diff --git a/scripts/ftbfs-fti/follow-policy.py b/scripts/ftbfs-fti/follow-policy.py index 19eead6..6ee4d82 100755 --- a/scripts/ftbfs-fti/follow-policy.py +++ b/scripts/ftbfs-fti/follow-policy.py @@ -378,9 +378,10 @@ def follow_policy(release): orphaned = { src: b for src, b in current_ftis.items() - if b.assigned_to == "extras-orphan@fedoraproject.org" + if pkg_owners["rpms"][src]["fedora"] == "orphan" } for src, b in orphaned.items(): + click.echo(f"Checking if need to send notice to the orphaned package: {src} ({b.id})", err=True) comments = b.getcomments() update = False try: