#10239 FTI policy: Only query open bugzillas instead of filtering the CLOSED out later
Merged 2 years ago by cverna. Opened 2 years ago by churchyard.
churchyard/releng fti_query_open  into  main

@@ -20,8 +20,9 @@ 

      "F33FailsToInstall": 1803235,

      "F34FailsToInstall": 1868279,

      "F35FailsToInstall": 1927313,

+     "F36FailsToInstall": 1992487,

  }

- RAWHIDE = "35"

+ RAWHIDE = "36"

  

  

  def _bzdate_to_python(date):
@@ -278,6 +279,7 @@ 

      ftibug = bz.getbug(f"F{release}FailsToInstall")

      query_fti = bz.build_query(

          product="Fedora",

+         status="__open__",

          include_fields=[

              "id",

              "status",
@@ -289,8 +291,11 @@ 

          ],

      )

      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

This should help with the pagination issue described in:

https://github.com/python-bugzilla/python-bugzilla/issues/149

We have more than 1000 bugzillas, but only couple hundreds are open.

Long term, we will need to add code to handle the pages, but this works for now.

+1, good optimization for now.

1 new commit added

  • FTI policy: Die when we hit bugzilla pagination
2 years ago

I've also pushed a safety net.

2 new commits added

  • FTI policy: Die when we hit bugzilla pagination
  • FTI policy: Only query open bugzillas instead of filtering the CLOSED out later
2 years ago

rebased onto 7fc3716f1b79abb986498a49a8da55f236b63e11

2 years ago

rebased onto e58c163c536e647fe455b7debcf257d981fd3cda

2 years ago

1 new commit added

  • FTI policy: Add Fedora 36
2 years ago

rebased onto 7b850efc8da770c87483326114a31d7fab46fcb9

2 years ago

rebased onto 19f12ce

2 years ago

Pull-Request has been merged by cverna

2 years ago
Metadata