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

mozilla / relman-auto-nag / #4077

pending completion
#4077

push

coveralls-python

suhaibmujahid
Merge remote-tracking branch 'upstream/master' into wiki-missed

549 of 3109 branches covered (17.66%)

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

1773 of 8016 relevant lines covered (22.12%)

0.22 hits per line

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

0.0
/auto_nag/scripts/severity_high_performance_impact.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
from auto_nag.constants import LOW_SEVERITY
×
8

9

10
class SeverityHighPerformanceImpact(BzCleaner):
×
11
    def description(self):
×
12
        return "Bugs with high performance impact which are set to low severity"
×
13

14
    def handle_bug(self, bug, data):
×
15
        bugid = str(bug["id"])
×
16
        data[bugid] = {
×
17
            "severity": bug["severity"],
18
        }
19

20
        return bug
×
21

22
    def get_bugs(self, date="today", bug_ids=[], chunk_size=None):
×
23
        bugs = super().get_bugs(date, bug_ids, chunk_size)
×
24
        self.extra_ni = bugs
×
25

26
        return bugs
×
27

28
    def get_extra_for_needinfo_template(self):
×
29
        return self.extra_ni
×
30

31
    def columns(self):
×
32
        return ["id", "summary", "severity"]
×
33

34
    def get_mail_to_auto_ni(self, bug):
×
35
        return utils.get_mail_to_ni(bug)
×
36

37
    def get_bz_params(self, date):
×
38
        fields = ["triage_owner", "assigned_to", "severity", "keywords"]
×
39

40
        params = {
×
41
            "include_fields": fields,
42
            "resolution": "---",
43
            "bug_severity": LOW_SEVERITY,
44
            "cf_performance_impact": "high",
45
            "n1": 1,
46
            "f1": "longdesc",
47
            "o1": "casesubstring",
48
            "v1": "could you consider increasing the severity of this performance-impacting bug?",
49
        }
50

51
        return params
×
52

53

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