Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

ci(integration): run MCP on large machines and drop the full setup from fan-in jobs (#46034)

devin-ai-integration[bot]c4bd2027e92f
diff --git a/.circleci/config.yml b/.circleci/config.yml
index ad9dcfd559c..90bab08235a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1295,7 +1295,7 @@ jobs:
echo "export MCP_TEST_PEER_PYTHON=$PWD/.venv-mcp-peer/bin/python" >> "$BASH_ENV"
- start_postgres:
image: postgres:16@sha256:e17e86066e5ef83e0952a9347f5c792b7ece00972e2aa787a6986f471b3dd3d5
- server_args: "-c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c pg_stat_statements.max=20000"
+ server_args: "-c max_connections=300 -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c pg_stat_statements.max=20000"
- start_redis
- run:
name: Run owned integration contracts
@@ -1348,12 +1348,27 @@ jobs:
default: standard
shards:
type: integer
- machine:
- image: ubuntu-2204:2024.04.1
- resource_class: medium
+ docker:
+ - image: cimg/python:3.12@sha256:9c796c23c84e84a66a964acb508d39dc5433c81a47e07efd56dccbbc2427e07c
+ auth:
+ username: ${DOCKERHUB_USERNAME}
+ password: ${DOCKERHUB_PASSWORD}
+ resource_class: small
working_directory: ~/project
+ environment:
+ UV_PYTHON_DOWNLOADS: never
steps:
- - setup_litellm_test_deps
+ - checkout
+ - install_uv
+ - run:
+ name: Install the locked shard verifier and coverage dependencies
+ command: |
+ uv export --frozen --all-groups --all-extras --no-emit-project --no-emit-workspace --no-header --no-annotate \
+ | awk '/^[^ ]/ { keep = $0 ~ /^(annotated-types|coverage|pydantic|pydantic-core|typing-extensions|typing-inspection)==/ } keep' \
+ > /tmp/fan-in-requirements.txt
+ test "$(grep -c '^[^ ]' /tmp/fan-in-requirements.txt)" -eq 6
+ uv venv .venv --python 3.12
+ uv pip install --no-config --python .venv --require-hashes -r /tmp/fan-in-requirements.txt
- attach_workspace:
at: /tmp/integration-shards
- run:
@@ -1614,7 +1629,6 @@ workflows:
- integration_contracts:
name: integration-mcp
suite: mcp
- resource_class: xlarge
parallelism: 2
filters: *integration_default_run
- integration_shard_coverage:
diff --git a/.circleci/scripts/run_integration.sh b/.circleci/scripts/run_integration.sh
index b18526e084e..be7e70d491c 100644
--- a/.circleci/scripts/run_integration.sh
+++ b/.circleci/scripts/run_integration.sh
@@ -143,7 +143,7 @@ if [ "$suite" = security ]; then
export INTEGRATION_WORKERS=4
fi
if [ "$suite" = mcp ]; then
- export INTEGRATION_WORKERS=4 INTEGRATION_COVERAGE=1
+ export INTEGRATION_WORKERS=2 INTEGRATION_COVERAGE=1
fi
isolated_workers=false
if [ "${INTEGRATION_WORKERS:-1}" -gt 1 ]; then