You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a lot of duplicate tests that perform unnecessary requests and generations. We should refactor our tests to allow easier use of mocked inputs / outputs along with de-duplicating the amount of tests between the backends.
We should have a few types of tests:
Conformance tests- for each backend, we should ensure that we receive the expected response format for a given input (ie structured outputs, tool requests, etc...)
Backend unit tests- for each backend, we should mock these response values and ensure that our backends process these responses as expected
Std library tests- these resemble regular unit tests; if generation is required, we should mock that generation
We should also allow mocking to be disabled so that the full test suite can be run with real requests.
These changes should decouple our testing of the standard library / backend functionality from the tests that actually check LLM generation. This should allow us to actually run unit tests for backends during our regular test suite and only require special testing pipelines for the conformance tests.
From in person discussion with @nrfulton: We should have a CICD mode that mocks most if not all generation request. For full releases, we will run without mocks so that we can ensure API conformance.
Activity
nrfulton commentedon Jan 6, 2026
CICD=1due to multiple models getting loaded into memory. Likely from huggingface-related tests.avinash2692 commentedon Jan 6, 2026
I also have some testing cleanup code that I could add to this PR. This would entail:
qualitativeTests in CI withpytestmarkThis would explicitly be for the
CICD==1casejakelorocco commentedon Jan 7, 2026
From in person discussion with @nrfulton: We should have a CICD mode that mocks most if not all generation request. For full releases, we will run without mocks so that we can ensure API conformance.
model_ids.pyfor missing models, and add graceful handling when models don't exist #297