Skip to content

test(llm): resolve the NIM endpoint through the per-task API - #621

Closed
gloryfromca wants to merge 1 commit into
mainfrom
test/nvidia-endpoint-per-task-api
Closed

gloryfromca wants to merge 1 commit into
mainfrom
test/nvidia-endpoint-per-task-api

Conversation

@gloryfromca

Copy link
Copy Markdown
Member

Summary

main is red. tests/unit/test_component/test_llm/test_nvidia_endpoint.py, added in #596, imports resolve_llm_config from everos.component.llm. #595 replaced that function with resolve_llm_task + llm_client_config. #596's checks ran on a base from before #595, so the PR merged green, and since e5778edb the unit suite stops at collection:

ImportError: cannot import name 'resolve_llm_config' from 'everos.component.llm'

Every PR that CI now merges with main hits 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 the openai.AsyncOpenAI client, and a self-hosted base URL is kept. The NIM section in docs/configuration.md uses only the [llm] model / api_key / base_url keys, so it stays correct.

Area

  • Architecture method
  • Benchmark
  • Use case
  • Documentation
  • Developer experience
  • CI, build, or release

Verification

on main e5778edb:   pytest tests/unit  -> ERROR collecting test_nvidia_endpoint.py (ImportError)
this branch:        test_nvidia_endpoint.py: 3 passed
                    pytest --collect-only tests/unit tests/integration: 4409/4416 collected (7 deselected), no errors
                    ruff check / format: clean

Checklist

  • I kept the change scoped to the relevant area.
  • I am opening this from a separate branch, not pushing directly to main.
  • I updated docs, examples, or setup notes when behavior changed.
  • I added or updated tests when the change affects behavior.
  • I did not commit secrets, .env files, dependency folders, or generated output.
  • Active relative links in Markdown files resolve.

Notes for Reviewers

  • A PR whose checks last ran before a refactor landed can merge green and still break 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

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 gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gloryfromca

Copy link
Copy Markdown
Member Author

Superseded by #624, which repaired the same test (test_nvidia_endpoint.py) and is on main.

@gloryfromca
gloryfromca deleted the test/nvidia-endpoint-per-task-api branch November 23, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant