-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Add new fields to the config types #8507
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
Add new fields to the config types #8507
Conversation
LGTM |
6f97c6d
to
a52c665
Compare
Testing Existing Behavior ✔️
|
Testing New Behavior ❌
Not all supported fields seem to have been parsed:
|
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.
The PR adds four new fields to ProjectConfig
in comfy_config/types.py
:
supported_os
supported_accelerators
supported_comfyui_version
supported_comfyui_frontend_version
However, these fields aren't being populated because the PR is missing the necessary data transformation logic in config_parser.py
.
@coderfromthenorth93 Do we need to add the same parsing logic that was added in Comfy-Org/comfy-cli#279?
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.
✅ Comprehensive Testing Completed
I've thoroughly tested the PR implementation with full coverage of all new metadata fields and edge cases.
✅ Basic Functionality Test
Created comprehensive test node with all new fields:
classifiers = [
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Environment :: GPU :: NVIDIA CUDA",
"Environment :: GPU :: AMD ROCm",
"Environment :: GPU :: Apple Metal",
]
dependencies = ["comfyui-frontend-package>=1.21.0"]
[tool.comfy]
requires-comfyui = ">=0.3.0"
Results: All fields parsed correctly ✅
- OS classifiers:
['OS Independent', 'Microsoft :: Windows', 'POSIX :: Linux', 'MacOS']
- Accelerator classifiers:
['GPU :: NVIDIA CUDA', 'GPU :: AMD ROCm', 'GPU :: Apple Metal']
- ComfyUI version:
>=0.3.0
- Frontend version:
>=1.21.0
✅ Edge Cases & Error Handling (6/6 passed)
- Invalid OS classifiers: Returns empty list when any classifier is invalid ✅
- Invalid accelerator classifiers: Returns empty list when any classifier is invalid ✅
- No classifiers: Returns empty lists for both fields ✅
- No frontend dependency: Returns empty string ✅
- No ComfyUI version: Returns empty string ✅
- Mixed valid/invalid classifiers: Returns empty list (all-or-nothing validation) ✅
Implementation Status
✅ PR #8507 implementation is working correctly - all new metadata fields are properly parsed, validated, and populated according to the specifications from comfy-cli PR #279 and docs.comfy.org registry specifications.
No description provided.