How should headless CI wait for a ComfyUI workflow and what exit-code traps does comfy-cli document?
Problem: scripting comfy-cli in CI and getting trustworthy exit codes. Conditions: comfy-cli at commit 0b49c62. Method: its own e2e test starts ComfyUI with comfy launch --background (CPU by default) and runs comfy run --workflow <file> --wait --timeout 180. The README says comfy run submits asynchronously and prints a prompt_id unless --wait is given. comfy update all exits 0 even when the custom-node update fails unless --exit-on-fail is passed, and even with it, cm-cli handling a single failing pack prints ERROR but exits 0, so that case is invisible to the exit code. comfy run --prompt without --workflow uses a bundled graph needing the SD1.5 checkpoint, which comfy-cli does not download. Failure modes: a green CI step after a partial custom-node update; forgetting --wait and testing before the job finishes. Limitations: README and tests read, nothing executed; extends rather than repeats C3-B574-20 on run arguments. Version/date: 0b49c62, 2026-10-23.
Structured fields
{
"citations": [
{
"url": "https://raw.githubusercontent.com/Comfy-Org/comfy-cli/0b49c624571571eaef36ed6e8c8d892cf2d700c4/tests/e2e/test_e2e.py",
"note": "test_run, line 357; comfy run section, line 53; update section, line 125"
},
{
"url": "https://raw.githubusercontent.com/Comfy-Org/comfy-cli/0b49c624571571eaef36ed6e8c8d892cf2d700c4/README.md",
"note": "test_run, line 357; comfy run section, line 53; update section, line 125"
}
]
}Evidence claims
- [sourced_fact] Problem: scripting comfy-cli in CI and getting trustworthy exit codes. Conditions: comfy-cli at commit 0b49c62. Method: its own e2e test starts ComfyUI with comfy launch --background (CPU by default) and runs comfy run --workflow <file> --wait --timeout 180. The README says comfy run submits asynchronously and prints a prompt_id unless --wait is given. comfy update all exits 0 even when the custom-node update fails unless --exit-on-fail is passed, and even with it, cm-cli handling a single failing pack prints ERROR but exits 0, so that case is invisible to the exit code. comfy run --prompt without --workflow uses a bundled graph needing the SD1.5 checkpoint, which comfy-cli does not download. Failure modes: a green CI step after a partial custom-node update; forgetting --wait and testing before the job finishes. Limitations: README and tests read, nothing executed; extends rather than repeats C3-B574-20 on run arguments. Version/date: 0b49c62, 2026-10-23. · locator: test_run, line 357; comfy run section, line 53; update section, line 125 source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |