Check Update in the legacy Custom Nodes Manager fetched every git nodepack inside GET /v2/customnode/getlist. The server answered nothing else until the last fetch had ended. The ComfyUI frontend waits 60 s for the answer to a request, so with many git nodepacks the page showed "Failed to get custom node list." (#3574). POST /v2/customnode/check_update of the legacy server now starts the check in a thread of its own and answers at once. The check fetches the enabled git nodepacks of the list and reports by the cm-check-update event: the number of fetches that are done, and at the end the nodepacks that have an update. The page shows that progress, then loads the list and marks them. A check that is asked for while one runs starts no second one: the nodepacks of its list that the running check does not have are added to that check. A request carries a ui_id that the page chooses, the end of a check names the ui_id of every request that it answers, and the page waits for the end that names its own. A check that fails tells so to the pages that wait for it. When the connection to the server comes back during a check, as after a restart of the server, the events of the check are lost, and the page asks for the check again. A task of the queue that is taken while a check runs waits for the check to end. So a task that is started during a check, such as Update All, runs after it as before, and the two do not work on one repository at the same time. A model download and an update of ComfyUI do not touch the repositories of the nodepacks, and do not wait. GET /v2/customnode/getlist no longer fetches, with or without skip_update. GET /v2/customnode/fetch_updates of the legacy server fetched inside the request in the same way and has no caller, and answers 410 as that of the new server does. The check found the folder of a nodepack by the id of its row in the list. A git nodepack that the registry does not know has none, or one that is not its repository name, so it was left out. The folder is now found by the key of the row, and every enabled git nodepack of the list is fetched. git_repo_update_check_with of the legacy core is left with the check as its one caller. Its update path, which nothing called, is removed, and it fetches and checks only. With that path goes a defect on Windows: a check that found an update put the install script of the nodepack down to run at the next start, though nothing had been updated.
Playwright E2E Tests — Legacy Manager UI
Browser-based E2E tests for the ComfyUI-Manager legacy UI.
Prerequisites
- E2E environment built via
python tests/e2e/scripts/setup_e2e_env.py - Playwright runner and Chromium (from the repository root):
npm install --no-save --package-lock=false @playwright/test@1.59.1, thennpx playwright install chromium. - ComfyUI running with legacy UI enabled:
E2E_ROOT=/tmp/e2e_full_test
PORT=8199
PYTHONPATH="$PWD" $E2E_ROOT/venv/bin/python $E2E_ROOT/comfyui/main.py \
--listen 127.0.0.1 --port $PORT \
--enable-manager --enable-manager-legacy-ui \
--cpu
Running Tests
Run from the repository root. XSS fixtures execute the checkout's Python renderer
using python3; set PYTHON=/path/to/python to select another interpreter.
# With server already running:
PORT=8199 npx playwright test
# Single file:
PORT=8199 npx playwright test tests/playwright/legacy-ui-manager-menu.spec.ts
# Headed (visible browser):
PORT=8199 npx playwright test --headed
# Debug mode:
PORT=8199 npx playwright test --debug
Test Files
| File | Scenarios |
|---|---|
legacy-ui-manager-menu.spec.ts |
Menu dialog rendering, settings dropdowns, API round-trip |
legacy-ui-custom-nodes.spec.ts |
Node list grid, filter, search, footer buttons |
legacy-ui-model-manager.spec.ts |
Model list grid, filter, search |
legacy-ui-snapshot.spec.ts |
Snapshot list, save, remove, failed restore and remove |
legacy-ui-navigation.spec.ts |
Dialog open/close, nested navigation, no duplicates |
custom-nodes-xss.spec.ts |
Node metadata, node preview, Markdown, links, errors, search highlighting |
model-manager-xss.spec.ts |
Model metadata, links, errors, search highlighting |
legacy-message-errors.spec.ts |
Batch rejection IDs, batch completion, name readability, DOM colors, lookup errors |
legacy-ui-node-fixer.spec.ts |
"Fix node (recreate)" context-menu entry: one node left, links rewired, numeric and string node ids, inside a subgraph |