Bug 2366491

Summary: python-remoto fails to build with Python 3.14: AttributeError: 'TestRemoteError' object has no attribute 'traceback'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-remotoAssignee: Ken Dreyer <ktdreyer>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fti-bugs, jcaratza, ksurma, ktdreyer, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432, 2339435    

Description Karolina Surma 2025-05-15 12:27:44 UTC
python-remoto fails to build with Python 3.14.0b1.

=================================== FAILURES ===================================
_________________ TestExtendPath.test_no_environment_sets_path _________________

self = <remoto.tests.test_process.TestExtendPath object at 0x7fd1b7023ed0>

    def test_no_environment_sets_path(self):
        fake_conn = Mock()
        fake_conn.gateway.remote_exec.return_value = fake_conn
        fake_conn.receive.return_value = {}
        result = process.extend_env(fake_conn, {})
>       assert result['env']['PATH'] == self.path
E       AttributeError: 'TestExtendPath' object has no attribute 'path'

remoto/tests/test_process.py:18: AttributeError
___________ TestExtendPath.test_custom_path_does_not_get_overridden ____________

self = <remoto.tests.test_process.TestExtendPath object at 0x7fd1b6f1c050>

    def test_custom_path_does_not_get_overridden(self):
        fake_conn = Mock()
        fake_conn.gateway.remote_exec.return_value = fake_conn
        fake_conn.receive.return_value = {'PATH': '/home/alfredo/bin'}
        result = process.extend_env(fake_conn, {})
        new_path = result['env']['PATH']
>       assert new_path.endswith(self.path)
E       AttributeError: 'TestExtendPath' object has no attribute 'path'

remoto/tests/test_process.py:26: AttributeError
___________ TestExtendPath.test_custom_env_var_extends_existing_env ____________

self = <remoto.tests.test_process.TestExtendPath object at 0x7fd1b6fdbce0>

    def test_custom_env_var_extends_existing_env(self):
        fake_conn = Mock()
        fake_conn.gateway.remote_exec.return_value = fake_conn
        fake_conn.receive.return_value = {'PATH': '/home/alfredo/bin'}
        result = process.extend_env(fake_conn, {'extend_env': {'CEPH_VOLUME_DEBUG': '1'}})
        new_path = result['env']['PATH']
>       assert result['env']['PATH'].endswith(self.path)
E       AttributeError: 'TestExtendPath' object has no attribute 'path'

remoto/tests/test_process.py:35: AttributeError
_____________________ TestRemoteError.test_exception_name ______________________

self = <remoto.tests.test_util.TestRemoteError object at 0x7fd1b6f1ca50>

    def test_exception_name(self):
>       error = util.RemoteError(self.traceback)
E       AttributeError: 'TestRemoteError' object has no attribute 'traceback'

remoto/tests/test_util.py:29: AttributeError
_____________________ TestRemoteError.test_exception_line ______________________

self = <remoto.tests.test_util.TestRemoteError object at 0x7fd1b6f1cb90>

    def test_exception_line(self):
>       error = util.RemoteError(self.traceback)
E       AttributeError: 'TestRemoteError' object has no attribute 'traceback'

remoto/tests/test_util.py:33: AttributeError
=========================== short test summary info ============================
FAILED remoto/tests/test_process.py::TestExtendPath::test_no_environment_sets_path
FAILED remoto/tests/test_process.py::TestExtendPath::test_custom_path_does_not_get_overridden
FAILED remoto/tests/test_process.py::TestExtendPath::test_custom_env_var_extends_existing_env
FAILED remoto/tests/test_util.py::TestRemoteError::test_exception_name - Attr...
FAILED remoto/tests/test_util.py::TestRemoteError::test_exception_line - Attr...
========================= 5 failed, 47 passed in 0.08s =========================

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09026926-python-remoto/

For all our attempts to build python-remoto with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-remoto/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Karolina Surma 2025-06-11 16:04:00 UTC
*** Bug 2372103 has been marked as a duplicate of this bug. ***