test(cli): isolate model picker Ollama probes (Fixes #30604) - #30692
test(cli): isolate model picker Ollama probes (Fixes #30604)#30692deepujain wants to merge 1 commit into
Conversation
4b69711 to
76153e6
Compare
76153e6 to
f48769f
Compare
|
@teknium1 I cannot formally request review because GitHub says this account lacks RequestReviewsByLogin permission on this repo. This PR has been refreshed on current main and is mergeable. Focused validation: |
|
@teknium1 Follow-up after seven quiet days. This PR still has no visible checks, assignee, requested reviewer, or human review. GitHub reports it as mergeable. Focused validation from the refreshed branch: |
|
Thanks for isolating the custom-provider tests. The current-main premise is verified: The PR’s file-local autouse mock keeps those unit tests hermetic while preserving intentional discovery coverage: tests with live-discovery assertions replace Automated hermes-sweeper review. |
|
Merged via PR #67971 — your commit was cherry-picked onto current main with your authorship preserved in git log. You were the first submitter for this fix class (May 23); the narrower 3-test version (#62421) landed earlier today as #67921, and your broader autouse-fixture layer covering both test files landed on top. Thanks — and #30604 is closed by this. |
Summary
/modelsprobing by default in the affected custom-provider picker tests.Root cause
The failing fixtures use
api_key: "ollama"withhttp://localhost:11434/v1.list_authenticated_providers()treats that as permission to probe/models, so a developer's local Ollama server can replace the small fixture model list with the live local catalog.Why this layer
Runtime discovery for credentialed custom providers is intentional. These tests are checking grouping, slug recovery, and picker passthrough behavior, so the safest fix is to make the tests hermetic instead of changing production model-picker behavior.
Fixes #30604
Validation
env OLLAMA_API_KEY=ollama OLLAMA_BASE_URL=http://localhost:11434/v1 scripts/run_tests.sh tests/hermes_cli/test_model_switch_custom_providers.py tests/hermes_cli/test_list_picker_providers.pyPlatform tested: macOS local checkout.