python-trio 0.24.0-1 FTBFS on noble

Bug #2054772 reported by Pushkar Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-trio (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Build-time tests fail due to, what appears like, a permissions issue with setsockopt() only on the LP builders [1] (the failure can be repro'd in a PPA [2]). However, I couldn't repro the failure in a noble-amd64 schroot, using sbuild - the package built there.

[1] https://launchpad.net/ubuntu/+source/python-trio/0.24.0-1/+build/27687134
[2] https://launchpadlibrarian.net/715651329/buildlog_ubuntu-noble-amd64.python-trio_0.24.0-1_BUILDING.txt.gz

Related branches

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Well, looks like the tests that fail use SO_BINDTODEVICE (which needs root privileges).

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

I am not 100% sure if this call, failing with a PermissionError, requires root privileges:

sock.setsockopt(tsocket.SOL_SOCKET, tsocket.SO_BINDTODEVICE, None, 0)

I tried to write small tests in Python and C, as a non-root user, but cannot trigger a PermissionError (Python) or a system-call failure (C).

I am unable to reproduce the build-time test failure too.

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Checked with the Launchpad team if I could get access to a builder VM so that we can investigate this failure, but they hinted on the negative side.

I might try to run the build in a noble LXD-container (on a VM), like LP does. But, I have submitted a patch that disables the failing call from the tests, as a temporary workaround to get python-trio built and also potentially not block other packages like dnspython [1].

[1] https://bugs.launchpad.net/ubuntu/+source/dnspython/+bug/2054694

Nick Rosbrook (enr0n)
Changed in python-trio (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-trio - 0.24.0-1ubuntu1

---------------
python-trio (0.24.0-1ubuntu1) noble; urgency=medium

  * d/patches: In test_socket.py, handle PermissionError
    which may be thrown if setsockopt() is invoked
    with SO_BINDTODEVICE (LP: #2054772)

 -- Pushkar Kulkarni <email address hidden> Tue, 27 Feb 2024 13:40:53 +0530

Changed in python-trio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.