Closed Bug 1541882 Opened 6 years ago Closed 6 years ago

Can't run web-platform-tests in a cinnabar repository

Categories

(Testing :: web-platform-tests, defect)

Version 3
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1540619

People

(Reporter: ehsan.akhgari, Unassigned)

Details

This blocks my work :-( It seems like it's impossible to run any wpt tests in a cinnabar repo.

$ ./mach web-platform-tests
 0:00.03 INFO Creating directory /home/ehsan/moz/src/obj-ff-opt.noindex/_tests/web-platform/meta
 0:00.03 INFO Creating directory /home/ehsan/moz/src/obj-ff-opt.noindex/_tests/web-platform/mozilla/meta
Traceback (most recent call last):
  File "/home/ehsan/.mozbuild/git-cinnabar/git-cinnabar", line 8, in <module>
    from cinnabar.cmd import CLI
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/home/ehsan/.mozbuild/git-cinnabar/cinnabar/cmd/__init__.py", line 1, in <module>
    from .data import data  # noqa: F401
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/home/ehsan/.mozbuild/git-cinnabar/cinnabar/cmd/data.py", line 2, in <module>
    from cinnabar.cmd.util import CLI
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/home/ehsan/.mozbuild/git-cinnabar/cinnabar/cmd/util.py", line 6, in <module>
    from cinnabar.githg import git_hash
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/home/ehsan/.mozbuild/git-cinnabar/cinnabar/githg.py", line 43, in <module>
    from .hg.objects import (
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/home/ehsan/.mozbuild/git-cinnabar/cinnabar/hg/objects.py", line 22, in <module>
    from .bdiff import bdiff as textdiff  # noqa: F401
  File "/home/ehsan/moz/src/build/mach_bootstrap.py", line 392, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
ImportError: No module named bdiff
Error running mach:

    ['web-platform-tests']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

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

The details of the failure are as follows:

CalledProcessError: Command '['git', 'cinnabar', 'git2hg', '180a07f6d8634ee4015d4672efe4cc461aa9c4ee']' returned non-zero exit status 1

  File "/home/ehsan/moz/src/testing/web-platform/mach_commands.py", line 378, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/home/ehsan/moz/src/testing/web-platform/mach_commands_base.py", line 28, in run
    self.update_manifest(logger)
  File "/home/ehsan/moz/src/testing/web-platform/mach_commands_base.py", line 48, in update_manifest
    **kwargs)
  File "/home/ehsan/moz/src/testing/web-platform/manifestupdate.py", line 113, in run
    force=force_download)
  File "/home/ehsan/moz/src/testing/web-platform/manifestdownload.py", line 169, in download_from_taskcluster
    force)
  File "/home/ehsan/moz/src/testing/web-platform/manifestdownload.py", line 124, in download_manifest
    url = url_func(logger, commits)
  File "/home/ehsan/moz/src/testing/web-platform/manifestdownload.py", line 75, in taskcluster_url
    for revision in commits:
  File "/home/ehsan/moz/src/testing/web-platform/manifestdownload.py", line 37, in git_commits
    yield git("cinnabar", "git2hg", item).strip()
  File "/home/ehsan/moz/src/testing/web-platform/vcs.py", line 38, in git
    return subprocess.check_output(full_cmd, cwd=repo_root)
  File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)

In the same shell:

$ git cinnabar git2hg 180a07f6d8634ee4015d4672efe4cc461aa9c4ee
3ebf6f2a81387d7087ef235c3ce60452baf550f3

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1540619#c8 I think this is fixed in the latest cinnabar master.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.