Hi!
While rebuilding the python related packages against the Python 3.15rc2
version we found that cyborg fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856113/
In the log, there are numerous failures like this one:
======================================================================
FAIL:
cyborg.tests.unit.accelerator.drivers.spdk.vhost.test_vhost.TestVHOSTDRIVER.test_accelerator_list
cyborg.tests.unit.accelerator.drivers.spdk.vhost.test_vhost.TestVHOSTDRIVER.test_accelerator_list
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call
last):
File
"/build/reproducible-path/cyborg-17.0.0~rc1/cyborg/tests/unit/accelerator/drivers/spdk/vhost/test_vhost.py",
line 27, in setUp
self.vhost_driver = VHOSTDRIVER()
~~~~~~~~~~~^^
File
"/build/reproducible-path/cyborg-17.0.0~rc1/cyborg/accelerator/drivers/spdk/vhost/vhost.py",
line 39, in __init__
self.servers = common_fun.discover_servers()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File
"/build/reproducible-path/cyborg-17.0.0~rc1/cyborg/accelerator/drivers/spdk/util/common_fun.py",
line 77, in discover_servers
for p in glob.glob1(SPDK_SERVER_APP_DIR, "*"):
^^^^^^^^^^
AttributeError: module 'glob' has no attribute 'glob1'. Did you mean
'.glob' instead of '.glob1'?
----------------------------------------------------------------------
This is caused by glob.glob1 getting removed. See
https://docs.python.org/3.15/whatsnew/3.15.html#glob:
Removed the undocumented glob.glob0() and glob.glob1() functions, which
have been deprecated since Python 3.13. Use glob.glob() and pass a
directory to its root_dir argument instead. (Contributed by Barney Gale
in gh-137466.)
Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.