Fix v24 manifest path

This commit is contained in:
firestar5683
2026-08-15 18:26:37 -05:00
parent d84a6a95c1
commit 22ee337762
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -182,7 +182,12 @@ class ModelManager:
@staticmethod
def _manifest_paths(manifest_version: str) -> tuple[str, ...]:
return (f"Models/model_names_{manifest_version}.json",)
# Manifests are kept at the root of the Models branch; retain the nested
# path for older resource checkouts that stored them beside artifacts.
return (
f"model_names_{manifest_version}.json",
f"Models/model_names_{manifest_version}.json",
)
def _set_model_param_keys(self, model_key: str | None = None, model_name: str | None = None, model_version: str | None = None):
if model_key is not None and model_key != "":
@@ -20,7 +20,10 @@ def test_v24_is_the_only_manifest_candidate():
def test_v24_manifest_is_loaded_from_models_checkout():
assert ModelManager._manifest_paths("v24") == ("Models/model_names_v24.json",)
assert ModelManager._manifest_paths("v24") == (
"model_names_v24.json",
"Models/model_names_v24.json",
)
def test_old_manifest_ids_resolve_to_v23_namespace():