FTI policy: Only query open bugzillas instead of filtering the CLOSED out later #10239

Merged
jnsamyak merged 3 commits from fti_query_open into main 2026-06-08 03:11:17 +00:00

View file

@ -20,8 +20,9 @@ TRACKERS = {
"F33FailsToInstall": 1803235,
"F34FailsToInstall": 1868279,
"F35FailsToInstall": 1927313,
"F36FailsToInstall": 1992487,
}
RAWHIDE = "35"
RAWHIDE = "36"
def _bzdate_to_python(date):
@ -278,6 +279,7 @@ def follow_policy(release):
ftibug = bz.getbug(f"F{release}FailsToInstall")
query_fti = bz.build_query(
product="Fedora",
status="__open__",
include_fields=[
"id",
"status",
@ -289,8 +291,11 @@ def follow_policy(release):
],
)
query_fti["blocks"] = ftibug.id
current_ftis = {b.component: b for b in bz.query(query_fti)
if b.status != "CLOSED" and b.component != 'distribution'}
query_results = bz.query(query_fti)
if len(query_results) == 1000:
raise NotImplementedError('Bugzilla pagination not yet implemented')
current_ftis = {b.component: b for b in query_results
if b.component != 'distribution'}
env = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATE_DIR))
env.globals["release"] = release