Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"inputs": {
"requirements_sha256": "06013808500bdd0b62b916d46f4b7a308290f5c07567315faf967cfe9f7f5888",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "1f2350156ca95ae0ed398f20d94458135d6c9ac1fd4985419e1ea6873576e718",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"inputs": {
"requirements_sha256": "06013808500bdd0b62b916d46f4b7a308290f5c07567315faf967cfe9f7f5888",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "1bc8a0f417323c67420e71cf16b71e562c7db5842b50d4c5cd60efea8106141b",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"inputs": {
"requirements_sha256": "9a6c8aad1198407cf99b917428d559547ba2d8e500b7651fc6759d6e7612ae4c",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "4ad5b63580b4ea239d7e4d6a70d69baa86bd1887bba3b75317c64118856891b3",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"inputs": {
"requirements_sha256": "9a6c8aad1198407cf99b917428d559547ba2d8e500b7651fc6759d6e7612ae4c",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "4dc791149e865e5b390c94cb02a18ea8ebfa49799019cce62fcf3260c0ee86d3",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"inputs": {
"requirements_sha256": "943a74a3f4565e0b7b3bab2f87080526604d1e3923a39ed287d444630d33b94c",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "d067332de0de11f6b0f6f25b024bdc2a8c5f65e05b549dc275a450d5a269fc42",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
],
"inputs": {
"requirements_sha256": "943a74a3f4565e0b7b3bab2f87080526604d1e3923a39ed287d444630d33b94c",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "d97eba00131e49046d362c3f9569d160cec2ea7ee115f9a18cc6c136650e935c",
"lock_sha256": "714fdfe326b7e17f58399606d26f536225226471dce32cc2706cd0bcb70952d6",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a

[[packages]]
name = "av"
version = "19.0.1"
version = "18.0.0"
marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'arm64' and sys_platform == 'linux') or (platform_machine == 'armv7l' and sys_platform == 'linux')"
sdist = { url = "https://files.pythonhosted.org/packages/90/bc/a2a40e503250fe5d4174471911828f31658864eb69a8a7cb960c715e17b7/av-19.0.1.tar.gz", upload-time = 2026-10-03T01:48:28Z, size = 4274648, hashes = { sha256 = "08674930eaf1af78a3ed8f93d3ba49383323b3a867e84349d9c399e36f7497da" } }
wheels = [{ url = "https://files.pythonhosted.org/packages/10/4b/61f138fcf21e7bb50655ed21dd7fdc7a296baf72ea3c7ad8e89cb00b69c1/av-19.0.1-cp312-abi3-manylinux_2_28_aarch64.whl", upload-time = 2026-10-03T01:47:29Z, size = 32676941, hashes = { sha256 = "437d4c0d5a7d771f2c3af84cd28e6aac6e173851116c60b53e81dbf1eebe4eab" } }]
sdist = { url = "https://files.pythonhosted.org/packages/ae/a4/570a5a35c8638aba01e739925846c35fdd6b0756a15526766d0a4dd3b7df/av-18.0.0.tar.gz", upload-time = 2026-07-02T06:37:58Z, size = 4340222, hashes = { sha256 = "4ef7e72c3d3a872584a1215173b16e0226811037f40dcdbf75992631098df1ba" } }
wheels = [{ url = "https://files.pythonhosted.org/packages/84/74/6732f17b96dc23fd23b876b2805435855abdc8a3b397142be4e581165de8/av-18.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", upload-time = 2026-07-02T06:37:05Z, size = 33387843, hashes = { sha256 = "4d683b7747a0ba9222b8a5f81e41db5f796e7f64473454ec4fe2548e083c2fa0" } }]

[[packages]]
name = "blobfile"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"inputs": {
"requirements_sha256": "f9e0f7979fcd2920254e6e9a62bdd767d87ceea7794d7df2d9af2ece4e02a324",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "10452672afe0787b16f22684f42ac29392f53d8c5ecdadd67f30f8db7f774eaa",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"inputs": {
"requirements_sha256": "f9e0f7979fcd2920254e6e9a62bdd767d87ceea7794d7df2d9af2ece4e02a324",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "e8fce68efb124f1c2926b788436c9ad3b254c5142a8535b4a8d327b38439ac35",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"inputs": {
"requirements_sha256": "06013808500bdd0b62b916d46f4b7a308290f5c07567315faf967cfe9f7f5888",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "1f2350156ca95ae0ed398f20d94458135d6c9ac1fd4985419e1ea6873576e718",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"inputs": {
"requirements_sha256": "eba8b999eca8b70028b11ece44dd8da256f24fcc5716b4c89a057e0f035cfad4",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "601bea17f9dbb7317f1186b7ad8f2e80c23a500f9c48ce4b1cbafa83269421e5",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"inputs": {
"requirements_sha256": "f9474ed3192929caef755606cd3abca88363375c69f630e582ccc52bd745795e",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "190d0f37f69ab8e3baaa7c2d08bae52afde22eda1ff9d42dd72feb37138fe908",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"inputs": {
"requirements_sha256": "0db0ae5aea7cb739be3c1711b6fd219fe5e654283a3b0b7043e29733a8edb6d7",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "c792a5ec633f306dbca60e3cd53379282aae84ef021960e5aaf101b856503719",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"inputs": {
"requirements_sha256": "0db0ae5aea7cb739be3c1711b6fd219fe5e654283a3b0b7043e29733a8edb6d7",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "c792a5ec633f306dbca60e3cd53379282aae84ef021960e5aaf101b856503719",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"inputs": {
"requirements_sha256": "687af01a6fcb60cac60310c97162355e981781188602840f7cb7f01789222b50",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "5b2d53892ce0814a0719f063f84a8ccfb9b7ca727d4aa053845b02d7c6f99270",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"inputs": {
"requirements_sha256": "25831dec2002fa0748dde04a235e79ee88ac33ba885b02b7e5075f061011f8d2",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "2e66cf20cf5acf02935a069d2c06796a1e4789414b15e1f3a8758e0c0e2ca67c",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"inputs": {
"requirements_sha256": "16719ba49f177504ae160a1872b8d0c23e0a4b6d176ecad85c882977d27be9fe",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
"root_versions_sha256": "0c75653ad255191b3135e7beceae78a7e22d3bcba566b5dd98100aedc1dcabf7"
},
"lock_sha256": "6836c8086be926421d7ef2dd49e0b8293ac7a807f442ee7536225a35101811b7",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
Expand Down
3 changes: 2 additions & 1 deletion packages/sie_server/bundles/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ deps:
# kokoro (Kokoro-82M text-to-speech). The adapter carries the model code and
# its own out-of-lexicon fallback, so it needs misaki's English G2P only:
# misaki without extras, plus the English packages misaki.en imports.
# Mirrored in packages/sie_server/pyproject.toml.
misaki: '==0.9.4'
num2words: '>=0.5.14,<1'
# 3.8.16 and later need click>=8.2.1, above the root lock's click.
# 3.8.15 and later need click>=8.2.1, above the root lock's click.
spacy: '>=3.8,<3.8.16'
# misaki's English tagger. Without it misaki runs `spacy download` at load.
en-core-web-sm:
Expand Down
8 changes: 8 additions & 0 deletions packages/sie_server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ dependencies = [
# opencv-python request is suppressed via [tool.uv] override-dependencies
# in the root pyproject.toml.
"opencv-python-headless>=4,<5",
# Kokoro-82M text-to-speech adapter: misaki's English G2P without extras,
# plus the English packages misaki.en imports. Mirrors bundles/default.yaml
# `deps`. spaCy 3.8.15 and later require click>=8.2.1, above the root lock's
# click. misaki also loads the en_core_web_sm model, a URL wheel the bundle
# declares; without it misaki runs `spacy download` at load.
"misaki==0.9.4",
"num2words>=0.5.14,<1",
"spacy>=3.8,<3.8.16",
"loguru>=0.7,<1",
# SigLIP (Marqo/marqo-ecommerce-embeddings-B native open_clip loader)
"open-clip-torch>=2.24",
Expand Down
34 changes: 34 additions & 0 deletions packages/sie_server/tests/config/test_bundle_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

from __future__ import annotations

import tomllib
from pathlib import Path

import pytest
import yaml
from packaging.requirements import Requirement
from packaging.utils import canonicalize_name
from sie_sdk.bundle_utils import match_bundle_models
from sie_server.bundle_requirements import resolve_bundle_requirements
from sie_server.core.loader import load_model_config

SIE_SERVER_ROOT = Path(__file__).resolve().parents[2]
Expand Down Expand Up @@ -123,6 +127,36 @@ def test_bundle_and_model_dirs_are_non_empty() -> None:
assert sorted(MODELS_DIR.glob("*.yaml")), f"No model YAML files found in {MODELS_DIR}"


def test_default_bundle_packages_ship_with_the_server_distribution() -> None:
# The default bundle's `deps` mirror the server distribution. A package
# declared in the bundle alone is absent from any environment built from
# the server distribution's lock, and its adapter fails at load with
# ModuleNotFoundError. URL wheels stay bundle-only: a published
# distribution cannot carry a direct URL requirement.
bundle = yaml.safe_load((BUNDLES_DIR / "default.yaml").read_text())
requirements = [Requirement(line) for line in resolve_bundle_requirements(bundle["deps"])]
indexed = {canonicalize_name(item.name): item for item in requirements if item.url is None}
assert len(indexed) >= 10, "default bundle deps unexpectedly small"
assert any(item.url for item in requirements), "expected the URL wheels to be parsed as URL requirements"

project = tomllib.loads((SIE_SERVER_ROOT / "pyproject.toml").read_text())["project"]
declared = {canonicalize_name(Requirement(line).name) for line in project["dependencies"]}
locked = tomllib.loads((SIE_SERVER_ROOT.parents[1] / "uv.lock").read_text())["package"]
locked_versions: dict[str, set[str]] = {}
for package in locked:
locked_versions.setdefault(canonicalize_name(package["name"]), set()).add(package["version"])
assert declared, "server project.dependencies is empty"

assert sorted(indexed.keys() - declared) == [], "add these to sie-server project.dependencies"
assert sorted(indexed.keys() - locked_versions.keys()) == [], "the root uv.lock does not resolve these"
unsatisfied = {
name: sorted(locked_versions[name])
for name, item in indexed.items()
if not any(item.specifier.contains(version, prereleases=True) for version in locked_versions[name])
}
assert unsatisfied == {}, "the root lock's version is outside the default bundle's range"


def test_tensorrt_llm_bundle_pins_qualified_cuda_tile() -> None:
bundle = yaml.safe_load((BUNDLES_DIR / "tensorrt-llm.yaml").read_text()) or {}

Expand Down
Loading
Loading