Bug 1906462 - javapackages-tools fails to build with Python 3.10: AssertionError: '<frozen importlib._bootstrap>:241: Runtim[147 chars]type' != 'Unsupported artifact type'
Summary: javapackages-tools fails to build with Python 3.10: AssertionError: '<frozen ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-10 15:05 UTC by Tomáš Hrnčiar
Modified: 2021-01-04 15:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-10 16:53:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-12-10 15:05:18 UTC
javapackages-tools fails to build with Python 3.10.0a3.

======================================================================
FAIL: test_run_no_args (mvn_alias_test.TestMvnAlias)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/test_common.py", line 122, in test_decorated
    fun(self, stdout, stderr, return_value)
  File "/builddir/build/BUILD/javapackages-5.3.0/test/mvn_alias_test.py", line 32, in test_run_no_args
    self.assertEqual("Usage:", stderr[:6])
AssertionError: 'Usage:' != '<froze'
- Usage:
+ <froze
======================================================================
FAIL: test_run_no_args (mvn_compat_version_test.TestMvnCompatVersion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/test_common.py", line 122, in test_decorated
    fun(self, stdout, stderr, return_value)
  File "/builddir/build/BUILD/javapackages-5.3.0/test/mvn_compat_version_test.py", line 29, in test_run_no_args
    self.assertEqual("Usage:", stderr[:6])
AssertionError: 'Usage:' != '<froze'
- Usage:
+ <froze
======================================================================
FAIL: test_run_no_args (mvn_config_test.TestMvnConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/test_common.py", line 122, in test_decorated
    fun(self, stdout, stderr, return_value)
  File "/builddir/build/BUILD/javapackages-5.3.0/test/mvn_config_test.py", line 29, in test_run_no_args
    self.assertEqual("Usage:", stderr[:6])
AssertionError: 'Usage:' != '<froze'
- Usage:
+ <froze
======================================================================
FAIL: test_run_no_args (mvn_file_test.TestMvnFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/test_common.py", line 122, in test_decorated
    fun(self, stdout, stderr, return_value)
  File "/builddir/build/BUILD/javapackages-5.3.0/test/mvn_file_test.py", line 29, in test_run_no_args
    self.assertEqual("Usage:", stderr[:6])
AssertionError: 'Usage:' != '<froze'
- Usage:
+ <froze
======================================================================
FAIL: test_run_no_args (mvn_package_test.TestMvnPackage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/test_common.py", line 122, in test_decorated
    fun(self, stdout, stderr, return_value)
  File "/builddir/build/BUILD/javapackages-5.3.0/test/mvn_package_test.py", line 30, in test_run_no_args
    self.assertEqual("Usage:", stderr[:6])
AssertionError: 'Usage:' != '<froze'
- Usage:
+ <froze
======================================================================
FAIL: test_unsupported_type (pm_request_test.PmRequestTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/pm_request_test.py", line 80, in test_unsupported_type
    self.assertEqual(err.rstrip(), "Unsupported artifact type")
AssertionError: '<frozen importlib._bootstrap>:241: Runtim[147 chars]type' != 'Unsupported artifact type'
- <frozen importlib._bootstrap>:241: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 880 from C header, got 888 from PyObject
  Unsupported artifact type
======================================================================
FAIL: test_usage (pm_request_test.PmRequestTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/javapackages-5.3.0/test/pm_request_test.py", line 85, in test_usage
    self.assertEqual(err.rstrip(), "Usage: artifact-type artifact-coordinates")
AssertionError: '<frozen importlib._bootstrap>:241: Runtim[163 chars]ates' != 'Usage: artifact-type artifact-coordinates'
- <frozen importlib._bootstrap>:241: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 880 from C header, got 888 from PyObject
  Usage: artifact-type artifact-coordinates
----------------------------------------------------------------------
XML: /builddir/build/BUILD/javapackages-5.3.0/test/nosetests.xml
----------------------------------------------------------------------
Ran 422 tests in 44.010s
FAILED (failures=7)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/%40python/python3.10/fedora-rawhide-x86_64/01822534-javapackages-tools/

For all our attempts to build krita with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/javapackages-tools/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2020-12-10 16:45:57 UTC
The tests failures are caused by:

 RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 880 from C header, got 888 from PyObject

I suspect the installed python3-lxml was built with 3.10.0a2. I've removed all such builds from https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-lxml/ and trying again.

Comment 2 Miro Hrončok 2020-12-10 16:53:51 UTC
Yes, sorry for the noise. we are back at bz1897070.


Note You need to log in before you can comment on or make changes to this bug.