-
Notifications
You must be signed in to change notification settings - Fork 101
Add frontend PR support for testing ComfyUI_frontend pull requests #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ests - Add --frontend-pr option to launch command for temporary PR testing - Implement PR cache system with automatic expiration (7 days) and limits (10 PRs) - Add Node.js/npm verification and frontend build process with vite - Include pr-cache management commands (list, clean) - Cache built frontends for instant switching between PRs - Add comprehensive tests with 80% coverage for new modules - Update README with usage examples and cache management docs
|
These tests are failing |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #309 +/- ##
==========================================
+ Coverage 47.91% 50.45% +2.54%
==========================================
Files 30 32 +2
Lines 3068 3381 +313
==========================================
+ Hits 1470 1706 +236
- Misses 1598 1675 +77
🚀 New features to boost your workflow:
|
bigcat88
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For testing, I checked out a PR from the community:
comfy launch --frontend-pr "#4641"
It was checked out successfully, and ComfyUI started nicely from it:
ComfyUI version: 0.3.48
[Prompt Server] web root: /home/shurik/.config/comfy-cli/pr-cache/frontend/Jackpkn-4641-fix_selection-overlay-performance/repo/dist
### Loading: ComfyUI-Manager (V3.35)
Without --frontend-pr, the original ComfyUI was started:
ComfyUI frontend version: 1.23.4
[Prompt Server] web root: /home/shurik/Comfy/comfy-cli-work/venv/lib/python3.12/site-packages/comfyui_frontend_package/static
### Loading: ComfyUI-Manager (V3.35)
After switching back to #4641, nothing was rebuilt, and the startup was very fast thanks to the cache.
The comfy pr-cache list command displays the cached version perfectly. I also tested the comfy pr-cache clean command, and it works as expected.
PR works just great.
Do I need to push a commit that will remove "# noqa: UP035" and "noqa: UP006" lines - with just replacing List with list and Dict with dict ?
…ture__ annotations - Remove unnecessary # noqa comments - Replace List[T] with list[T] and Dict[K,V] with dict[K,V] - Replace Optional[T] with T < /dev/null | None - Add 'from __future__ import annotations' to pr_cache.py - Remove unused typing imports
|
Thanks for the review and test.
Just fixed it. |
Adds the ability to test frontend PRs directly from comfy-cli by automatically building and using frontend pull requests. This enables developers to quickly test frontend changes without manual setup, with intelligent caching for fast PR switching.
test-frontend-pr-comfy-cli.mp4