The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
ci: suppress pytest streaming output in CI (#36092)
Mason Daughertyfaadc1f3ce87
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.ymlindex da46550d9c..bc7ad2705d 100644--- a/.github/workflows/_test.yml+++ b/.github/workflows/_test.yml@@ -50,7 +50,7 @@ jobs:- name: "🧪 Run Core Unit Tests"shell: bashrun: |- make test+ make test PYTEST_EXTRA=-q- name: "🔍 Calculate Minimum Dependency Versions"working-directory: ${{ inputs.working-directory }}@@ -69,7 +69,7 @@ jobs:MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}run: |VIRTUAL_ENV=.venv uv pip install $MIN_VERSIONS- make tests+ make tests PYTEST_EXTRA=-qworking-directory: ${{ inputs.working-directory }}- name: "🧹 Verify Clean Working Directory"diff --git a/libs/core/Makefile b/libs/core/Makefileindex ebf42a1c91..4f0e1e2022 100644--- a/libs/core/Makefile+++ b/libs/core/Makefile@@ -5,6 +5,7 @@ all: help# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=.EXPORT_ALL_VARIABLES:UV_FROZEN = true@@ -16,7 +17,7 @@ test tests:-u LANGSMITH_API_KEY \-u LANGSMITH_TRACING \-u LANGCHAIN_PROJECT \- uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest -n auto $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:env \diff --git a/libs/langchain/Makefile b/libs/langchain/Makefileindex 814dc018f5..b1204179bf 100644--- a/libs/langchain/Makefile+++ b/libs/langchain/Makefile@@ -9,6 +9,7 @@ all: help# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=.EXPORT_ALL_VARIABLES:UV_FROZEN = true@@ -22,10 +23,10 @@ coverage:$(TEST_FILE)test tests:- uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest -n auto $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)extended_tests:- uv run --group test pytest --disable-socket --allow-unix-socket --only-extended tests/unit_tests+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket --only-extended tests/unit_teststest_watch:uv run --group test ptw --snapshot-update --now . -- -x --disable-socket --allow-unix-socket --disable-warnings tests/unit_testsdiff --git a/libs/langchain_v1/Makefile b/libs/langchain_v1/Makefileindex b455a27370..f0a1d68d26 100644--- a/libs/langchain_v1/Makefile+++ b/libs/langchain_v1/Makefile@@ -15,6 +15,7 @@ stop_services:# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=.EXPORT_ALL_VARIABLES:UV_FROZEN = true@@ -37,13 +38,13 @@ coverage_agents:--cov-report=html:htmlcov \test:- make start_services && LANGGRAPH_TEST_FAST=0 uv run --no-sync --active --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE) --cov-report term-missing:skip-covered --snapshot-update; \+ make start_services && LANGGRAPH_TEST_FAST=0 uv run --no-sync --active --group test pytest -n auto $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE) --cov-report term-missing:skip-covered --snapshot-update; \EXIT_CODE=$$?; \make stop_services; \exit $$EXIT_CODEtest_fast:- LANGGRAPH_TEST_FAST=1 uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE)+ LANGGRAPH_TEST_FAST=1 uv run --group test pytest -n auto $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)extended_tests:make start_services && LANGGRAPH_TEST_FAST=0 uv run --group test pytest --disable-socket --allow-unix-socket --only-extended tests/unit_tests; \diff --git a/libs/model-profiles/Makefile b/libs/model-profiles/Makefileindex 2acb87b5b7..9a09014d41 100644--- a/libs/model-profiles/Makefile+++ b/libs/model-profiles/Makefile@@ -39,12 +39,13 @@ refresh-profiles:# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/# unit tests are run with the --disable-socket flag to prevent network callstest tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest -n auto $(TEST_FILE)diff --git a/libs/model-profiles/uv.lock b/libs/model-profiles/uv.lockindex f418912b65..e9bf34bde8 100644--- a/libs/model-profiles/uv.lock+++ b/libs/model-profiles/uv.lock@@ -527,7 +527,7 @@ typing = [[[package]]name = "langchain-core"-version = "1.2.19"+version = "1.2.20"source = { editable = "../core" }dependencies = [{ name = "jsonpatch" },diff --git a/libs/partners/anthropic/Makefile b/libs/partners/anthropic/Makefileindex c0d0430006..56428235c7 100644--- a/libs/partners/anthropic/Makefile+++ b/libs/partners/anthropic/Makefile@@ -8,10 +8,11 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/test tests:- uv run --group test pytest -vvv --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest -vvv $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest -n auto -vvv --timeout 30 $(TEST_FILE)diff --git a/libs/partners/chroma/Makefile b/libs/partners/chroma/Makefileindex 2d87461d40..14eb48f624 100644--- a/libs/partners/chroma/Makefile+++ b/libs/partners/chroma/Makefile@@ -8,10 +8,11 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE = tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest $(TEST_FILE)diff --git a/libs/partners/deepseek/Makefile b/libs/partners/deepseek/Makefileindex 946a1aa462..908f2da362 100644--- a/libs/partners/deepseek/Makefile+++ b/libs/partners/deepseek/Makefile@@ -8,12 +8,13 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE = tests/integration_tests/# unit tests are run with the --disable-socket flag to prevent network callstest tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/exa/Makefile b/libs/partners/exa/Makefileindex 92c3768f99..ad85605b0a 100644--- a/libs/partners/exa/Makefile+++ b/libs/partners/exa/Makefile@@ -8,14 +8,15 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_tests: TEST_FILE=tests/integration_tests/test integration_tests:- uv run --group test --group test_integration pytest $(TEST_FILE)+ uv run --group test --group test_integration pytest $(PYTEST_EXTRA) $(TEST_FILE)tests:- uv run --group test pytest $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/fireworks/Makefile b/libs/partners/fireworks/Makefileindex 9138f3db4d..16d84d2af7 100644--- a/libs/partners/fireworks/Makefile+++ b/libs/partners/fireworks/Makefile@@ -8,10 +8,11 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE = tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest -n auto $(TEST_FILE)diff --git a/libs/partners/groq/Makefile b/libs/partners/groq/Makefileindex 65d122a60b..b2ee3e49ca 100644--- a/libs/partners/groq/Makefile+++ b/libs/partners/groq/Makefile@@ -8,11 +8,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest --retries 3 --retry-delay 1 $(TEST_FILE)diff --git a/libs/partners/huggingface/Makefile b/libs/partners/huggingface/Makefileindex 9942cd49f5..fcc48416c3 100644--- a/libs/partners/huggingface/Makefile+++ b/libs/partners/huggingface/Makefile@@ -8,11 +8,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest $(TEST_FILE)diff --git a/libs/partners/mistralai/Makefile b/libs/partners/mistralai/Makefileindex 1d2429b593..1dc8976ec7 100644--- a/libs/partners/mistralai/Makefile+++ b/libs/partners/mistralai/Makefile@@ -9,11 +9,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/INTEGRATION_TEST_FILE ?= tests/integration_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=$(INTEGRATION_TEST_FILE)test tests:- uv run --group test pytest $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/nomic/Makefile b/libs/partners/nomic/Makefileindex 933f11a024..14c3bc07ac 100644--- a/libs/partners/nomic/Makefile+++ b/libs/partners/nomic/Makefile@@ -8,14 +8,15 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_tests: TEST_FILE = tests/integration_tests/test integration_tests:- uv run --group test --group test_integration pytest $(TEST_FILE)+ uv run --group test --group test_integration pytest $(PYTEST_EXTRA) $(TEST_FILE)tests:- uv run --group test pytest $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/ollama/Makefile b/libs/partners/ollama/Makefileindex 6d9e4102db..f982c01235 100644--- a/libs/partners/ollama/Makefile+++ b/libs/partners/ollama/Makefile@@ -8,6 +8,7 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test: TEST_FILE = tests/integration_tests/# TODO(erick) configure ollama server to run in CI, in separate repo@@ -18,7 +19,7 @@ OLLAMA_REASONING_TEST_MODEL ?= deepseek-r1:1.5b# unit tests are run with the --disable-socket flag to prevent network callstest tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/openai/Makefile b/libs/partners/openai/Makefileindex edc47a305e..8f8df6b5dd 100644--- a/libs/partners/openai/Makefile+++ b/libs/partners/openai/Makefile@@ -8,6 +8,7 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/@@ -21,7 +22,7 @@ test tests:@if [ ! -f tiktoken_cache/fb374d419588a4632f3f557e76b4b70aebbca790 ]; then \curl -o tiktoken_cache/fb374d419588a4632f3f557e76b4b70aebbca790 https://openaipublic.blob.core.windows.net/encodings/o200k_base.tiktoken; \fi- TIKTOKEN_CACHE_DIR=tiktoken_cache uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ TIKTOKEN_CACHE_DIR=tiktoken_cache uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest -n auto $(TEST_FILE)diff --git a/libs/partners/openrouter/Makefile b/libs/partners/openrouter/Makefileindex 522f46d17b..b8f8f350a0 100644--- a/libs/partners/openrouter/Makefile+++ b/libs/partners/openrouter/Makefile@@ -8,12 +8,13 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE = tests/integration_tests/# unit tests are run with the --disable-socket flag to prevent network callstest tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/perplexity/Makefile b/libs/partners/perplexity/Makefileindex 31548969ba..bc3581a23b 100644--- a/libs/partners/perplexity/Makefile+++ b/libs/partners/perplexity/Makefile@@ -8,11 +8,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/partners/qdrant/Makefile b/libs/partners/qdrant/Makefileindex a3f876a995..3cd8c7989d 100644--- a/libs/partners/qdrant/Makefile+++ b/libs/partners/qdrant/Makefile@@ -8,11 +8,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE = tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest $(TEST_FILE)diff --git a/libs/partners/xai/Makefile b/libs/partners/xai/Makefileindex 71ed75e352..93729819ed 100644--- a/libs/partners/xai/Makefile+++ b/libs/partners/xai/Makefile@@ -8,11 +8,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=tests/integration_tests/test tests:- uv run --group test pytest --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)test_watch:uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)diff --git a/libs/standard-tests/Makefile b/libs/standard-tests/Makefileindex f394ef3170..96d5c456b0 100644--- a/libs/standard-tests/Makefile+++ b/libs/standard-tests/Makefile@@ -9,11 +9,12 @@ UV_FROZEN = true# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/INTEGRATION_TEST_FILE ?= tests/integration_tests/+PYTEST_EXTRA ?=integration_test integration_tests: TEST_FILE=$(INTEGRATION_TEST_FILE)test tests:- uv run --group test pytest $(TEST_FILE)+ uv run --group test pytest $(PYTEST_EXTRA) $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest $(TEST_FILE)diff --git a/libs/text-splitters/Makefile b/libs/text-splitters/Makefileindex 7ab273588d..747858b85d 100644--- a/libs/text-splitters/Makefile+++ b/libs/text-splitters/Makefile@@ -5,12 +5,13 @@ all: help# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/+PYTEST_EXTRA ?=.EXPORT_ALL_VARIABLES:UV_FROZEN = truetest tests:- uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE)+ uv run --group test pytest -n auto $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)integration_test integration_tests:uv run --group test --group test_integration pytest tests/integration_tests/