Repository navigation
Conversation
|
Confirmed the fixtures in studio/backend/tests/test_sd_cpp_install.py hard-code sd-cli while _binary_names() returns sd-cli.exe on Windows, and deriving the member names from it is the right fix. Will get this reviewed. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Updated the branch to pick up the Workflows need approval again since the merge commit reset them. |
|
Thanks! This fixes the Windows-only failures in |
Fixes #9607.
The fixtures in
test_sd_cpp_install.pybuild synthetic archives with a member literally namedsd-cli. On Windows_binary_names()returns("sd-cli.exe", "sd-server.exe"), soinstall()correctly refuses an archive that supplied nosd-cli.exe. The product code is right, the fixtures were wrong.studio/install_sd_cpp_prebuilt.pyis untouched.Member names and their assertions now derive from
_binary_names(), following the_CLIpattern already at line 411 and the suffix pattern already used in the accelerator swap tests.Measured on Windows 11, Python 3.11.9, at 4df68a4:
18 tests fixed, and no
contained no sd-cli binaryfailures remain in the file. Comparing the sorted failure sets, nothing moved into the failing set: the after-set is a strict subset of the before-set, so there are no regressions and no accidental fixes outside the name family.My absolute counts differ from the ones in the issue because I ran without the studio venv, which turns some of your skips into failures. The set comparison is unaffected. The cudart 404 assertions, the regex assertion and the OSError are still failing and are deliberately out of scope here, as is the question of whether a Windows CI leg should exist for this file.