Repository navigation
fix(server): declare the Kokoro-82M runtime packages in the server manifest - #1066
Conversation
…nifest The default bundle declares misaki, num2words and spaCy for the Kokoro-82M text-to-speech adapter, but the server distribution did not. An environment built from the server distribution's lock therefore lacked them, and the adapter failed at load with ModuleNotFoundError. Declare them in project.dependencies with the bundle's ranges. The root lock gains only the new closure, at the versions the default bundle locks already pin (misaki 0.9.4, spaCy 3.8.14, thinc 8.3.13, ...); no existing package moves. Correct the spaCy bound comment: 3.8.15 is the first release that requires click>=8.2.1, above the root lock's click 8.1.8.
The root lock now resolves misaki, num2words, spaCy and their closure, which changes the third-party root versions every saved bundle lock binds. Recompile all 16 targets with uv 0.9.28 and the cutoffs already recorded in their manifests (--exclude-newer 2026-10-18T00:00:00Z, --root-exclude-newer 2026-11-06T20:00:00Z). 15 locks are byte-identical; only their root_versions_sha256 changes. The default bundle locks already pinned the same versions the root lock now resolves. cpu-sglang-arm64 moves av from 19.0.1 to 18.0.0. PyPI has since yanked av 19.0.0 and 19.0.1 (double free when decoding audio with custom channel layouts); the fixed 19.0.2 was published after the recorded cutoff, so 18.0.0 is the newest release the cutoff admits.
Every default-bundle package that is not installed from a URL must be a direct requirement of sie-server and resolve in the root lock at a version inside the bundle's range. A package declared in the bundle alone is absent from any environment built from the server distribution's lock.
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Medium Merge Risk:
|
Follow-up to #1060 and #1063.
The default bundle declares misaki, num2words and spaCy for the Kokoro-82M text-to-speech adapter, but
packages/sie_server/pyproject.tomldid not. An environment built from the server distribution's lock therefore lacked them, and the adapter failed at load withModuleNotFoundError. The official images were not affected, because they install the bundle locks.What changed
project.dependencieswith the bundle's ranges. The root lock gains only their closure (19 packages), at the versions the default bundle locks already pin. No existing package moves.cpu-sglang-arm64moves av 19.0.1 → 18.0.0: PyPI yanked 19.0.0 and 19.0.1, and 19.0.2 is newer than the recorded cutoff.default.yamldepsmust be a directsie-serverrequirement and resolve in the root lock within the bundle's range. It fails onmainwith['misaki', 'num2words', 'spacy'].en_core_web_smstays bundle-only: a published distribution cannot carry a direct URL requirement. An environment built from the server distribution alone must install that wheel separately, or misaki downloads it at load.Because the image base environment is installed from the server manifest, every bundle's base image now also carries the spaCy closure, as it does for the other mirrored default-bundle packages. The size increase was not measured.
How it was tested
mise run lint,mise run typecheckuv lock --checkpython tools/ci/bundle_lock.py check(16 targets)test_bundle_image_resolution.pywithSIE_RUN_IMAGE_RESOLUTION=1mise run testcheck_public_tree.pyA fresh
uv sync --frozen --package sie-server --no-devenvironment imports misaki,misaki.en, spaCy and num2words (misaki 0.9.4, spaCy 3.8.14).Summary by CodeRabbit
av18.0.0.