[PR #4905] [CLOSED] [Other] the Mac DeepSeek check names the four sets now offered there (Fix #4904) #5243

Closed
opened 2026-11-07 16:33:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4905
Author: @XiaoBinGan
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/test-mac-deepseek-sets-stale


📝 Commits (1)

  • d790642 Fix #4904: the Mac DeepSeek check names the four sets now offered there

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 tools/test_strata_mcp.py (+5 -2)

📄 Description

## Problem and result

tools/test_strata_mcp.py was red on unmodified main (c62d5e3a): its Mac DeepSeek check still expected only the
two IST-DAS sets, while strata_control/dsv41_fit.py MAC_SET_PACK has also offered UD-IQ1_S and UD-IQ1_M since
2026-10-30 (MAC_NOT_YET is empty by design — "the Mac gate stays as an empty mechanism", commit 33bbbca4;
UD-IQ1_S got its measured M5 Max line in 6a7d7505).

before (main): AssertionError: Lists differ: ['IST-DAS-2.00bpw', 'IST-DAS-2.25bpw', 'UD-IQ1_S', 'UD-IQ1_M']
                                            != ['IST-DAS-2.00bpw', 'IST-DAS-2.25bpw']
               1 failed, 52 deselected
after:         1 passed, 51 deselected

This was the only failure in the file on main (python -m pytest tools/test_strata_mcp.py -q: 1 failed, 51
passed), so after the change the file is green: 52 passed.

#4904 — the report I opened for the failure, with the same output. A test-expectation fix for an intentional model
list, not a behaviour change; no scope agreement was asked for.

Approach

  • The expected list is now ["IST-DAS-2.00bpw", "IST-DAS-2.25bpw", "UD-IQ1_S", "UD-IQ1_M"] and the test name no
    longer says "two sets".
  • The existing per-set assertions are unchanged and now run for all four sets: multi-file, no images,
    on_this_pc starts with "runs on this Mac's memory", says "read from the SSD", and disk_gb > download_gb.
    The two new sets' words come from dsv41_fit.MAC_MEASURED_PACK, including UD-IQ1_M's plain "Not run on a Mac yet".
  • The list stays explicit rather than read from MAC_SET_PACK, so a set silently added to or dropped from the Mac
    list is still a failing test that wants its words checked.
  • The two later assertions on a 32 GB Mac (slow here, "can still be installed", catalog.verdict TIGHT/FITS) are
    untouched and still pass with four sets.

Validation

Passed: python -m pytest tools/test_strata_mcp.py -q -k test_deepseek_on_a_mac on the branch (Python 3.11.16,
Windows 11): 1 passed, 51 deselected.

Passed: the file's full suite on the branch, python -m pytest tools/test_strata_mcp.py -q: 52 passed
(the same command on unmodified main gives 1 failed, 51 passed).

Failed: the same check on unmodified main (test unchanged): the AssertionError above at
tools/test_strata_mcp.py:787. That is the A/B: the check follows the data the model list is built from.

Not run: a real Apple Silicon Mac. The test mocks the Mac (sys.platform = "darwin", mac_fit.mac_info) and
exercises Strata.model_table(); the host OS does not take part, which is why it reproduces on Windows.

Limits

  • The expected list is hard-coded on purpose. Adding or removing a DeepSeek set on a Mac will fail this check until
    its Mac words are reviewed, which is the behaviour the check exists for.
  • The words themselves (measured numbers) are not re-validated here; the test checks that each offered set has them.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4905 **Author:** [@XiaoBinGan](https://github.com/XiaoBinGan) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/test-mac-deepseek-sets-stale` --- ### 📝 Commits (1) - [`d790642`](https://github.com/Niko1221/Strata/commit/d790642d13992382c1c2683e1b4a61489a5e50ce) Fix #4904: the Mac DeepSeek check names the four sets now offered there ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_strata_mcp.py` (+5 -2) </details> ### 📄 Description ## Problem and result `tools/test_strata_mcp.py` was red on unmodified `main` (c62d5e3a): its Mac DeepSeek check still expected only the two IST-DAS sets, while `strata_control/dsv41_fit.py` `MAC_SET_PACK` has also offered `UD-IQ1_S` and `UD-IQ1_M` since 2026-10-30 (`MAC_NOT_YET` is empty by design — "the Mac gate stays as an empty mechanism", commit `33bbbca4`; `UD-IQ1_S` got its measured M5 Max line in `6a7d7505`). ```text before (main): AssertionError: Lists differ: ['IST-DAS-2.00bpw', 'IST-DAS-2.25bpw', 'UD-IQ1_S', 'UD-IQ1_M'] != ['IST-DAS-2.00bpw', 'IST-DAS-2.25bpw'] 1 failed, 52 deselected after: 1 passed, 51 deselected ``` This was the only failure in the file on `main` (`python -m pytest tools/test_strata_mcp.py -q`: 1 failed, 51 passed), so after the change the file is green: `52 passed`. ## Related discussion #4904 — the report I opened for the failure, with the same output. A test-expectation fix for an intentional model list, not a behaviour change; no scope agreement was asked for. ## Approach - The expected list is now `["IST-DAS-2.00bpw", "IST-DAS-2.25bpw", "UD-IQ1_S", "UD-IQ1_M"]` and the test name no longer says "two sets". - The existing per-set assertions are unchanged and now run for all four sets: multi-file, no images, `on_this_pc` starts with "runs on this Mac's memory", says "read from the SSD", and `disk_gb > download_gb`. The two new sets' words come from `dsv41_fit.MAC_MEASURED_PACK`, including UD-IQ1_M's plain "Not run on a Mac yet". - The list stays explicit rather than read from `MAC_SET_PACK`, so a set silently added to or dropped from the Mac list is still a failing test that wants its words checked. - The two later assertions on a 32 GB Mac (`slow here`, "can still be installed", `catalog.verdict` TIGHT/FITS) are untouched and still pass with four sets. ## Validation **Passed:** `python -m pytest tools/test_strata_mcp.py -q -k test_deepseek_on_a_mac` on the branch (Python 3.11.16, Windows 11): **1 passed, 51 deselected**. **Passed:** the file's full suite on the branch, `python -m pytest tools/test_strata_mcp.py -q`: **52 passed** (the same command on unmodified `main` gives 1 failed, 51 passed). **Failed:** the same check on unmodified `main` (test unchanged): the `AssertionError` above at `tools/test_strata_mcp.py:787`. That is the A/B: the check follows the data the model list is built from. **Not run:** a real Apple Silicon Mac. The test mocks the Mac (`sys.platform = "darwin"`, `mac_fit.mac_info`) and exercises `Strata.model_table()`; the host OS does not take part, which is why it reproduces on Windows. ## Limits - The expected list is hard-coded on purpose. Adding or removing a DeepSeek set on a Mac will fail this check until its Mac words are reviewed, which is the behaviour the check exists for. - The words themselves (measured numbers) are not re-validated here; the test checks that each offered set has them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:33:45 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5243
No description provided.