Bug 2584161

Summary: btrfs-backup-ng fails to build with Python 3.16: AssertionError in TestTheWizardDerivesAUsableValue
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: btrfs-backup-ngAssignee: Michael Berry <trismegustis>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, trismegustis
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: 2567340    

Description Karolina Surma 2026-11-25 14:30:51 UTC
btrfs-backup-ng fails to build with Python 3.16.0a2.

__ TestTheWizardDerivesAUsableValue.test_a_subdirectory_gets_the_mount_point ___
tests/test_require_mount_enforced.py:340: in test_a_subdirectory_gets_the_mount_point
    assert self._derive("/mnt/usb-drive/backup", ["/mnt/usb-drive"]) == (
E   AssertionError: assert True == '/mnt/usb-drive'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('/mnt/usb-drive/backup', ['/mnt/usb-drive'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f5653231a90>._derive
___ TestTheWizardDerivesAUsableValue.test_a_deep_target_finds_the_real_mount ___
tests/test_require_mount_enforced.py:348: in test_a_deep_target_finds_the_real_mount
    assert self._derive("/mnt/backup/box1/home", ["/mnt/backup"]) == "/mnt/backup"
E   AssertionError: assert True == '/mnt/backup'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('/mnt/backup/box1/home', ['/mnt/backup'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f5653216c40>._derive
____ TestTheWizardDerivesAUsableValue.test_a_raw_uri_target_is_seen_through ____
tests/test_require_mount_enforced.py:377: in test_a_raw_uri_target_is_seen_through
    assert self._derive("raw:///mnt/usb-backup/home", ["/mnt/usb-backup"]) == (
E   AssertionError: assert True == '/mnt/usb-backup'
E    +  where True = <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0>('raw:///mnt/usb-backup/home', ['/mnt/usb-backup'])
E    +    where <function TestTheWizardDerivesAUsableValue._derive at 0x7f56532264b0> = <tests.test_require_mount_enforced.TestTheWizardDerivesAUsableValue object at 0x7f56531d3bd0>._derive
https://docs.python.org/3.16/whatsnew/3.16.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359572-btrfs-backup-ng/

For all our attempts to build btrfs-backup-ng with Python 3.16, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/btrfs-backup-ng/

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

Let us know here if you have any questions.

Python 3.16 is planned to be included in Fedora 47.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16.
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.