Skip to content

desktop: fix .rstrip(".git") mangling node names ending in g/i/t/.#7

Open
PozzettiAndrea wants to merge 1 commit into
mainfrom
fix/desktop-rstrip-git-suffix
Open

desktop: fix .rstrip(".git") mangling node names ending in g/i/t/.#7
PozzettiAndrea wants to merge 1 commit into
mainfrom
fix/desktop-rstrip-git-suffix

Conversation

@PozzettiAndrea
Copy link
Copy Markdown
Owner

Summary

  • str.rstrip(".git") strips ANY trailing chars in {'.','g','i','t'}, not the literal .git suffix
  • For ComfyUI-UniRig.git it yields ComfyUI-UniR, so every downstream fetch (pyproject.toml, comfy-test.toml, workflows/) 404s
  • Result: --desktop runs report "no workflows ran" but exit rc=0 (a fake-pass)
  • Fix: str.removesuffix(".git") (Python 3.9+, project already pins >=3.10)

Symptom

Run 25641163916 — UniRig windows-desktop CPU. Log shows:
```
[desktop] node: ComfyUI-UniR (URL: .../ComfyUI-UniR, branch: main, ...)
[ 313s] ext: pyproject.toml fetch/parse failed: HTTP Error 404
[ 329s] ext: tile not found, ending capture
[ 330s] videos/system/driver.mp4 placed (no workflows ran)
```

Test plan

  • Tag a new comfy-test release, re-trigger UniRig windows-desktop run, confirm workflows execute
  • Verify other node names ending in {g,i,t,.} (none currently affected besides UniRig)

🤖 Generated with Claude Code

str.rstrip takes a set of chars to strip, not a suffix -- so
"ComfyUI-UniRig.git".rstrip(".git") yields "ComfyUI-UniR" (the trailing
"ig" gets eaten after .git). Every downstream fetch
(pyproject.toml, comfy-test.toml, workflows/) then 404s on the
mangled URL and the run reports "no workflows ran" with rc=0.

Use str.removesuffix(".git") so only the actual ".git" suffix is
trimmed. Manifested on UniRig (ends in 'g') -- would also break any
node ending in g/i/t/. (e.g. *-Lit, *-Edit, *-Pi).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant