mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[GH-ISSUE #1314] CLI should exit with non-zero return code when failed. #544
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#544
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @the729 on GitHub (Dec 9, 2024).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1314
The current behavior of cm-cli.py is to log error and continue, when it encounters any error during installation of custom nodes, i.e. git clone failed or pip install failed.
This behaviour is not optimal for using in docker build, as the container builder will think it has succeeded.
Can we add a flag to make it abort installation if any errors happened?
@ltdrdata commented on GitHub (Dec 11, 2024):
Ok. I'll add it.
@TimPietrusky commented on GitHub (May 6, 2025):
@ltdrdata any pointers into the right direction? would love to help out here, as this is super much needed not only for humans, but also for agents. right now when an agent builds the docker image, which is internally using the comfy-cli to install nodes, then we have to create a wrapper and parse the output, as the return code is not indicating that an error has occured
@polarathene commented on GitHub (May 13, 2025):
If you are referring to
comfy-cli, they might need to update that to opt-in to the--exit-on-failfeature ofcm-cli.pyI think. I haven't verified yet. Although the maintenance ofcomfy-cliseems to be lagging behind a bit from what I've seen it might take a while 🤷♂@ltdrdata commented on GitHub (May 13, 2025):
Related PR is merged already.
@polarathene commented on GitHub (May 13, 2025):
How would that be possible if https://github.com/Comfy-Org/ComfyUI-Manager/pull/1807 was only created a week ago?
comfy-clihas had no PRs merged since Feb 25.It seems
comfy-cliwill callcm-cli.pyviaexecute_cm_cli()which takes args as input, and then checks for additional args provided tocomfy-clito append tocm-cli.pyargs.Wouldn't that be where you'd add
--exit-on-fail? (which should then trigger this exception?)This is why I think
comfy-cliwon't catch/handle the failed command since--exit-on-failis opt-in,comfy-climust add support to use it?@ltdrdata commented on GitHub (May 13, 2025):
Oh, I misread the comment. You're right — it hasn't been applied to comfy-cli yet.
@TimPietrusky commented on GitHub (May 21, 2025):
this issue is not resolved yet, but will be with https://github.com/Comfy-Org/comfy-cli/issues/268