Skip to content

fix(server): declare the Kokoro-82M runtime packages in the server manifest - #1066

Merged
ShaiShmuel merged 3 commits into
mainfrom
fix/kokoro-server-manifest
Nov 30, 2026
Merged

ShaiShmuel merged 3 commits into
mainfrom
fix/kokoro-server-manifest

Conversation

@ShaiShmuel

@ShaiShmuel ShaiShmuel commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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.toml did not. An environment built from the server distribution's lock therefore lacked them, and the adapter failed at load with ModuleNotFoundError. The official images were not affected, because they install the bundle locks.

What changed

  • Declare the three packages in project.dependencies with 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.
  • Recompile the 16 saved bundle locks with their recorded cutoffs, because the root package set they bind changed. 15 are byte-identical apart from the manifest's root hash. cpu-sglang-arm64 moves 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.
  • Add a test: every non-URL package in default.yaml deps must be a direct sie-server requirement and resolve in the root lock within the bundle's range. It fails on main with ['misaki', 'num2words', 'spacy'].
  • Correct a comment: spaCy 3.8.15, not 3.8.16, is the first release that needs a newer click than the root lock has. The bound is unchanged.

en_core_web_sm stays 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

Check Result
mise run lint, mise run typecheck pass
uv lock --check pass
python tools/ci/bundle_lock.py check (16 targets) pass
test_bundle_image_resolution.py with SIE_RUN_IMAGE_RESOLUTION=1 19 passed
mise run test 21062 passed, 747 skipped
check_public_tree.py pass

A fresh uv sync --frozen --package sie-server --no-dev environment imports misaki, misaki.en, spaCy and num2words (misaki 0.9.4, spaCy 3.8.14).

Summary by CodeRabbit

  • New Features
    • Added dependencies needed for the Kokoro-82M text-to-speech adapter.
  • Bug Fixes
    • Updated dependency compatibility guidance for Kokoro and refreshed bundle metadata. The ARM64 SGLang bundle now uses av 18.0.0.
  • Tests
    • Added checks to verify that default bundle dependencies are declared and covered by compatible locked versions.

…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.
@ShaiShmuel
ShaiShmuel requested a review from a team as a code owner November 30, 2026 16:52
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds Kokoro adapter dependencies to the server project, updates the default bundle dependency comment, and adds a test for requirement coverage. Bundle manifests receive updated root-version hashes, and the CPU SGLang ARM64 lock changes its av version.

Changes: Bundle dependency alignment

Layer / File(s) Summary
Kokoro dependency contract
packages/sie_server/pyproject.toml, packages/sie_server/bundles/default.yaml, packages/sie_server/tests/config/test_bundle_coverage.py
The server project adds misaki==0.9.4, num2words>=0.5.14,<1, and spacy>=3.8,<3.8.16. The default bundle comment changes its spaCy version note. A test checks named bundle requirements against project dependencies and the root lockfile.
Bundle lock refresh
packages/sie_server/bundle-locks/*/manifest.json, packages/sie_server/bundle-locks/cpu-sglang-arm64/pylock.toml
The bundle manifests have updated root_versions_sha256 values. The CPU SGLang ARM64 lock changes av from 19.0.1 to 18.0.0 and updates its distribution metadata and hashes.

Possibly related PRs

  • superlinked/sie#886: Defines the manifest digest contract used by the updated bundle manifests.
  • superlinked/sie#1063: Changes the Kokoro dependency set, including the misaki pin referenced by this change.
  • superlinked/sie#1060: Adds the Kokoro adapter and its default-bundle dependencies, which this change declares in the server project.

Suggested reviewers: svonava, krisztian-gajdar

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 9fd11 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: declaring the Kokoro-82M runtime packages (misaki, num2words, spaCy) as direct sie-server dependencies. The raw summary shows pyproject.toml adding these as base depen…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: declaring the Kokoro-82M runtime packages (misaki, num2words, spaCy) as direct sie-server dependencies. The raw summary shows pyproject.toml adding these as base dependencies, and the PR objectives describe the same goal. The 'fix(server):' prefix is a conventional-commit type and scope, which is acceptable. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 538c420d-f5d6-4d8a-8769-59cd47d2726e
Commits

Reviewing files that changed from the base of the PR and between bf80a7c and 9fd11d8.

Files ignored due to path filters: 1

  • uv.lock is excluded by !**/*.lock
Files selected for processing: 20

  • packages/sie_server/bundle-locks/cpu-ctranslate2-amd64/manifest.json
  • packages/sie_server/bundle-locks/cpu-ctranslate2-arm64/manifest.json
  • packages/sie_server/bundle-locks/cpu-default-amd64/manifest.json
  • packages/sie_server/bundle-locks/cpu-default-arm64/manifest.json
  • packages/sie_server/bundle-locks/cpu-sglang-amd64/manifest.json
  • packages/sie_server/bundle-locks/cpu-sglang-arm64/manifest.json
  • packages/sie_server/bundle-locks/cpu-sglang-arm64/pylock.toml
  • packages/sie_server/bundle-locks/cpu-transformers5-amd64/manifest.json
  • packages/sie_server/bundle-locks/cpu-transformers5-arm64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-ctranslate2-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-default-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-sglang-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-sglang-embedding-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-sglang-vision-extract-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda12-transformers5-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda13-sglang-cu130-amd64/manifest.json
  • packages/sie_server/bundle-locks/cuda13-tensorrt-llm-amd64/manifest.json
  • packages/sie_server/bundles/default.yaml
  • packages/sie_server/pyproject.toml
  • packages/sie_server/tests/config/test_bundle_coverage.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@ShaiShmuel
ShaiShmuel added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 1fc5e3f Nov 30, 2026
52 checks passed
@ShaiShmuel
ShaiShmuel deleted the fix/kokoro-server-manifest branch November 30, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant