test(discovery): fix bootstrap-selector test left red by #941 - #944
test(discovery): fix bootstrap-selector test left red by #941#944seonghobae wants to merge 1 commit into
Conversation
…removal #941 removed _provider_family() (nvidia_nim/nvidia_nim_sub collapsing) across model_discovery.py/provider_bootstrap.py/provider_catalog_bootstrap.py but its own test updates didn't touch this file, leaving test_bootstrap_selector_treats_nim_primary_and_sub_as_one_outage_domain asserting the now-removed collapsing behavior -- currently red on main. Updated to assert the correct independent-provider behavior: two distinct KV credentials are never assumed to share fate. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kj32ABZLZ2a6TPTyvYrRkg
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Generated by Claude Code |
|
Superseded by #945 (merged Generated by Claude Code |
Why
maincurrently has one failing test. #941 ("fix(discovery): keep credential catalogs independent", merged42da1d5) removed_provider_family()— the heuristic that collapsednvidia_nim/nvidia_nim_subinto one "outage domain" — acrossmodel_discovery.py,provider_bootstrap.py, andprovider_catalog_bootstrap.py, correctly updating the tests in those three areas. It didn't touchtests/test_discovery_bootstrap_selection.py, which has its own separate test asserting the old collapsing behavior viaselect_bootstrap_discovered_agents:Confirmed this is red on unchanged
origin/main(not introduced by any other branch).What changed
Updated the one test to assert the now-correct behavior:
nvidia_nimandnvidia_nim_subare independent KV credential boundaries, so cheapest-first bootstrap selection admits both before a pricier, unrelated provider — matching the exact pattern #941 already applied to the equivalent tests intest_provider_bootstrap.pyandtest_provider_catalog_bootstrap.py.Verification
python -m pytest tests/test_discovery_bootstrap_selection.py tests/test_model_discovery.py tests/test_model_discovery_boundaries.py tests/test_provider_bootstrap.py tests/test_provider_bootstrap_boundaries.py tests/test_provider_catalog_bootstrap.py tests/test_provider_catalog_store.py -q: 182 passed.interrogate tests/test_discovery_bootstrap_selection.py: 100%.Test-only change; no production code touched.
Generated by Claude Code