feat: port various nit changes from wip-v0.4 (#32506)

Lots of work that wasn't directly related to core
improvements/messages/testing functionality
This commit is contained in:
Mason Daugherty
2025-08-11 15:09:08 -04:00
committed by GitHub
parent 7db9e60601
commit ee4c2510eb
63 changed files with 2213 additions and 2862 deletions

View File

@@ -8,10 +8,14 @@ UV_FROZEN = true
# Define a variable for the test file path.
TEST_FILE ?= tests/unit_tests/
integration_test: TEST_FILE = tests/integration_tests/
integration_test integration_tests: TEST_FILE = tests/integration_tests/
# note: leaving out integration_tests (with s) command to skip release testing for now
# TODO(erick) configure ollama server to run in CI, in separate repo
# Define variables for test model configuration
OLLAMA_TEST_MODEL ?= llama3.1
OLLAMA_REASONING_TEST_MODEL ?= deepseek-r1:1.5b
# unit tests are run with the --disable-socket flag to prevent network calls
test tests:
@@ -22,10 +26,9 @@ test_watch:
# integration tests are run without the --disable-socket flag to allow network calls
integration_test:
uv run --group test --group test_integration pytest $(TEST_FILE)
integration_test integration_tests:
OLLAMA_TEST_MODEL=$(OLLAMA_TEST_MODEL) OLLAMA_REASONING_TEST_MODEL=$(OLLAMA_REASONING_TEST_MODEL) uv run --group test --group test_integration pytest $(TEST_FILE)
# note: leaving out integration_tests (with s) command to skip release testing for now
# TODO(erick) configure ollama server to run in CI, in separate repo
######################
# LINTING AND FORMATTING
@@ -70,3 +73,6 @@ help:
@echo 'test - run unit tests'
@echo 'tests - run unit tests'
@echo 'test TEST_FILE=<test_file> - run all tests in file'
@echo 'integration_test - run integration tests'
@echo 'integration_test OLLAMA_TEST_MODEL=<model> - run integration tests with specific model'
@echo ' Example: make integration_test OLLAMA_TEST_MODEL=llama3.1'