* fix: a default Windows clone keeps pinned files byte for byte; LoRA test no longer depends on TEMP (#636) Git for Windows converts text files to CRLF on checkout by default, so a fresh clone failed npm run --prefix tools/vendor check with Viewer.js drift. .gitattributes now marks the pinned Viewer.js, Toolkit and concept stylesheet files as never converted, and a test holds that for every tracked file under them. .gitattributes stays out of the Registry package. test_preview_writes_nothing_and_makes_no_requests expected the full settings path, which only holds when the temp folder is outside the home folder. On Windows %TEMP% is under the profile, so the review showed ~\... and the test failed. It now pins the home folder beside the temp root. * fix(tests): the Built-in instructions test reads Python source with either line ending (#636) In a default Windows clone py/tagging_defaults.py is checked out with CRLF, so the test's search for the closing paren missed and JSON.parse failed on a carriage return: 1453 of 1454 frontend tests passed. The test now normalizes CRLF before it slices the source. * fix(tests): two more Windows machine failures: killed test servers, nearby ComfyUI (#636) On a Windows machine with a virtual environment, the tests that start tests/browser/server.py failed their cleanup with WinError 32 on the server's log file, 3 of 3 runs. The venv's python.exe is a launcher that runs the real interpreter as a child; killing the launcher returns while Windows is still ending that child. The temp folder is now removed by remove_when_released, which waits until the files are released, up to 30 s. CI never saw it: its Windows job runs a plain interpreter. The diagnostics tests that expect no output folder ran in the temp root, so the fallback's ../../ComfyUI/output could reach a real ComfyUI next to it. They now run two folders deep inside the temp folder. * docs(testing): what a Windows development machine needs for the suite (#636) * fix(tests): one import style in test_process_cleanup; the line-ending test ignores GIT_* (#636) Code quality flagged unittest imported both ways. The line-ending test shells out to git, which inside the pre-push hook would follow the exported GIT_DIR; it now runs git without GIT_* variables, proved with GIT_DIR and GIT_INDEX_FILE pointing at a decoy repository that stays untouched.
8 lines
357 B
Plaintext
8 lines
357 B
Plaintext
# Pinned files are compared byte for byte with their recorded hashes
|
|
# (npm run --prefix tools/vendor check). Git must never convert their line
|
|
# endings, which Git for Windows does by default (core.autocrlf=true, #636).
|
|
/web/lib/viewerjs/** -text
|
|
/web/js/shared/toolkit/** -text
|
|
/web/js/workspace/concept.css -text
|
|
/docs/concepts/workspace/style.css -text
|