Validation
The following checks are executed by validate.sh for every framework subscribed to the stream-grpc or stream-grpc-tls tests.
Server-streaming response shape
Calls BenchmarkService/StreamSum with {a: 13, b: 42, count: 10} over h2c (or h2 TLS for the stream-grpc-tls variant) and verifies:
- The call completes with
OKstatus (noCANCELLED,UNAVAILABLE, etc.) - Exactly 10
SumReplymessages are received - Each
resultequals13 + 42 + iwhereiis the zero-based index of the message in the stream
Large-count stream
Calls StreamSum with count: 5000 and verifies the full stream is delivered without deadline exceeded and the final reply carries result = 13 + 42 + 4999 = 5054. Catches frameworks that silently truncate long streams or drop trailing messages under pressure.
Empty stream (anti-cheat)
Calls StreamSum with count: 0 and verifies the call completes with OK and zero messages delivered. Catches frameworks that hard-code a minimum message count.