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

mozilla / relman-auto-nag / #4349

pending completion
#4349

push

coveralls-python

sosa-e
Revert "Minimizing config file"

This reverts commit 614159597.

564 of 3081 branches covered (18.31%)

24 of 24 new or added lines in 24 files covered. (100.0%)

1804 of 7980 relevant lines covered (22.61%)

0.23 hits per line

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

0.0
/auto_nag/scripts/several_dups.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 auto_nag import utils
×
6
from auto_nag.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

18
    def columns(self):
×
19
        return ["id", "summary", "creation", "last_change"]
×
20

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

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

45

46
if __name__ == "__main__":
×
47
    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