Commit Graph

11 Commits

Author SHA1 Message Date
Dr.Lt.Data
43647249cf refactor: remove package-level caching to support dynamic installation
Remove package-level caching in cnr_utils and node_package modules to enable
proper dynamic custom node installation and version switching without ComfyUI
server restarts.

Key Changes:
- Remove @lru_cache decorators from version-sensitive functions
- Remove cached_property from NodePackage for dynamic state updates
- Add comprehensive test suite with parallel execution support
- Implement version switching tests (CNR ↔ Nightly)
- Add case sensitivity integration tests
- Improve error handling and logging

API Priority Rules (manager_core.py:1801):
- Enabled-Priority: Show only enabled version when both exist
- CNR-Priority: Show only CNR when both CNR and Nightly are disabled
- Prevents duplicate package entries in /v2/customnode/installed API
- Cross-match using cnr_id and aux_id for CNR ↔ Nightly detection

Test Infrastructure:
- 8 test files with 59 comprehensive test cases
- Parallel test execution across 5 isolated environments
- Automated test scripts with environment setup
- Configurable timeout (60 minutes default)
- Support for both master and dr-support-pip-cm branches

Bug Fixes:
- Fix COMFYUI_CUSTOM_NODES_PATH environment variable export
- Resolve test fixture regression with module-level variables
- Fix import timing issues in test configuration
- Register pytest integration marker to eliminate warnings
- Fix POSIX compliance in shell scripts (((var++)) → $((var + 1)))

Documentation:
- CNR_VERSION_MANAGEMENT_DESIGN.md v1.0 → v1.1 with API priority rules
- Add test guides and execution documentation (TESTING_PROMPT.md)
- Add security-enhanced installation guide
- Create CLI migration guides and references
- Document package version management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 09:07:09 +09:00
Christian Byrne
dbf988fd5a
[docs] Add README for docs directory (#1855)
* [docs] Add README for docs directory

* [docs] Remove redundant sections from docs README
2025-05-21 21:45:17 +09:00
Dr.Lt.Data
cad1482b3f update doc 2025-02-25 22:27:21 +09:00
dishuostec
7b9292fbd4
support download via aria2 (#797) 2024-06-22 22:11:57 +09:00
Dr.Lt.Data
54c882b955 update README.md 2024-05-06 21:30:56 +09:00
Dr.Lt.Data
ade3dee5c6 cm-cli
- update help
- update doc
2024-04-27 13:22:22 +09:00
Dr.Lt.Data
b6e2ca42ae update cm-cli manual 2024-04-25 23:20:07 +09:00
Dr.Lt.Data
39405508fc improve: cm-cli message
feat: cm-cli - reinstall
2024-04-21 12:10:41 +09:00
Dr.Lt.Data
0873ec9590 update documentation 2024-04-21 11:34:10 +09:00
Dr.Lt.Data
7aef77b72a update DB 2023-09-28 12:47:09 +09:00
Dr.Lt.Data
1e18e69dc1 update info 2023-09-28 10:33:17 +09:00