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

mozilla / relman-auto-nag / #4851

12 Dec 2023 12:52PM CUT coverage: 21.877% (-0.009%) from 21.886%
#4851

push

coveralls-python

sylvestre
lot_of_*: add product::components

716 of 3590 branches covered (0.0%)

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

1925 of 8799 relevant lines covered (21.88%)

0.22 hits per line

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

0.0
/bugbot/rules/lot_of_cc.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 SeveralCc(BzCleaner):
×
10
    def __init__(self):
×
11
        super(SeveralCc, self).__init__()
×
12
        self.nweeks = utils.get_config(self.name(), "weeks_lookup")
×
13
        self.cc = utils.get_config(self.name(), "number_cc")
×
14

15
    def description(self):
×
16
        return "Bugs with several cc for the last {} weeks".format(self.nweeks)
×
17

NEW
18
    def has_product_component(self):
×
NEW
19
        return True
×
20

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

24
    def handle_bug(self, bug, data):
×
25
        bugid = str(bug["id"])
×
26
        data[bugid] = {
×
27
            "creation": utils.get_human_lag(bug["creation_time"]),
28
            "last_change": utils.get_human_lag(bug["last_change_time"]),
29
        }
30
        return bug
×
31

32
    def get_bz_params(self, date):
×
33
        params = {
×
34
            "include_fields": ["creation_time", "last_change_time"],
35
            "resolution": "---",
36
            "f1": "days_elapsed",
37
            "o1": "lessthan",
38
            "v1": self.nweeks * 7,
39
            "f2": "cc_count",
40
            "o2": "greaterthaneq",
41
            "v2": self.cc,
42
            "f3": "keywords",
43
            "o3": "nowords",
44
            "v3": ["meta", "intermittent"],
45
        }
46
        return params
×
47

48

49
if __name__ == "__main__":
×
50
    SeveralCc().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