Commit Graph
183 Commits
Author SHA1 Message Date
Peyton DeNiro 79312a25bb test: add session mode E2E tests and fix close method signature
Add 5 E2E tests for session execution mode: 2 unit tests for code
generation structure and 3 runtime tests that exercise the full
ComfyUI pipeline (oneshot, session single run, session multi-run).

Fix close() method signature in generated session code to use
"bool | None = None" instead of "bool = True" for consistency
with the actual generated output.
2026-04-19 18:03:29 -05:00
Peyton DeNiro e844d508ac test: consolidate and fix session runtime tests 2026-04-19 16:08:15 -05:00
Peyton DeNiro 08ad731038 feat: add session execution mode with WorkflowSession and WorkflowSessionRuntime
Add session-mode code generation that produces a reusable WorkflowSession class
instead of a simple oneshot script. The session mode generates code with an
in-class run/close lifecycle for warm ComfyUI reuse.

Also refactors render.py to extract shared code sections into common methods,
reducing duplication between oneshot and session renderers.

Adds WorkflowSessionRuntime with cleanup policies (per_run, session, manual)
and reset_every_n_runs support, plus 72 new tests covering session rendering,
runtime session, and session export pipeline.
2026-04-19 12:06:46 -05:00
Peyton DeNiro 6cdcc235a0 update README to add additional troubleshooting steps for installation 2026-04-11 19:53:04 -05:00
Peyton DeNiro 9a17000417 Update version. v2.1.0 2026-03-29 19:06:52 -05:00
Peyton DeNiro fbc06463f7 Merge pull request #153 from pydn/runtime-parity-cache-memory-lifecycle
Add generated runtime cleanup after workflow execution
2026-03-29 19:02:51 -05:00
Peyton DeNiro 77c0bbec9b Guard ComfyUI cleanup teardown failures 2026-03-29 19:02:21 -05:00
Peyton DeNiro f9163f2375 Add generated runtime cleanup after workflow execution. Exported scripts now run best-effort ComfyUI cache cleanup in a finally block and support opt-in model unloading for embedded repeated-call use cases. Document the supported VRAM-related runtime flags and lock the behavior in focused exporter and runtime cleanup tests. 2026-03-29 18:18:37 -05:00
Peyton DeNiro d6c5b110ab Merge pull request #152 from pydn/cluster-2-compatibility-78-99-137
Clarify Python support and harden export/install compatibility
2026-03-29 17:55:19 -05:00
Peyton DeNiro 5d70efdc88 Align Cluster 2 compatibility boundaries
Declare Python 3.12 support, replace the hidden pip bootstrap with explicit uv sync guidance, and remove prompt() from the Web UI save flow. Add focused contract coverage for the metadata and frontend defaults.
2026-03-29 17:34:30 -05:00
Peyton DeNiro 228c3a076a Merge pull request #151 from pydn/generator-codegen-correctness
Make generator codegen regressions explicit and fix string seed rand
2026-03-29 17:13:10 -05:00
Peyton DeNiro 574d96369c Make generator codegen regressions explicit and fix string seed randomization 2026-03-29 17:09:30 -05:00
Peyton DeNiro ce23e90f59 Merge pull request #150 from pydn/exporter-readability-refactor
Exporter readability refactor
v2.0.0
2026-03-29 15:32:52 -05:00
Peyton DeNiro c1cf4e7585 version update. 2026-03-29 15:31:45 -05:00
Peyton DeNiro 42d0526661 Fix generated workflow torch import order
Move generated torch imports until after add_extra_model_paths runs so exported scripts do not trigger ComfyUI's early-torch warning during startup. Update export assertions and checked-in runtime generated fixtures to match the new main() ordering.
2026-03-29 15:15:52 -05:00
Peyton DeNiro 441dcfebdf Defer generated ComfyUI bootstrap until execution 2026-03-29 14:40:17 -05:00
Peyton DeNiro d751147ed9 Update frontend extension to avoid legacy ui.js import 2026-03-29 14:29:27 -05:00
Peyton DeNiro 9e7e474b05 Refactor the exporter into a package-backed module layout.
Split the previous monolithic implementation into focused modules for CLI handling, workflow loading, runtime bootstrap, load ordering, planning, rendering, and file I/O. Keep the public compatibility surface intact by preserving the legacy top-level wrapper while adding  as the documented entrypoint. This reduces cross-cutting coupling inside the exporter and makes the runtime/bootstrap behavior easier to evolve without carrying unrelated concerns in one file.
2026-03-29 14:09:24 -05:00
Peyton DeNiro 1630a1ab79 Strengthen test suite robustness 2026-03-29 14:08:18 -05:00
Peyton DeNiro 8b56c4971d Bump version to 1.3.2 2026-03-28 18:28:02 -05:00
Peyton DeNiro ced63d1a00 Merge pull request #149 from pydn/codex/runtime-e2e-validation
Add runtime E2E validation harness and fixtures
v1.3.2
2026-03-28 18:08:24 -05:00
Peyton DeNiro 4370a78728 Fix exporter metadata kwarg and seed sync handling 2026-03-28 17:27:03 -05:00
Peyton DeNiro 494f7cf79a Remove CLI frontend workflow metadata path 2026-03-28 17:07:59 -05:00
Peyton DeNiro 342e1b8749 Fix workflow metadata and subgraph export names 2026-03-28 16:58:47 -05:00
Peyton DeNiro 6a9593ee70 Trigger Codex review 2026-03-28 16:40:34 -05:00
Peyton DeNiro d87611c035 Fix runtime validation entrypoint and export test 2026-03-28 16:33:11 -05:00
Peyton DeNiro 893c76d6cc Remove PR_DESCRIPTION.md 2026-03-28 16:33:00 -05:00
Peyton DeNiro e71f7e207b Clarify runtime test model prerequisites 2026-03-28 16:27:43 -05:00
Peyton DeNiro 025e58a58e Document test commands and remove hard-coded runtime path 2026-03-28 16:22:12 -05:00
Peyton DeNiro 6cbc383415 remove .md 2026-03-28 16:12:49 -05:00
Peyton DeNiro d57b2167ca Remove tracked runtime spec docs from branch 2026-03-28 16:12:05 -05:00
Peyton DeNiro b0109aa90f Clarify runtime validation harness behavior 2026-03-28 16:09:13 -05:00
Peyton DeNiro 0598433783 Remove upstream smoke validation tier 2026-03-28 16:02:40 -05:00
Peyton DeNiro a97311dabe Add CLI support for frontend workflow metadata 2026-03-28 13:58:56 -05:00
Peyton DeNiro 68ae24ceac Use frontend workflow from graphToPrompt 2026-03-28 13:49:35 -05:00
Peyton DeNiro 1fa2db89e1 Preserve reimportable ComfyUI workflow metadata 2026-03-28 13:42:44 -05:00
Peyton DeNiro 3ffd985cf7 Fix runtime validation exporter edge cases 2026-03-28 13:33:08 -05:00
Peyton DeNiro 47e5bcc68a Add runtime E2E validation harness 2026-03-28 13:24:13 -05:00
Peyton DeNiro cb5917eeed Merge pull request #148 from pydn/codex/issue-143-upscale-model-loader
Fix upscale model loader export bootstrap
2026-03-28 13:10:12 -05:00
Peyton DeNiro 380e701132 Narrow runtime compatibility fix 2026-03-28 13:08:34 -05:00
Peyton DeNiro 557adae33e Fix upscale export runtime compatibility 2026-03-28 13:08:34 -05:00
Peyton DeNiro 72a87c31b3 Added clarity on extension placement requirements. 2026-03-28 13:08:34 -05:00
Peyton DeNiro e5dc94efe3 Update README intro 2026-03-28 13:08:34 -05:00
Peyton DeNiro 57eddcb76d Updated readme images. 2026-03-28 13:08:34 -05:00
Peyton DeNiro 2738113346 Refresh README for current setup and usage 2026-03-28 13:08:34 -05:00
Peyton DeNiro 77b98ad5e1 Fix upscale model loader export bootstrap 2026-03-28 13:08:34 -05:00
Peyton DeNiro 32d42bf472 Merge pull request #133 from xiaoxidashen/main
Fix comfyui_to_python_utils import error, Fix conflict between comfy/utils.py and utils,Fix not await for load extra nodes
2025-09-26 18:53:00 -05:00
Peyton DeNiro 281b8408c9 Merge pull request #132 from nuaimat/main
Fix "Save as Script" option not available in ComfyUI v0.3.50
2025-09-26 18:23:32 -05:00
chengxi b215c83b76 fix not await for load extra nodes 2025-09-07 14:33:48 +08:00
chengxi 76bc1c343e Fix conflict between comfy/utils.py and utils 2025-09-07 14:33:27 +08:00