mozilla / probe-scraper

Scrape and publish Telemetry probe data from Firefox
https://mozilla.github.io/probe-scraper/
Mozilla Public License 2.0
21 stars 53 forks source link

Make bugzilla-scraping code more robust #651

Closed badboy closed 7 months ago

badboy commented 10 months ago

We just now had CI issues due to two bugs filed in bugzilla with the metric-expiry-alert whiteboard tag:

(see also my comment)

The test failed with:

        probes_with_bugs = {}
        for bug in found_bugs:
            if (
>               re.search(r"release: \[?version (\d+)", bug["description"]).group(1)
                != version
            ):
E           AttributeError: 'NoneType' object has no attribute 'group'

because the bug description did not have version 120 in there. It might be enough to make that check more robust and check for the none case.