Skip to content
Closed
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
6 changes: 6 additions & 0 deletions tests/test_issue2513_custom_provider_remote_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def fake_urlopen(req, timeout=10):
raise AssertionError(f"unexpected urlopen: {url}")

monkeypatch.setattr(urllib.request, "urlopen", fake_urlopen)
# This file pins the custom-provider catalog contract, not the separate
# async provider-catalog budget fallback. Force the synchronous rebuild
# path so a slow/loaded CI shard cannot blow the global 4s budget and
# serve the degraded fallback catalog, which drops the live-fetched
# models under test and leaves only the config-declared sticky model.
monkeypatch.setattr(config, "_LIVE_REBUILD_BUDGET_SECONDS", 0.0, raising=False)
monkeypatch.setattr(config, "_models_cache_path", tmp_path / "models_cache.json")
monkeypatch.setattr(config, "_get_auth_store_path", lambda: tmp_path / "auth.json")

Expand Down
Loading