Skip to content

test: upgrade integration harnesses for dual-server execution#706

Open
anubhav756 wants to merge 1 commit into
mcp-v202606from
anubhav-test-infra
Open

test: upgrade integration harnesses for dual-server execution#706
anubhav756 wants to merge 1 commit into
mcp-v202606from
anubhav-test-infra

Conversation

@anubhav756

@anubhav756 anubhav756 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

This PR upgrades the integration test harnesses across the SDK (core, adk, langchain, and llamaindex) to support running integration tests against multiple Toolbox server configurations simultaneously.

By parameterizing the toolbox_server_url fixture and updating the Cloud Build configurations, the CI will now spin up and test against two server instances:

  1. Stable Server (Port 5000): Runs stable server.
  2. Draft-Enabled Server (Port 5001): Runs with the draft specs enabled.

Motivation

This is a pure testing infrastructure change. It lays the groundwork for the upcoming DRAFT-2026-v1 protocol support, ensuring we can test backward compatibility (graceful protocol downgrading) against older servers without breaking any existing test cases.

Note

The presubmits fail because in this PR, we configured the test suite to run against both stable (5000) and draft (5001). It fails because it successfully negotiated the draft spec. This is fixed in the #703 branch (which is stacked on top of this PR).

Note

This PR focusses only on parameterizing the tests. The fallback logic is broken at this stage which caused crashes against the stable server, so we added the if "DRAFT" not in v filter there temporarily. However, in the upcoming PR #703 that workaround is removed.

@anubhav756 anubhav756 requested a review from a team as a code owner July 1, 2026 14:59
Base automatically changed from anubhav-sep-2243 to mcp-v202606 July 2, 2026 05:07
Comment thread packages/toolbox-adk/tests/integration/conftest.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it come under just testing infra change? Should it be moved to another PR?

Comment thread packages/toolbox-core/tests/conftest.py
Comment thread packages/toolbox-core/pyproject.toml Outdated
@anubhav756 anubhav756 force-pushed the anubhav-test-infra branch 3 times, most recently from f81589a to 1b769cf Compare July 3, 2026 21:56
@anubhav756 anubhav756 force-pushed the anubhav-test-infra branch from 1b769cf to 51e553c Compare July 3, 2026 22:15
@anubhav756 anubhav756 requested a review from twishabansal July 4, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants