Kouhei Sutou created ARROW-10364:
------------------------------------
Summary: [Dev][Archery] Test is failed with semver 2.13.0
Key: ARROW-10364
URL: https://issues.apache.org/jira/browse/ARROW-10364
Project: Apache Arrow
Issue Type: Test
Components: Developer Tools
Reporter: Kouhei Sutou
https://github.com/apache/arrow/runs/1276765550?check_suite_focus=true
{noformat}
=================================== FAILURES ===================================
_____________________________ test_release_basics ______________________________
fake_jira = <test_release.FakeJira object at 0x7fac73641630>
def test_release_basics(fake_jira):
> r = Release.from_jira("1.0.0", jira=fake_jira)
archery/tests/test_release.py:202:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '1.0.0'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
________________________ test_previous_and_next_release ________________________
fake_jira = <test_release.FakeJira object at 0x7fac7372d668>
def test_previous_and_next_release(fake_jira):
> r = Release.from_jira("3.0.0", jira=fake_jira)
archery/tests/test_release.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '3.0.0'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_____________________________ test_release_issues ______________________________
fake_jira = <test_release.FakeJira object at 0x7fac73896588>
def test_release_issues(fake_jira):
# major release issues
> r = Release.from_jira("1.0.0", jira=fake_jira)
archery/tests/test_release.py:272:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '1.0.0'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_______________________ test_release_commits[1.0.0-771] ________________________
fake_jira = <test_release.FakeJira object at 0x7fac73856e10>, version = '1.0.0'
ncommits = 771
@pytest.mark.parametrize(('version', 'ncommits'), [
("1.0.0", 771),
("0.17.1", 27),
("0.17.0", 569),
("0.15.1", 41)
])
def test_release_commits(fake_jira, version, ncommits):
> r = Release.from_jira(version, jira=fake_jira)
archery/tests/test_release.py:313:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '1.0.0'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_______________________ test_release_commits[0.17.1-27] ________________________
fake_jira = <test_release.FakeJira object at 0x7fac739019e8>, version = '0.17.1'
ncommits = 27
@pytest.mark.parametrize(('version', 'ncommits'), [
("1.0.0", 771),
("0.17.1", 27),
("0.17.0", 569),
("0.15.1", 41)
])
def test_release_commits(fake_jira, version, ncommits):
> r = Release.from_jira(version, jira=fake_jira)
archery/tests/test_release.py:313:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '0.17.1'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_______________________ test_release_commits[0.17.0-569] _______________________
fake_jira = <test_release.FakeJira object at 0x7fac73823198>, version = '0.17.0'
ncommits = 569
@pytest.mark.parametrize(('version', 'ncommits'), [
("1.0.0", 771),
("0.17.1", 27),
("0.17.0", 569),
("0.15.1", 41)
])
def test_release_commits(fake_jira, version, ncommits):
> r = Release.from_jira(version, jira=fake_jira)
archery/tests/test_release.py:313:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '0.17.0'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_______________________ test_release_commits[0.15.1-41] ________________________
fake_jira = <test_release.FakeJira object at 0x7fac73942470>, version = '0.15.1'
ncommits = 41
@pytest.mark.parametrize(('version', 'ncommits'), [
("1.0.0", 771),
("0.17.1", 27),
("0.17.0", 569),
("0.15.1", 41)
])
def test_release_commits(fake_jira, version, ncommits):
> r = Release.from_jira(version, jira=fake_jira)
archery/tests/test_release.py:313:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '0.15.1'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
_______________________ test_maintenance_patch_selection _______________________
fake_jira = <test_release.FakeJira object at 0x7fac73620128>
def test_maintenance_patch_selection(fake_jira):
> r = Release.from_jira("0.17.1", jira=fake_jira)
archery/tests/test_release.py:322:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
archery/release.py:281: in from_jira
version = jira.project_version(version, project='ARROW')
archery/release.py:93: in project_version
return versions[versions.index(version_string)]
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:203:
in wrapper
return operator(self, other)
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:573:
in __eq__
return self.compare(other) == 0
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:493:
in compare
other = cls.parse(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'archery.release.Version'>, version = '0.17.1'
@classmethod
def parse(cls, version):
"""
Parse version string to a VersionInfo instance.
:param version: version string
:return: a :class:`VersionInfo` instance
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`
.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.
>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
"""
match = cls._REGEX.match(ensure_str(version))
if match is None:
raise ValueError("%s is not valid SemVer string" % version)
version_parts = match.groupdict()
version_parts["major"] = int(version_parts["major"])
version_parts["minor"] = int(version_parts["minor"])
version_parts["patch"] = int(version_parts["patch"])
> return cls(**version_parts)
E TypeError: __init__() got an unexpected keyword argument 'major'
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/semver.py:734:
TypeError
=============================== warnings summary ===============================
../../../../../../../opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/jwt/utils.py:8
/opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages/jwt/utils.py:8:
CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next
release ofcryptography. Please upgrade your Python.
from cryptography.hazmat.primitives.asymmetric.utils import (
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED archery/tests/test_release.py::test_release_basics - TypeError: __init...
FAILED archery/tests/test_release.py::test_previous_and_next_release - TypeEr...
FAILED archery/tests/test_release.py::test_release_issues - TypeError: __init...
FAILED archery/tests/test_release.py::test_release_commits[1.0.0-771] - TypeE...
FAILED archery/tests/test_release.py::test_release_commits[0.17.1-27] - TypeE...
FAILED archery/tests/test_release.py::test_release_commits[0.17.0-569] - Type...
FAILED archery/tests/test_release.py::test_release_commits[0.15.1-41] - TypeE...
FAILED archery/tests/test_release.py::test_maintenance_patch_selection - Type...
=================== 8 failed, 34 passed, 1 warning in 23.52s ===================
Error: Process completed with exit code 1.
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)