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

mozilla / relman-auto-nag / #4848

07 Dec 2023 02:35PM UTC coverage: 21.938%. Remained the same
#4848

push

coveralls-python

suhaibmujahid
Use `product::component` to refer to components in all emails

716 of 3588 branches covered (0.0%)

0 of 7 new or added lines in 7 files covered. (0.0%)

1924 of 8770 relevant lines covered (21.94%)

0.22 hits per line

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

0.0
/bugbot/rules/workflow/p2_merge_day.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 P2MergeDay(BzCleaner):
×
10
    def must_run(self, date):
×
11
        return utils.is_merge_day(date)
×
12

13
    def description(self):
×
14
        return "P2 bugs with an assignee on merge day"
×
15

16
    def has_product_component(self):
×
17
        return True
×
18

19
    def ignore_meta(self):
×
20
        return True
×
21

22
    def columns(self):
×
NEW
23
        return ["product", "component", "id", "summary"]
×
24

25
    def handle_bug(self, bug, data):
×
26
        # check if the product::component is in the list
27
        if not utils.check_product_component(self.components, bug):
×
28
            return None
×
29
        return bug
×
30

31
    def get_bz_params(self, date):
×
32
        self.components = utils.get_config("workflow", "components")
×
33
        params = {
×
34
            "component": utils.get_components(self.components),
35
            "resolution": "---",
36
            "f1": "priority",
37
            "o1": "equals",
38
            "v1": "P2",
39
        }
40

41
        utils.get_empty_assignees(params)
×
42

43
        return params
×
44

45
    def get_autofix_change(self):
×
46
        return {
×
47
            "comment": {
48
                "body": "Set the priority to P1 since today is the merge day.\nSee [What Do You Triage](https://firefox-source-docs.mozilla.org/bug-mgmt/guides/priority.html) for more information."
49
            },
50
            "priority": "P1",
51
        }
52

53

54
if __name__ == "__main__":
×
55
    P2MergeDay().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