Skip to content

spark-server: 26 literal-XML stream tests not compiled on main (lost mod decls); 2 real failures once restored (fixed in #293) #296

Closed

Description

@AzeezIsh

On main, crates/spark-server/src/api/chat_stream/qwen_literal_xml_tests.rs and glm_literal_xml_tests.rs exist, but no mod declares them. The declarations were lost when glm_tool_boundary_tests.rs was split during the #279 port, so none of their tests run.

Restoring only the test wiring on main (branch fix/restore-literal-xml-tests, 53daff5bd, no product-code changes) gives 44 passed, 2 failed:

  • qwen_literal_xml_plain_opener_survives_detector_done_flush: the expected text is The delimiter <tool_call> opens a tool invocation. END., but main returns END.. A literal <tool_call> opener is consumed on the done-flush path instead of being kept as text.
  • qwen_literal_xml_unsupported_closed_and_unclosed_envelopes_are_content: an envelope for an unregistered tool should come back as content, but main drops it on the done flush.

Both are SparkQwen 0.4.0 retention behaviour (the ba0b7bd family) that main lacks. They're fixed in the SparkQwen stack's top PR, #293, where all of these tests are restored and pass (2997/0). They'll be green on main once the stack (#284 → #293) merges.

Tracking: #220.

Activity

  1. AzeezIsh commented on Oct 31, 2026

    @AzeezIsh
    ContributorAuthor

    Fixed by #293, merged as 8c2b672. The literal-XML stream tests are compiled again and pass, along with the done-flush retention fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions