[Bug 6100] New: Building and running tests in local mode with Python 3 doesn't works

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Mar 14 14:36:02 UTC 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6100

            Bug ID: 6100
           Summary: Building and running tests in local mode with Python 3
                    doesn't works
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: lothiraldan at gmail.com
                CC: mercurial-devel at mercurial-scm.org

I tried setup a Python 3 job on our Jenkins instance by mimicking the Python 2
job we had. The setup included having a separate build step that called
`PYTHON=python3 make local` and a separate test step that called `python3
run-tests.py -l -j 4 -t 1200`.

Here are the tests steps logs:
https://ci.octobus.net/blue/rest/organizations/jenkins/pipelines/MercurialPy3/runs/327/nodes/29/steps/35/log/?start=0

Here are the building step logs:
https://ci.octobus.net/blue/rest/organizations/jenkins/pipelines/MercurialPy3/runs/327/nodes/20/log/?start=0

This specific exception leads Pulkit to think that the demandimporter might mot
be working when building that way:

    +  Traceback (most recent call last):
    +    File "check-seclevel.py", line 23, in <module>
    +      table = commands.table
    +    File "/usr/lib/python3.5/importlib/util.py", line 237, in
__getattribute__
    +      self.__spec__.loader.exec_module(self)
    +    File "<frozen importlib._bootstrap_external>", line 673, in
exec_module
    +    File "<frozen importlib._bootstrap>", line 222, in
_call_with_frames_removed
    +    File "../mercurial/commands.py", line 74, in <module>
    +      table.update(debugcommandsmod.command._table)
    +    File "/usr/lib/python3.5/importlib/util.py", line 237, in
__getattribute__
    +      self.__spec__.loader.exec_module(self)
    +    File "<frozen importlib._bootstrap_external>", line 673, in
exec_module
    +    File "<frozen importlib._bootstrap>", line 222, in
_call_with_frames_removed
    +    File "../mercurial/debugcommands.py", line 552, in <module>
    +      @command('debugdata', cmdutil.debugrevlogopts, _('-c|-m|FILE REV'))
    +    File "/usr/lib/python3.5/importlib/util.py", line 237, in
__getattribute__
    +      self.__spec__.loader.exec_module(self)
    +    File "<frozen importlib._bootstrap_external>", line 673, in
exec_module
    +    File "<frozen importlib._bootstrap>", line 222, in
_call_with_frames_removed
    +    File "../mercurial/cmdutil.py", line 56, in <module>
    +      stringio = util.stringio
    +    File "/usr/lib/python3.5/importlib/util.py", line 237, in
__getattribute__
    +      self.__spec__.loader.exec_module(self)
    +    File "<frozen importlib._bootstrap_external>", line 673, in
exec_module
    +    File "<frozen importlib._bootstrap>", line 222, in
_call_with_frames_removed
    +    File "../mercurial/util.py", line 3916, in <module>
    +      i18nfunctions = bundlecompressiontopics().values()
    +    File "../mercurial/util.py", line 3898, in bundlecompressiontopics
    +      if not engine.available():
    +    File "../mercurial/util.py", line 3775, in available
    +      return bool(self._module)
    +    File "../mercurial/util.py", line 1559, in __get__
    +      result = self.func(obj)
    +    File "../mercurial/util.py", line 3769, in _module
    +      zstd.__version__
    +    File "/usr/lib/python3.5/importlib/util.py", line 248, in
__getattribute__
    +      return getattr(self, attr)
    +  AttributeError: module 'mercurial.zstd' has no attribute '__version__'

Removing the separate build step and letting `run-tests.py` build Mercurial
seems to have fixed this specific error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list