Bug 2365819

Summary: lasso fails to build with Python 3.14: FAIL: binding_tests.py
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: lassoAssignee: Xavier Bachelot <xavier>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, rcritten, xavier
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lasso-2.8.2-17.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-14 14:54:13 UTC 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    

Description Karolina Surma 2025-05-13 08:40:20 UTC
lasso fails to build with Python 3.14.0b1.

Unfortunately, build log of lasso doesn't show meaningful traceback.

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/09023735-lasso/

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

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 Xavier Bachelot 2025-05-13 14:59:21 UTC
I'd like to try and replicate this but ss there a convenient way to build against python 3.14 beta 1 ? Maybe a side tag ?

Comment 2 Xavier Bachelot 2025-05-13 15:11:58 UTC
Sorry for the noise, I failed to read properly ;-(
There are no instructions at https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was able to sort this out.
Now let's see if I can help with a fix.

Comment 3 Xavier Bachelot 2025-05-13 15:23:49 UTC
From /build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log:

```
FAIL: test07 (__main__.BindingTestCase.test07)
Check reference counting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/./binding_tests.py", line 260, in test07
    self.assertEqual(b, a-1)
    ~~~~~~~~~~~~~~~~^^^^^^^^
AssertionError: 1 != 2
```

Comment 4 Xavier Bachelot 2025-05-13 15:34:32 UTC
The path for the test suite log above is wrong, it should read /buildir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log

The failing test from /builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/binding_tests.py is 
```
   def test07(self):
        '''Check reference counting'''
        s = lasso.Samlp2AuthnRequest()
        cptr = s._cptr
        a = sys.getrefcount(s._cptr)
        del(s)
        b = sys.getrefcount(cptr)
        self.assertEqual(b, a-1)
```

Comment 5 Xavier Bachelot 2025-05-13 17:12:47 UTC
upstream issue: https://dev.entrouvert.org/issues/105622

Comment 6 Fedora Update System 2025-05-14 13:54:45 UTC
FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-1bc39c03d8

Comment 8 Fedora Update System 2025-05-14 13:59:09 UTC
FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Xavier Bachelot 2025-05-14 14:01:47 UTC
Bodhi automatically closed this bug, although the rawhide build is not using python 3.14, so re-opening in order to be able to close once the python 3.14 build has actually happened.

Comment 10 Karolina Surma 2025-05-14 14:03:30 UTC
(In reply to Xavier Bachelot from comment #2)
> Sorry for the noise, I failed to read properly ;-(
> There are no instructions at
> https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there
> are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was
> able to sort this out.

Apologies for that and thank you for pointing this out - I added the instructions and updated template.

Comment 11 Karolina Surma 2025-05-14 14:05:48 UTC
Feel free to close the bug though: lasso has built successfully in Python 3.14 copr (https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/build/9038285/) so I expect a success later in Koji (the rebuild is planned for the week around ~Jun 2nd).

Comment 12 Xavier Bachelot 2025-05-14 14:54:13 UTC
Thanks for the update Karolina !