Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-comfy-aimdo for
openSUSE:Factory checked in at 2026-11-27 19:42:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-comfy-aimdo (Old)
and /work/SRC/openSUSE:Factory/.python-comfy-aimdo.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-comfy-aimdo"
Fri Nov 27 19:42:12 2026 rev:10 rq:1400961 version:0.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-comfy-aimdo/python-comfy-aimdo.changes
2026-10-22 18:24:31.348275791 +0200
+++
/work/SRC/openSUSE:Factory/.python-comfy-aimdo.new.1340718/python-comfy-aimdo.changes
2026-11-27 19:44:06.256539878 +0100
@@ -1,0 +2,14 @@
+Thu Nov 26 18:08:04 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 0.6.1:
+ * malloc_graph.use_stream() now preserves the original
+ exception when restoring the previous stream fails, instead
+ of masking it; a restore that fails with no body error still
+ raises the compile error, and the entered stream stays
+ selected (native path, which this build does not compile)
+ * New unit test for the stream-restore error paths (CUDA-only
+ runner gains the new test module)
+- Keep comfy-aimdo-detect-vendor-without-local-version.patch
+ (control.py unchanged, still applies cleanly)
+
+-------------------------------------------------------------------
Old:
----
comfy-aimdo-0.6.0.tar.gz
New:
----
comfy-aimdo-0.6.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-comfy-aimdo.spec ++++++
--- /var/tmp/diff_new_pack.pOyKuw/_old 2026-11-27 19:44:07.373587084 +0100
+++ /var/tmp/diff_new_pack.pOyKuw/_new 2026-11-27 19:44:07.379587338 +0100
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-comfy-aimdo
-Version: 0.6.0
+Version: 0.6.1
Release: 0
Summary: AI Model Dynamic Offloader for ComfyUI (pure-Python fallback)
License: GPL-3.0-only
@@ -89,7 +89,7 @@
EOF
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -B
test_no_vendor.py
-%files %{python_files}
+%files %python_files
%license LICENSE
%doc README.md
%{python_sitelib}/comfy_aimdo
++++++ comfy-aimdo-0.6.0.tar.gz -> comfy-aimdo-0.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/comfy-aimdo-0.6.0/comfy_aimdo/malloc_graph.py
new/comfy-aimdo-0.6.1/comfy_aimdo/malloc_graph.py
--- old/comfy-aimdo-0.6.0/comfy_aimdo/malloc_graph.py 2026-10-21
13:56:45.000000000 +0200
+++ new/comfy-aimdo-0.6.1/comfy_aimdo/malloc_graph.py 2026-11-25
12:17:02.000000000 +0100
@@ -44,7 +44,11 @@
self._stream = stream
try:
yield
- finally:
+ except BaseException:
+ if control.lib.malloc_graph_set_stream(self._handle,
ctypes.c_void_p(previous.cuda_stream)):
+ self._stream = previous
+ raise
+ else:
self._call(control.lib.malloc_graph_set_stream,
ctypes.c_void_p(previous.cuda_stream))
self._stream = previous
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/comfy-aimdo-0.6.0/tests/malloc-graph-stream-errors.py
new/comfy-aimdo-0.6.1/tests/malloc-graph-stream-errors.py
--- old/comfy-aimdo-0.6.0/tests/malloc-graph-stream-errors.py 1970-01-01
01:00:00.000000000 +0100
+++ new/comfy-aimdo-0.6.1/tests/malloc-graph-stream-errors.py 2026-11-25
12:17:02.000000000 +0100
@@ -0,0 +1,72 @@
+from types import SimpleNamespace
+import unittest
+from unittest.mock import Mock, patch
+
+from comfy_aimdo import control
+from comfy_aimdo.malloc_graph import MallocGraph
+
+
+class StreamErrors(unittest.TestCase):
+ def setUp(self):
+ self.previous = SimpleNamespace(cuda_stream=1)
+ self.stream = SimpleNamespace(cuda_stream=2)
+ self.graph = MallocGraph(1, self.previous)
+ self.set_stream = Mock(return_value=True)
+ self.library = SimpleNamespace(
+ malloc_graph_set_stream=self.set_stream,
+ malloc_graph_destroy=Mock(),
+ )
+ self.patch = patch.object(control, "lib", self.library)
+ self.patch.start()
+ self.addCleanup(self.patch.stop)
+
+ def test_restore_on_success(self):
+ with self.graph.use_stream(self.stream):
+ self.assertIs(self.graph._stream, self.stream)
+ self.assertIs(self.graph._stream, self.previous)
+ self.assertEqual([call.args[1].value for call in
self.set_stream.call_args_list], [2, 1])
+
+ def test_entry_failure(self):
+ self.set_stream.return_value = False
+ with self.assertRaisesRegex(RuntimeError, "aimdo memory compile
error"):
+ with self.graph.use_stream(self.stream):
+ self.fail("A rejected stream must not be used")
+ self.assertIs(self.graph._stream, self.previous)
+ self.assertEqual(self.set_stream.call_count, 1)
+
+ def test_restore_failure_without_body_error(self):
+ self.set_stream.side_effect = [True, False]
+ with self.assertRaisesRegex(RuntimeError, "aimdo memory compile
error"):
+ with self.graph.use_stream(self.stream):
+ pass
+ self.assertIs(self.graph._stream, self.stream)
+
+ def test_preserve_body_exception(self):
+ for error in (MemoryError("allocation failed"), ValueError("invalid
input"), KeyboardInterrupt()):
+ for restored in (True, False):
+ with self.subTest(error=type(error).__name__,
restored=restored):
+ self.graph._stream = self.previous
+ self.set_stream.reset_mock()
+ self.set_stream.side_effect = [True, restored]
+ with self.assertRaises(type(error)) as caught:
+ with self.graph.use_stream(self.stream):
+ raise error
+ self.assertIs(caught.exception, error)
+ self.assertEqual(self.set_stream.call_count, 2)
+ self.assertIs(self.graph._stream, self.previous if
restored else self.stream)
+
+ def test_nested_restore_failures(self):
+ nested = SimpleNamespace(cuda_stream=3)
+ self.set_stream.side_effect = [True, True, False, False]
+ error = MemoryError("allocation failed")
+ with self.assertRaises(MemoryError) as caught:
+ with self.graph.use_stream(self.stream):
+ with self.graph.use_stream(nested):
+ raise error
+ self.assertIs(caught.exception, error)
+ self.assertEqual([call.args[1].value for call in
self.set_stream.call_args_list], [2, 3, 2, 1])
+ self.assertIs(self.graph._stream, nested)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/comfy-aimdo-0.6.0/tests/run-malloc-graph-cuda.py
new/comfy-aimdo-0.6.1/tests/run-malloc-graph-cuda.py
--- old/comfy-aimdo-0.6.0/tests/run-malloc-graph-cuda.py 2026-10-21
13:56:45.000000000 +0200
+++ new/comfy-aimdo-0.6.1/tests/run-malloc-graph-cuda.py 2026-11-25
12:17:02.000000000 +0100
@@ -5,6 +5,7 @@
TESTS = (
+ "malloc-graph-stream-errors.py",
"malloc-graph-cuda.py",
"malloc-graph-nested-cuda.py",
"malloc-graph-iterate-cuda.py",