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

mozilla / mozregression / 14310821897

07 Apr 2025 01:43PM CUT coverage: 35.021%. First build
14310821897

Pull #1960

github

web-flow
Merge 8d54d20c5 into 807564865
Pull Request #1960: build(deps): bump yarl from 1.9.4 to 1.19.0

989 of 2824 relevant lines covered (35.02%)

0.35 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