Skip to content

Bound MLX test responses - #285

Merged
mattt merged 2 commits into
mainfrom
mattt/cap-mlx-test-responses
Oct 2, 2026
Merged

mattt merged 2 commits into
mainfrom
mattt/cap-mlx-test-responses

Conversation

@mattt

@mattt mattt commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

mattt added 2 commits October 2, 2026 05:09
Text generation has no default token limit, and nine MLX tests didn't set one. One full-suite run hung for more than 11 minutes in token generation. Give those tests a 512-token limit, like tokenUsageSurvivesToolStopAndFailure.
@mattt
mattt requested a balanced review from Copilot October 2, 2026 12:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The changes consistently bound previously unlimited generation paths without altering tested behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Bounds MLX test generation to prevent non-terminating responses from stalling the suite.

Changes:

  • Adds shared 512-token generation options.
  • Applies limits to text, tool-calling, multimodal, and cache tests.
File Description
Tests/​AnyLanguageModelTests/​MLXLanguageModelTests.swift Adds bounded response options to MLX integration tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mattt
mattt merged commit c4a1acd into main Oct 2, 2026
8 checks passed
@mattt
mattt deleted the mattt/cap-mlx-test-responses branch October 2, 2026 12:18
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.

2 participants