Skip to content

test: add long streaming output chunk-size tests (21_01 / 21_02)#34

Open
huahua-ctrl wants to merge 1 commit into
MiniMax-AI:mainfrom
huahua-ctrl:feat/long-output-stream
Open

test: add long streaming output chunk-size tests (21_01 / 21_02)#34
huahua-ctrl wants to merge 1 commit into
MiniMax-AI:mainfrom
huahua-ctrl:feat/long-output-stream

Conversation

@huahua-ctrl

Copy link
Copy Markdown
Contributor

Add module 21 (long_output) with two streaming cases that check SSE chunk-size discipline for long outputs:

  • 21_01: long content stream (delta.content chunks)
  • 21_02: long tool_call arguments stream (delta.tool_calls[].function.arguments fragments)

Rules per case:

  • Every chunk EXCLUDING the tail: len >= 10
  • Every chunk INCLUDING the tail: len <= 300 (hard cap)
  • Fraction of ALL chunks (INCLUDING the tail) with len < 200: > 90% Any violation fails the case.

Add module 21 (long_output) with two streaming cases that check SSE
chunk-size discipline for long outputs:

- 21_01: long content stream (delta.content chunks)
- 21_02: long tool_call arguments stream (delta.tool_calls[].function.arguments fragments)

Rules per case:
- Every chunk EXCLUDING the tail: len >= 10
- Every chunk INCLUDING the tail:  len <= 300 (hard cap)
- Fraction of ALL chunks (INCLUDING the tail) with len < 200: > 90%
Any violation fails the case.

Fleet run against 10 direct M3 providers:
- 21_01 passes 4/10 (fireworks + together x3);
  fails split between "per-token stream" (inferact x2 / magikcloud /
  modular emit lots of <10c chunks) and "soft-cap ratio drop" (M3-test
  at 84%)
- 21_02 passes 0/10; failures come in three flavors:
  * value packed into one 800-902c fragment exceeding the hard cap
    (M3-test / fireworks / fireworks-fp8 / modular)
  * arguments not streamed incrementally at all — only 1 fragment
    total (together x3 / inferact x2)
  * mixed short + oversized fragments (magikcloud)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant