• 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/regression_new_set_nightly_affected.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 RegressionNewSetNightlyAffected(BzCleaner):
×
10
    """Set nightly status to affected on newly filed regressions"""
11

12
    def __init__(self):
×
13
        super().__init__()
×
14
        if not self.init_versions():
×
15
            return
×
16

17
    def description(self):
×
18
        return "Set nightly status to affected on newly filed regressions"
×
19

20
    def get_bz_params(self, date):
×
21
        return {
×
22
            "resolution": ["---", "FIXED"],
23
            "bug_status_type": "notequals",
24
            "bug_status": "UNCONFIRMED",
25
            "keywords": "regression",
26
            "f1": "creation_ts",
27
            "o1": "greaterthan",
28
            "v1": "-7d",
29
            "f2": "creation_ts",
30
            "o2": "lessthan",
31
            "v2": "-2d",
32
            "f3": "regressed_by",
33
            "o3": "isempty",
34
            "f4": "cf_status_firefox_nightly",
35
            "o4": "equals",
36
            "v4": "---",
37
            "f5": "cf_status_firefox_beta",
38
            "o5": "equals",
39
            "v5": "---",
40
            "f6": "cf_status_firefox_release",
41
            "o6": "equals",
42
            "v6": "---",
43
        }
44

45
    def get_autofix_change(self):
×
46
        nightly_status_flag = utils.get_flag(
×
47
            self.versions["nightly"], "status", "nightly"
48
        )
49
        return {
×
50
            "comment": {
51
                "body": "This bug has been marked as a regression. Setting status flag for Nightly to `affected`."
52
            },
53
            nightly_status_flag: "affected",
54
        }
55

56

57
if __name__ == "__main__":
×
58
    RegressionNewSetNightlyAffected().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