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

mozilla / mozregression / 14446186470

14 Apr 2025 12:55PM CUT coverage: 35.284%. First build
14446186470

Pull #1971

github

web-flow
Merge 883f6a4c1 into 807564865
Pull Request #1971: build(deps): bump multidict from 6.0.5 to 6.4.3

995 of 2820 relevant lines covered (35.28%)

1.05 hits per line

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

0.0
/mozregression/mach_interface.py
1
"""
2
This module provides an API to integrate mozregression within mach.
3

4
Be careful to not break backward compatibility here, or you will
5
break mach!
6
"""
7

8
from __future__ import absolute_import
×
9

10
from argparse import Namespace
×
11

12
from mozregression import __version__
×
13
from mozregression.cli import create_parser
×
14
from mozregression.config import DEFAULT_CONF_FNAME, get_config
×
15
from mozregression.main import main, pypi_latest_version
×
16

17

18
def new_release_on_pypi():
×
19
    """
20
    Check if a new release is available on pypi and returns it.
21

22
    None is returned in case of error or if there is no new version.
23
    """
24
    try:
×
25
        pypi_version = pypi_latest_version()
×
26
    except Exception:
×
27
        return
×
28
    if pypi_version != __version__:
×
29
        return pypi_version
×
30

31

32
def parser():
×
33
    """
34
    Create and returns the mozregression ArgumentParser instance.
35
    """
36
    defaults = get_config(DEFAULT_CONF_FNAME)
×
37
    return create_parser(defaults=defaults)
×
38

39

40
def run(options):
×
41
    """
42
    Run mozregression given a dict of options.
43
    """
44
    main(namespace=Namespace(**options), check_new_version=False, mozregression_variant="mach")
×
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