Skip to content

fix: update Qwen model names in fish tests to match functions - #1424

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/qwen-model-tests
Apr 11, 2026
Merged

fix: update Qwen model names in fish tests to match functions#1424
shunkakinoki merged 1 commit into
mainfrom
fix/qwen-model-tests

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Updated 6 fish test files to use qwen3.5-0.8b-optiq model name matching the actual functions. Tests were referencing old qwen/qwen3.5-9b model.


Summary by cubic

Update fish tests to expect the qwen3.5-0.8b-optiq model (with lmstudio local provider), matching the functions and preventing false negatives. Replaces old qwen/qwen3.5-9b and lmstudio/qwen/qwen3.5-9b assertions.

  • Bug Fixes
    • Updated six specs: coxel/coxelh/ocxel/ocxelh/pixel/pixelh tests.
    • Covered no-arg, arg, and piped prompt paths so assertions align with the new model/provider.

Written for commit 849bac9. Summary will update on new commits.

Copilot AI review requested due to automatic review settings April 10, 2026 23:10
@mesa-dot-dev

mesa-dot-dev Bot commented Apr 10, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 98b70c83-8aac-41eb-ba00-d50bbc4aa44d

📥 Commits

Reviewing files that changed from the base of the PR and between a2c254b and 849bac9.

📒 Files selected for processing (6)
  • spec/fish/_coxel_function_test.fish
  • spec/fish/_coxelh_function_test.fish
  • spec/fish/_ocxel_function_test.fish
  • spec/fish/_ocxelh_function_test.fish
  • spec/fish/_pixel_function_test.fish
  • spec/fish/_pixelh_function_test.fish

📝 Walkthrough

Summary by CodeRabbit

  • Tests
    • Updated test assertions across multiple test suites to validate against a different Qwen model variant in the system output.

Walkthrough

This PR updates test expectations across six Fish test files to validate a different Qwen model identifier, changing from qwen/qwen3.5-9b to qwen3.5-0.8b-optiq and from lmstudio/qwen/qwen3.5-9b to lmstudio/qwen3.5-0.8b-optiq.

Changes

Cohort / File(s) Summary
Remote Qwen Model Tests
spec/fish/_coxel_function_test.fish, spec/fish/_coxelh_function_test.fish
Updated test assertions to expect substituted remote Qwen model string qwen3.5-0.8b-optiq instead of qwen/qwen3.5-9b in log output validation.
Local Qwen Model Tests
spec/fish/_ocxel_function_test.fish, spec/fish/_ocxelh_function_test.fish, spec/fish/_pixel_function_test.fish, spec/fish/_pixelh_function_test.fish
Updated test assertions to expect local Qwen model string lmstudio/qwen3.5-0.8b-optiq instead of lmstudio/qwen/qwen3.5-9b in grep patterns and log output validation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 A model's name doth change and shift,
From qwen3.5-9b to optiq swift,
The tests align with careful cheer,
New identifiers crystal clear! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: updating Qwen model names in fish tests to align with the actual functions.
Description check ✅ Passed The description is directly related to the changeset, explaining which test files were updated and why (to match the actual model names used by functions).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/qwen-model-tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mesa-dot-dev

mesa-dot-dev Bot commented Apr 10, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Updated Qwen model names in 6 fish test files to qwen3.5-0.8b-optiq to match actual functions.

What changed?

Updated 6 fish test files to use qwen3.5-0.8b-optiq model name, replacing references to old qwen/qwen3.5-9b models.

Description generated by Mesa. Update settings

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates several Fish shell test specifications to reflect a change in the default Qwen model, switching from qwen3.5-9b to qwen3.5-0.8b-optiq across multiple test files including _coxel, _ocxel, and _pixel functions. I have no feedback to provide as there were no review comments to evaluate.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

1 issue found across 6 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="spec/fish/_pixel_function_test.fish">

<violation number="1" location="spec/fish/_pixel_function_test.fish:10">
P3: Use literal matching for the model-name assertion. With regex `grep`, dots in `qwen3.5-0.8b-optiq` are wildcards, so the test can pass without an exact model string match.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

_pixel_function

@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen/qwen3.5-9b" $log1) -ge 1
@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1

@cubic-dev-ai cubic-dev-ai Bot Apr 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P3: Use literal matching for the model-name assertion. With regex grep, dots in qwen3.5-0.8b-optiq are wildcards, so the test can pass without an exact model string match.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At spec/fish/_pixel_function_test.fish, line 10:

<comment>Use literal matching for the model-name assertion. With regex `grep`, dots in `qwen3.5-0.8b-optiq` are wildcards, so the test can pass without an exact model string match.</comment>

<file context>
@@ -7,7 +7,7 @@ function pi; echo $argv >> $log1; end
 _pixel_function
 
-@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen/qwen3.5-9b" $log1) -ge 1
+@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1
 
 # ── with args: builds prompt ──────────────────────────────
</file context>
Suggested change
@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1
@test "no args calls pi with local Qwen model" (grep -F -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1
Fix with Cubic

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates fish specs to assert against the current local Qwen model name (qwen3.5-0.8b-optiq) instead of older qwen/qwen3.5-9b strings so the tests match the actual functions.

Changes:

  • Updated _pixel* fish specs to grep for lmstudio/qwen3.5-0.8b-optiq.
  • Updated _ocxel* fish specs to grep for lmstudio/qwen3.5-0.8b-optiq.
  • Updated _coxel* fish specs to grep for qwen3.5-0.8b-optiq.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
spec/fish/_pixelh_function_test.fish Updates model-name assertion for _pixelh_function tests
spec/fish/_pixel_function_test.fish Updates model-name assertions for _pixel_function tests
spec/fish/_ocxelh_function_test.fish Updates model-name assertion for _ocxelh_function tests
spec/fish/_ocxel_function_test.fish Updates model-name assertions for _ocxel_function tests
spec/fish/_coxelh_function_test.fish Updates substituted model-name assertion for _coxelh_function tests
spec/fish/_coxel_function_test.fish Updates substituted model-name assertions for _coxel_function tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

_pixel_function

@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen/qwen3.5-9b" $log1) -ge 1
@test "no args calls pi with local Qwen model" (grep -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

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

grep patterns are regex by default, so the . characters in qwen3.5-0.8b-optiq match any character. Since these assertions are intended to match an exact model string, use fixed-string matching (e.g., grep -F) or escape the dots to avoid accidental matches and make the tests more robust.

Copilot uses AI. Check for mistakes.

@test "non-empty prompt builds prompt" (grep -c "hello world" $log1) -ge 1
@test "non-empty prompt uses local Qwen model" (grep -c "lmstudio/qwen/qwen3.5-9b" $log1) -ge 1
@test "non-empty prompt uses local Qwen model" (grep -c "lmstudio/qwen3.5-0.8b-optiq" $log1) -ge 1

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

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

The expected model name literal is duplicated across multiple fish spec files in this PR. To reduce churn the next time the model name changes, consider centralizing it (e.g., a shared test helper / common variable sourced by these specs, or at least a local set expected_model ... at the top of each file) and referencing that in the assertions.

Copilot uses AI. Check for mistakes.
@shunkakinoki
shunkakinoki merged commit 39883fd into main Apr 11, 2026
50 of 86 checks passed
@shunkakinoki
shunkakinoki deleted the fix/qwen-model-tests branch April 11, 2026 09:03
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