--- Begin Message ---
Package: src:python-memray
Version: 1.17.0+dfsg-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202605/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-memray, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with sphinxdoc --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
debian/rules binary
dh binary --with sphinxdoc --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build"
module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_memray
* Building wheel...
warning: src/memray/_memray.pyx:517:14: Rvalue-reference as function argument
not supported
[... snipped ...]
^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:567: in run_test
labels.update(extract_label_text(pilot.app))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:149: in extract_label_text
label.id: render_widget(label)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
widget = Label(id='head_title')
def render_widget(widget: Widget) -> str:
output = StringIO()
> rprint(widget.renderable, file=output) # type: ignore
^^^^^^^^^^^^^^^^^
E AttributeError: 'Label' object has no attribute 'renderable'. Did you
mean: 'render_line'?
tests/unit/test_tui_reporter.py:143: AttributeError
____________________________ test_switching_threads ____________________________
def test_switching_threads():
"""Test that we can switch which thread is displayed"""
# GIVEN
thread_names = ["Thread A", "", "Thread C"]
thread_labels = [
"Thread 1 of 3 (Thread A)",
"Thread 2 of 3",
"Thread 3 of 3 (Thread C)",
]
snapshot = [
mock_allocation(
tid=1,
stack=[("a", "a.py", 1)],
thread_name=thread_names[0],
),
mock_allocation(
tid=2,
stack=[("b", "b.py", 1)],
thread_name=thread_names[1],
),
mock_allocation(
tid=3,
stack=[("c", "c.py", 1)],
thread_name=thread_names[2],
),
]
reader = MockReader([])
app = MockApp(reader)
functions = []
tids = []
threads = []
# WHEN
async def run_test():
async with app.run_test() as pilot:
app.add_mock_snapshot(snapshot)
await pilot.pause()
datatable = pilot.app.screen.query_one(DataTable)
for key in ("m", ">", ">", ">", "<", "<", "<"):
await pilot.press(key)
functions.append(datatable.get_cell_at(Coordinate(0,
0)).plain)
labels = extract_label_text(app)
tids.append(" ".join(labels["tid"].split()))
threads.append(" ".join(labels["thread"].split()))
> async_run(run_test())
tests/unit/test_tui_reporter.py:684:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/utils.py:108: in async_run
return asyncio.run(coro)
^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:195: in run
return runner.run(main)
^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:118: in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:680: in run_test
labels = extract_label_text(app)
^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:149: in extract_label_text
label.id: render_widget(label)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
widget = Label(id='head_title')
def render_widget(widget: Widget) -> str:
output = StringIO()
> rprint(widget.renderable, file=output) # type: ignore
^^^^^^^^^^^^^^^^^
E AttributeError: 'Label' object has no attribute 'renderable'. Did you
mean: 'render_line'?
tests/unit/test_tui_reporter.py:143: AttributeError
_________________________ test_merge_mode_new_threads __________________________
def test_merge_mode_new_threads():
"""Test that the 'All threads' is still displayed when a new thread is
created."""
# GIVEN
snapshot = [
mock_allocation(
tid=1,
stack=[("a", "a.py", 1)],
),
mock_allocation(
tid=2,
stack=[("b", "b.py", 1)],
),
mock_allocation(
tid=3,
stack=[("c", "c.py", 1)],
),
]
new_thread = mock_allocation(tid=4, stack=[("d", "d.py", 1)])
reader = MockReader([])
app = MockApp(reader)
label = []
# WHEN
async def run_test():
async with app.run_test() as pilot:
await pilot.press("m")
app.add_mock_snapshot(snapshot)
await pilot.pause()
await pilot.press("m")
app.add_mock_snapshot(snapshot + [new_thread])
await pilot.pause()
label.append(extract_label_text(app)["thread"])
> async_run(run_test())
tests/unit/test_tui_reporter.py:728:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/utils.py:108: in async_run
return asyncio.run(coro)
^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:195: in run
return runner.run(main)
^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:118: in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:726: in run_test
label.append(extract_label_text(app)["thread"])
^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:149: in extract_label_text
label.id: render_widget(label)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
widget = Label(id='head_title')
def render_widget(widget: Widget) -> str:
output = StringIO()
> rprint(widget.renderable, file=output) # type: ignore
^^^^^^^^^^^^^^^^^
E AttributeError: 'Label' object has no attribute 'renderable'. Did you
mean: 'render_line'?
tests/unit/test_tui_reporter.py:143: AttributeError
__________________ test_merging_allocations_from_all_threads ___________________
def test_merging_allocations_from_all_threads():
"""Test that we can display allocations from all threads"""
# GIVEN
snapshot = [
mock_allocation(
tid=1,
size=1024,
stack=[("a", "a.py", 1)],
),
mock_allocation(
tid=2,
size=2 * 1024,
stack=[("b", "b.py", 1)],
),
mock_allocation(
tid=3,
size=3 * 1024,
stack=[("c", "c.py", 1)],
),
]
reader = MockReader([])
app = MockApp(reader)
functions = []
tids = []
threads = []
# WHEN
async def run_test():
async with app.run_test() as pilot:
app.add_mock_snapshot(snapshot)
await pilot.pause()
datatable = pilot.app.screen.query_one(DataTable)
for key in ("m", ">", "m", "<", "m", "<"):
await pilot.press(key)
functions.append(datatable.get_cell_at(Coordinate(0,
0)).plain)
labels = extract_label_text(app)
tids.append(" ".join(labels["tid"].split()))
threads.append(" ".join(labels["thread"].split()))
> async_run(run_test())
tests/unit/test_tui_reporter.py:776:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/utils.py:108: in async_run
return asyncio.run(coro)
^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:195: in run
return runner.run(main)
^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/runners.py:118: in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:772: in run_test
labels = extract_label_text(app)
^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/test_tui_reporter.py:149: in extract_label_text
label.id: render_widget(label)
^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
widget = Label(id='head_title')
def render_widget(widget: Widget) -> str:
output = StringIO()
> rprint(widget.renderable, file=output) # type: ignore
^^^^^^^^^^^^^^^^^
E AttributeError: 'Label' object has no attribute 'renderable'. Did you
mean: 'render_line'?
tests/unit/test_tui_reporter.py:143: AttributeError
=============================== warnings summary ===============================
tests/conftest.py:66
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_memray/build/tests/conftest.py:66:
UserWarning: snapshot tests require pytest-textual-snapshot but it is not
installed
config.issue_config_time_warning(UserWarning(reason), stacklevel=2)
tests/integration/test_processes.py: 11 warnings
/usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning:
This process (pid=2918) is multi-threaded, use of fork() may lead to deadlocks
in the child.
self.pid = os.fork()
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/unit/test_tui_reporter.py::test_pid_display[Known PID] - Attribu...
FAILED tests/unit/test_tui_reporter.py::test_pid_display[Unknown PID] - Attri...
FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Known command]
FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Known command
with path]
FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Memray script
with path]
FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Memray module
with path]
FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Unknown
command]
FAILED tests/unit/test_tui_reporter.py::test_header_with_no_snapshots - Attri...
FAILED tests/unit/test_tui_reporter.py::test_header_with_empty_snapshot - Att...
FAILED tests/unit/test_tui_reporter.py::test_switching_threads - AttributeErr...
FAILED tests/unit/test_tui_reporter.py::test_merge_mode_new_threads - Attribu...
FAILED
tests/unit/test_tui_reporter.py::test_merging_allocations_from_all_threads
=== 12 failed, 471 passed, 25 skipped, 14 deselected, 12 warnings in 22.41s ====
E: pybuild pybuild:485: test: plugin pyproject failed with:
[too-long-redacted] and not test_dlopen_with_rpath'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14
3.13" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:94: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
--------------------------------------------------------------------------------
--- End Message ---