Commit Graph

22 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
bymyself
2120a0aa79 [chore] Add dist/ to gitignore to exclude build artifacts 2025-06-13 19:40:27 -07:00
Christian Byrne
46a37907e6
add development guide (#1739) 2025-04-13 08:40:28 +09:00
Dr.Lt.Data
01ac9c895a Modify the structure to be installable via pip. 2025-03-19 22:15:53 +09:00
huchenlei
9d1ef85af8 Add NodePackage 2024-12-20 14:09:07 -08:00
Dr.Lt.Data
bff8dbee30 Merge branch 'main' into feat/cnr 2024-08-29 21:53:37 +09:00
Dr.Lt.Data
42f33a2dca update DB 2024-08-26 22:48:13 +09:00
Dr.Lt.Data
a6d20b0865 Merge branch 'main' into feat/cnr 2024-08-17 16:35:22 +09:00
Dr.Lt.Data
f896755a31 refactor: share features 2024-08-17 12:22:01 +09:00
Max Klein
f0299e07f9
added support for --no-deps option to node install and reinstall (#886)
* added support for `--no-deps` option to node install and reinstall

* post rebase fixup

* fixup help msg for --no-deps option
2024-07-27 01:52:07 +09:00
Dr.Lt.Data
c0c83ad977 update .gitignore 2024-04-12 22:30:09 +09:00
Liu Sida
abae9638ac
Add GitHub stats for custom nodes (#533)
* Add GitHub stats fetching feature
- Added PyGithub package to requirements.txt for GitHub API interaction
- Updated .gitignore to ignore github-stats-cache.json
- Produced github-stats.json for storing GitHub stats
- Modified scanner.py to include the GitHub stats fetching process

* Add sorting for 'GitHub Stars' and 'Last Update' columns

- Fetch 'GitHub Stars' and 'Last Update' data when getting the custom node list.
- Display 'GitHub Stars' and 'Last Update' information in the UI.
- Implement sorting functionality for these two columns, allowing users to sort both in descending and ascending order.

* fix: scanner - prevent stuck when exceed rate limit

---------

Co-authored-by: Dr.Lt.Data <dr.lt.data@gmail.com>
2024-04-02 20:56:09 +09:00
Dr.Lt.Data
8aada09e8f update DB
update .gitignore
2024-01-10 00:56:41 +09:00
Dr.Lt.Data
35dac5db65 .gitignore 2023-12-29 23:07:33 +09:00
dr.lt.data
61fd22415f improve: use channel.list instead of config.ini's channel_url.list
add: tutorial channel
2023-12-18 11:11:22 +09:00
Dr.Lt.Data
fa20899fa1 optimize: better badge
optimize: cache data mode
improve: robust data retrieve

update DB
2023-12-09 00:21:06 +09:00
Dr.Lt.Data
2f1ab1a327 update DB 2023-11-27 01:36:43 +09:00
Dr.Lt.Data
7fbe34f8db feat: snapshot 2023-11-04 17:17:55 +09:00
Dr.Lt.Data
91f8d07e3d modify .gitignore 2023-07-29 11:34:24 +09:00
Dr.Lt.Data
007093caa4 improve installer 2023-07-16 11:07:47 +09:00
Dr.Lt.Data
9894babccc add node scanner 2023-05-22 18:39:23 +09:00
Dr.Lt.Data
a0d143d1d0 prototype 2023-05-03 11:35:14 +09:00