Commit Graph

32 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
Dr.Lt.Data
44a3191be3 update DB 2025-08-05 07:16:04 +09:00
Dr.Lt.Data
2795d00d1e update DB 2025-06-24 23:39:31 +09:00
Dr.Lt.Data
821fded09d update DB 2025-04-12 17:26:41 +09:00
Dr.Lt.Data
2449ad5c69 update DB 2025-02-23 11:08:07 +09:00
Dr.Lt.Data
341e27f9a3 update DB 2025-02-02 11:07:09 +09:00
Dr.Lt.Data
145410eb93 update DB 2024-12-18 14:48:26 +09:00
Dr.Lt.Data
6f2f97ec06 update DB 2024-10-27 23:20:14 +09:00
Dr.Lt.Data
e9a5137889 update DB 2024-10-15 23:35:39 +09:00
Dr.Lt.Data
7e777c5460 update DB 2024-09-16 12:56:45 +09:00
Dr.Lt.Data
f5d656c87d update DB 2024-08-28 23:56:28 +09:00
Dr.Lt.Data
9bf918b103 update DB 2024-05-15 11:05:57 +09:00
Dr.Lt.Data
c1e23ae6a3 update DB 2024-04-22 21:07:30 +09:00
Dr.Lt.Data
ed3403ca1a update DB 2024-04-16 00:04:15 +09:00
Dr.Lt.Data
2d8f7ea9e2 update DB 2024-04-16 00:02:15 +09:00
Dr.Lt.Data
156d9e7fcc update DB 2024-04-14 14:59:39 +09:00
dr.lt.data
4837780fa3 update DB 2024-04-09 09:42:08 +09:00
Dr.Lt.Data
c10511c74a update DB 2024-04-09 00:38:50 +09:00
Dr.Lt.Data
4e35374214 update DB 2024-04-09 00:38:18 +09:00
Dr.Lt.Data
30d4d5378b update DB 2024-04-09 00:37:42 +09:00
Dr.Lt.Data
fb706ce867 update DB 2024-04-09 00:22:48 +09:00
Dr.Lt.Data
1ba6b197cc update DB 2024-04-06 23:16:21 +09:00
Dr.Lt.Data
c682651733 update DB 2024-02-29 19:40:00 +09:00
dr.lt.data
36bbfc6b8a update DB 2024-01-31 16:50:44 +09:00
dr.lt.data
6c58518c45 update DB 2024-01-03 09:44:30 +09:00
Dr.Lt.Data
dda65d9263 update DB 2023-12-24 20:08:56 +09:00
dr.lt.data
7890a28f69 update DB 2023-12-14 09:43:20 +09:00
Dr.Lt.Data
a59a6d06b0 update DB 2023-09-10 09:05:21 +09:00
Dr.Lt.Data
81f14477e3 update DB 2023-09-10 09:04:29 +09:00
dr.lt.data
cc6571aea6 update DB 2023-09-08 09:15:39 +09:00
dr.lt.data
50efb86eab update DB 2023-09-07 10:13:24 +09:00
Dr.Lt.Data
0898305f50 update DB 2023-09-07 10:01:12 +09:00