Add Integartion Tests#26
Merged
ajit-zer07 merged 1 commit intomainfrom Apr 4, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
integration_tests/Rust crate with 55 gRPC integration tests across 3 tiers (protocol, Rig agent tools, real LLM E2E)WatchSignalsstreaming RPC for ambient Signal broadcastWhat this PR does
Integration test suite (
integration_tests/)A standalone Rust crate that tests the runtime through the real gRPC boundary. It is not part of the main Cargo build —
cargo build --releaseignores it entirely.Tier 1 — Protocol (47 tests): Scripted gRPC tests covering all 6 modes (decision, proposal, task, handoff, quorum, multi-round), plus:
Tier 2 — Rig Agent Tools (5 tests): Each MACP operation implemented as a Rig
Tooltrait, validated throughToolSet::call()— the same interface anLLM agent uses.
Tier 3 — E2E with Real LLM (3 tests,
#[ignore]): Real OpenAI GPT-4o-mini agents coordinating through the runtime:WatchSignals RPC
New server-streaming RPC that broadcasts ambient Signal envelopes to all subscribers. Signals are non-binding messages on the ambient plane (per RFC-MACP-0001 §5.1) — they
correlate with sessions via
SignalPayload.correlation_session_idbut never enter session history.Changes:
proto/macp/v1/core.proto,src/runtime.rs(signal broadcast channel),src/server.rs(WatchSignals handler)Documentation
docs/testing.md— comprehensive integration test guideREADME.md— added Testing sectionCLAUDE.md— added architecture diagram, mode authority table, gRPC surface table, env vars table, signal/dedup rules, integration test sectiondocs/protocol.md— added WatchSignals to RPC listTest plan
cargo fmt --all -- --checkpassescargo clippy --all-targets -- -D warningspassescargo buildsucceedscargo test --all-targetspasses (unit + Rust integration tests)cd integration_tests && MACP_TEST_BINARY=../target/debug/macp-runtime cargo test --test tier1 -- --test-threads=1— 47 protocol tests passcd integration_tests && MACP_TEST_BINARY=../target/debug/macp-runtime cargo test --test tier2 -- --test-threads=1— 5 Rig tool tests passcd integration_tests && OPENAI_API_KEY=... MACP_TEST_BINARY=../target/debug/macp-runtime cargo test --test tier3 -- --ignored --test-threads=1— 3 E2E tests passwith real OpenAI
cargo build --releaseproduces onlymacp-runtimebinary (no test artifacts)