Open Bug 1256445 Opened 4 years ago

mozregression does not allow to execute other mach commands


(Testing :: mozregression, defect)

Not set


(Not tracked)


(Reporter: whimboo, Unassigned)


I wanted to use the following options to check for a regression with firefox-ui-tests:

mach mozregression --good 383d2c72f4c77a81d44704272dcfbbe3c8cafca8 --bad 0b81120cfc00bfc33091dab4340b2e109a0964c1 --command "mach firefox-ui-functional testing/firefox-ui/tests/puppeteer/ --binary {binary}" --repo mozilla-aurora

But mach fails here:

Error running mach:

    ['firefox-ui-functional', 'testing/firefox-ui/tests/puppeteer/', '--binary', '/tmp/tmpDylP7M/firefox/firefox']

The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.

Please consider filing a bug against mach by going to the URL:

If filing a bug, please include the full output of mach, including this error

The details of the failure are as follows:

ImportError: No module named firefox_ui_harness.arguments.base

  File "/mozilla/code/gecko/python/mach/mach/", line 336, in run
    return self._run(argv)
  File "/mozilla/code/gecko/python/mach/mach/", line 382, in _run
    args = parser.parse_args(argv)
  File "/usr/lib/python2.7/", line 1701, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/lib/python2.7/", line 1733, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/lib/python2.7/", line 1921, in _parse_known_args
    positionals_end_index = consume_positionals(start_index)
  File "/usr/lib/python2.7/", line 1898, in consume_positionals
    take_action(action, args)
  File "/usr/lib/python2.7/", line 1807, in take_action
    action(self, namespace, argument_values, option_string)
  File "/mozilla/code/gecko/python/mach/mach/", line 176, in __call__
    if handler.parser:
  File "/mozilla/code/gecko/python/mach/mach/", line 77, in parser
    self._parser = self._parser()
  File "/mozilla/code/gecko/testing/firefox-ui/", line 22, in setup_argument_parser_functional
    from firefox_ui_harness.arguments.base import FirefoxUIArguments
  File "/mozilla/code/gecko/build/", line 434, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/mozilla/code/gecko/build/", line 434, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
You need to log in before you can comment on or make changes to this bug.