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): keep the MCP SDK1 peer on mcp 1.x and autovacuum off the size cleanup test (#47651)

Mateo Wang8fe0a7358e87
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 0d442e32b0a..1edf22578ff 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1291,7 +1291,7 @@ jobs:
name: Install MCP SDK1 peer
command: |
uv venv --python 3.12 .venv-mcp-peer
- uv pip install --python .venv-mcp-peer 'mcp==1.28.1' 'langchain-mcp-adapters==0.2.1'
+ uv pip install --no-config --exclude-newer "3 days" --python .venv-mcp-peer 'mcp==1.28.1' 'langchain-mcp-adapters==0.2.1'
echo "export MCP_TEST_PEER_PYTHON=$PWD/.venv-mcp-peer/bin/python" >> "$BASH_ENV"
- when:
condition:
diff --git a/tests/integration/database/test_cleanup_transactions.py b/tests/integration/database/test_cleanup_transactions.py
index 72da2bb48ee..202657d180e 100644
--- a/tests/integration/database/test_cleanup_transactions.py
+++ b/tests/integration/database/test_cleanup_transactions.py
@@ -113,7 +113,7 @@ async def test_size_rule_deletes_the_oldest_rows_until_under_the_target_and_does
"""
Deleting rows never shrinks the table file, so the size pass must stop on live bytes, not on
pg_total_relation_size, taking the oldest rows first and keeping the tool index on the same cutoff. Once
- autovacuum has turned the deleted rows into free space the catalog no longer shows them as dead, and the
+ VACUUM has turned the deleted rows into free space the catalog no longer shows them as dead, and the
files still measure the same; the next check must read what the last run freed from its saved count and
leave the table alone instead of calling the whole file live again.
"""
@@ -140,13 +140,15 @@ async def test_size_rule_deletes_the_oldest_rows_until_under_the_target_and_does
setup.execute(
sql.SQL(
'CREATE TABLE {} (request_id text, "startTime" timestamp NOT NULL, payload text, '
- 'PRIMARY KEY (request_id, "startTime"))'
+ 'PRIMARY KEY (request_id, "startTime")) '
+ 'WITH (autovacuum_enabled = false, toast.autovacuum_enabled = false)'
).format(logs)
)
setup.execute(
sql.SQL(
"CREATE TABLE {} (request_id text, tool_name text, start_time timestamp NOT NULL, "
- "PRIMARY KEY (request_id, tool_name))"
+ "PRIMARY KEY (request_id, tool_name)) "
+ "WITH (autovacuum_enabled = false, toast.autovacuum_enabled = false)"
).format(index)
)
setup.execute(sql.SQL("CREATE TABLE {} (param_name text PRIMARY KEY, param_value jsonb)").format(config))