Repository navigation
test(llm): resolve the NIM endpoint through the per-task API - #621
gloryfromca wants to merge 1 commit into
Conversation
test_nvidia_endpoint.py (#596) imports resolve_llm_config, which #595 replaced with resolve_llm_task + llm_client_config. Its PR checks ran on a base from before #595, so it merged green and main's unit suite now stops at collection. The test resolves the [llm] section the way a task that only inherits it does; what it asserts is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
The replacement follows the public per-task path used by the application: resolve_llm_task merges [llm] into the episode task, llm_client_config unwraps and validates it, and the unchanged assertions still verify the NIM model, key, and hosted/self-hosted base URLs at both config and SDK-client boundaries. The removed resolve_llm_config has no remaining public export, so retaining it in this test would only keep collection broken.
Covered the repository rules (CLAUDE.md and all applicable .claude/rules), the PR delta plus origin/main...HEAD, resolver/factory/public-export and bootstrap callers, the #595/#596 history, compatibility with inherited [llm] settings, architecture boundaries, and whether assertions were weakened (they were not).
Verification: focused NIM tests: 3 passed. Local full unit run: 4,155 passed, 4 skipped, with 10 unrelated NLTK failures because the fresh environment lacked the data downloaded by install-deps; after installing that declared prerequisite, the entire failed tokenizer file passed (13/13). All local lint gates passed. GitHub's complete unit, integration, Milvus, Windows, lint, package, link, title, and commit-message matrix is green.
|
Superseded by #624, which repaired the same test (test_nvidia_endpoint.py) and is on main. |
Summary
mainis red.tests/unit/test_component/test_llm/test_nvidia_endpoint.py, added in #596, importsresolve_llm_configfromeveros.component.llm. #595 replaced that function withresolve_llm_task+llm_client_config. #596's checks ran on a base from before #595, so the PR merged green, and sincee5778edbthe unit suite stops at collection:Every PR that CI now merges with
mainhits the same error (seen on #607).The test now resolves the
[llm]section the way a task that only inherits it does (llm_client_config(resolve_llm_task(settings, LLMTask.EPISODE))). Its assertions are unchanged: the NIM base URL, key and model reach theopenai.AsyncOpenAIclient, and a self-hosted base URL is kept. The NIM section indocs/configuration.mduses only the[llm] model / api_key / base_urlkeys, so it stays correct.Area
Verification
Checklist
main..envfiles, dependency folders, or generated output.Notes for Reviewers
main. Checks of first-time contributors only run after approval, so they are especially likely to be stale.By submitting this pull request, I agree that my contribution is licensed under
the Apache License 2.0.
🤖 Generated with Claude Code