Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test(models): skip the library age check when ollama.com answers 5xx (#281)

Ruben Lütke0d6aecdde92b
diff --git a/tests/integration/test_ollama_catalog_is_current.py b/tests/integration/test_ollama_catalog_is_current.py
index e6dfc3249f..4fc6866332 100644
--- a/tests/integration/test_ollama_catalog_is_current.py
+++ b/tests/integration/test_ollama_catalog_is_current.py
@@ -136,6 +136,9 @@ def test_runtime_default_is_not_a_year_old(model_id, registry) -> None:
def _assert_model_is_current(model_id: str, registry: httpx.Client) -> None:
name, _, requested_tag = model_id.partition(":")
response = registry.get(f"https://ollama.com/library/{name}/tags")
+ if response.status_code >= 500:
+ # An ollama.com outage says nothing about our defaults; a 404 still fails.
+ pytest.skip(f"ollama.com answered {response.status_code} for {name}")
assert response.status_code == 200
tags = parse_tags_html(response.text, name)
tag = requested_tag or "latest"