• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / relman-auto-nag / #4512

pending completion
#4512

push

coveralls-python

web-flow
[inactive_reviewer] Ignore patches where the filename is not matching phab-bot pattern (#2063)

641 of 3219 branches covered (19.91%)

1817 of 8019 relevant lines covered (22.66%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/bugbot/rules/affected_flag_confirm.py
1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
3
# You can obtain one at http://mozilla.org/MPL/2.0/.
4

5
from bugbot import utils
×
6
from bugbot.bzcleaner import BzCleaner
×
7

8

9
class AffectedFlagConfirm(BzCleaner):
×
10
    def description(self):
×
11
        return "Unconfirmed bugs that have an affected Firefox version flag"
×
12

13
    def get_bz_params(self, date):
×
14
        params = {
×
15
            "bug_status": "UNCONFIRMED",
16
            "j1": "OR",
17
            "f1": "OP",
18
        }
19

20
        statuses = ",".join(
×
21
            [
22
                "affected",
23
                "wontfix",
24
                "fix-optional",
25
                "fixed",
26
                "disabled",
27
                "verified",
28
                "verified disabled",
29
            ]
30
        )
31

32
        last_version = utils.get_nightly_version_from_bz()
×
33
        first_version = last_version - 40
×
34
        for version in range(first_version, last_version + 1):
×
35
            i = version - first_version + 2
×
36
            params[f"f{i}"] = f"cf_status_firefox{version}"
×
37
            params[f"o{i}"] = "anyexact"
×
38
            params[f"v{i}"] = statuses
×
39
        params[f"f{i+1}"] = "CP"
×
40

41
        return params
×
42

43
    def get_autofix_change(self):
×
44
        return {
×
45
            "comment": {
46
                "body": "The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed."
47
            },
48
            "status": "NEW",
49
        }
50

51

52
if __name__ == "__main__":
×
53
    AffectedFlagConfirm().run()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc