Skip to content

[TUI] fix case-sensitive model folder path in test_setup_qwen4 hardlink test - #461

Closed
NightRain233 wants to merge 1 commit into
simplexai-labs:mainfrom
NightRain233:fix/qwen4-hardlink-test-case
Closed

NightRain233 wants to merge 1 commit into
simplexai-labs:mainfrom
NightRain233:fix/qwen4-hardlink-test-case

Conversation

@NightRain233

Copy link
Copy Markdown
Contributor

Problem and result

terminal/tools/test_setup_qwen4.py::InstallQwen4OnStrataPoly::test_mtp_off_passes_no_draft_and_shard2_hardlink_reuses_ple_across_tiers fails deterministically on case-sensitive filesystems (Linux CI Checks / Linux / Python terminal/tools/) with:

FileNotFoundError: [Errno 2] No such file or directory: '.../models/qwen4-ud-q4_k_xl/Qwen4-35B-A3B-UD-Q4_K_XL-00002-of-00002.gguf'

setup.install_qwen4() creates the model directory using case-preserving Path(a.models_dir) / tag (models/qwen4-UD-Q4_K_XL, matching setup.py:11213, setup.py:12819, and setup_mac.py:916). Lines 304 and 320 of test_setup_qwen4.py used lowercase "qwen4-ud-iq2_xs" and "qwen4-ud-q4_k_xl" (unlike lines 355 and 409 in the same file, which already use "qwen4-UD-IQ2_XS" and "qwen4-UD-Q4_K_XL"), so the test only passed on case-insensitive macOS/Windows filesystems and failed on Linux ext4.

After this fix, test_mtp_off_passes_no_draft_and_shard2_hardlink_reuses_ple_across_tiers uses "qwen4-UD-IQ2_XS" and "qwen4-UD-Q4_K_XL" and explicitly asserts the exact directory entry name via (t / "models").iterdir() so a casing mismatch would fail even on case-insensitive macOS/Windows filesystems.

Related discussion

none (focused CI test bug fix; observed failing on Linux py-tools across #457, #458, and #459; verified no open PR fixes test_setup_qwen4.py).

Approach

  • Update terminal/tools/test_setup_qwen4.py lines 304 and 320 to use "qwen4-UD-IQ2_XS" and "qwen4-UD-Q4_K_XL", matching install_qwen4() and lines 355/409 of the same test file.
  • Add self.assertIn(s2.parent.name, {p.name for p in (t / "models").iterdir()}) so exact directory casing is verified even on case-insensitive filesystems.
  • Zero changes to terminal/setup.py or any engine code.

Validation

Passed:

  • Local macOS 26.6.2 (PolyStrata main df2c3ff + fix commit):
    • PYTHONPATH=terminal python terminal/tools/test_setup_qwen4.py -> Ran 8 tests — OK (including the exact-case iterdir() assertion).

Failed:

  • none observed

Not run:

  • Local Linux ext4 run (macOS host; verified the exact failing path from Linux CI run 47479724313 job 145547604976 py-tools.log, and Linux CI will verify on this PR directly).
  • Engine CMake builds (pure Python test-only change; no engine files touched).

Limits

  • Only fixes the test path casing in terminal/tools/test_setup_qwen4.py; install_qwen4()'s existing Path(a.models_dir) / tag directory convention is intentionally kept unchanged for consistency with all other families in setup.py and setup_mac.py.

VecSzn added a commit that referenced this pull request Dec 6, 2026
…p_qwen4 casing (#461), and Qwen4 poly.10 docs

Zero-engine-touch setup/docs hotfix on top of v0.2.20-poly.10 (df2c3ff);
preserves prebuilt binary hashes (ENGINE+VISION ba2ae79b8a871167,
ENGINE_ONLY da0e075dee237a14).

- Fix #471: repin unsloth/Qwen4-35B-A3B-GGUF to 85a51187d937d87d799be9a10fa30732ee31432c
  (all 16 pinned files match LFS SHA-256 and byte sizes) and
  LiquidAI/LFM2.5-24B-A2B-GGUF to d790f111166905bfb36a81e12a403701ac23a1ca
  (LFM2.5-24B-A2B-QAD-Q4_0.gguf matches LFS SHA-256 and size); update
  docs/models/qwen4.md commit pin; add offline HF_REVISIONS/docs sync guard
  with opt-in live API check (STRATA_LIVE_HF_CHECK=1) in test_setup_qwen4.py.
- Fold in PR #461: fix case-sensitive model folder path casing in
  test_setup_qwen4.py hardlink reuse test and assert exact directory casing.
- Fix #493: add opt-in "groot" (qwen35moe) to POLY_BASINKV in setup.py and
  docs/BASINKV.md (default path unchanged; engine already supports qwen35moe
  BasinKV in v0.2.20-poly.10) with unit and poly_setup tests.
- Sync docs/models/qwen4.md with verified v0.2.20-poly.10 (df2c3ff)
  RTX 4090 D, RTX 5060 Laptop (short + 8K-256K BasinKV 10/10 NIAH PASS),
  and Apple M5 Ultra (--no-draft 8K-256K NIAH) measurements.

Closes #471
Closes #493
Incorporates PR #461 (NightRain233)
Co-authored-by: shoudi zheng <434782114@qq.com>
@VecSzn

VecSzn commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Integrated on main in commit 44e27e9d3 (included in upcoming v0.2.20-poly.11). Thanks @NightRain233!

@VecSzn VecSzn closed this Dec 6, 2026
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