Repository navigation
loom coverage: self-test the --manifest id -> file resolution (engine#3156) - #3511
Conversation
…#3156) #3510 fixed --manifest to resolve the stick's own ids, but the self-test had no arm for that path -- which is exactly why the wrong input shape shipped in #3509: it was validated against a manifest synthesised from the issue's row names, and against the real file it resolved 0 of 24 ids and printed an empty map that read like a clean one. This adds arm()'s manifest counterpart, manifest_arm, which asserts the resolved (device, model) ROWS and the unresolved list rather than only the verdict, because "no rows" is a state a verdict-only arm cannot see. 11 arms: - the stick's -1bit suffix is the distribution's, not the model name (hrx GLM-4.7-Flash-1bit) - a resolved id earns a real verdict (COVERED on bytes), and can still be DIFFERENT-UPLOAD - an id resolves on stem + quant spec, not prefix: qwen3-4b must not claim qwen3-4b-instruct-2507-q4_k_m.gguf - a repo-style id ending -GGUF resolves; a bare .gguf id is a file name - an id we pin nothing for is reported unresolved, never name-matched - npu rows are skipped, and are not counted as unresolved either - one id owning several pins yields one row per file (the REQUANT mechanism) - mode=, comments, blank and junk lines are not rows The card-writing half of arm() is factored into make_card() so both arms build the same tree; no existing arm changes behaviour (11/11 still pass unchanged). Control: with rows_from_manifest reverted to the #3509 resolver, the new self-test reports 17 ok / 5 failed -- the three -1bit arms resolve to nothing (rows [], unresolved ['GLM-4.7-Flash-1bit']), the instruct arm does the same, and the prefix arm resolves BOTH files for Qwen3-4B (qwen3-4b-instruct-2507-q4_k_m.gguf and qwen3-4b-q4_k_m.gguf), i.e. it claims the instruct model's bytes for the base model. Against the fixed resolver: 22 ok, 0 failed. Real artifact, unchanged by this commit: --manifest on /etc/1bit/onebit-models.txt as the box generates it (24 hrx ids) still resolves 18 of 24, with 6 reported unresolved (MiniCPM-V-4.6, Qwen3-Reranker-0.6B, ZAYA1-8B-PM, flint-40b-a2.5b, jina-reranker-v1-tiny-en, nomic-embed-text-v2-moe) and 5 rows COVERED on bytes. pre-pr-checks.sh --tree-only --base origin/main: 15 green, 3 skipped, 0 could not be told.
2d6e7d7 to
80e5ad5
Compare
PR Reviewer Guide 🔍(Review updated until commit 80e5ad5)Here are some key observations to aid the review process:
✅ Resolved findingstools/ci/loom_coverage_check.py:68-89Manifest Resolution Logic The new |
|
Persistent review updated to latest commit 80e5ad5 |
Follow-up to #3510, which was merged-armed while the self-test had no arm for the
--manifestpath — the exact reason the wrong input shape got through in #3509.manifest_armasserts the resolved(device, model)rows and the unresolved list, not only the verdict: a resolution that matches nothing produces zero rows, and zero rows is a state a verdict-only arm cannot see. 11 arms:-1bitsuffix is the distribution's, not the namehrx GLM-4.7-Flash-1bit→glm-4.7-flash-q4_k_m.ggufQwen3-4Bdoes not claimqwen3-4b-instruct-2507-q4_k_m.ggufQwen3-4B-Instruct-2507-1bit-GGUFresolvesunsloth/Qwen3-4B-GGUF.ggufid is a file nameunresolved, never name-matchednpurows are not this map's businessmode=, comments, blank and junk lines are not rowsThe card-writing half of
arm()is factored intomake_card()so both arms build the same tree. No existing arm changes behaviour — all 11 still pass unchanged.Control (
rows_from_manifestreverted to the #3509 resolver, same test file): 17 ok / 5 failed —Against the fixed resolver: 22 ok, 0 failed.
Real artifact (unchanged by this commit, re-run after the box reboot):
--manifeston/etc/1bit/onebit-models.txtas the box generates it (24hrxids) resolves 18 of 24, 6 reported unresolved (MiniCPM-V-4.6, Qwen3-Reranker-0.6B, ZAYA1-8B-PM, flint-40b-a2.5b, jina-reranker-v1-tiny-en, nomic-embed-text-v2-moe), 5 rows COVERED on bytes (GLM29837ed2, Qwen3-0.6Bac2d9771, Qwen3-4B-25073605803b, Qwen3-8B120307ba, Qwen3.8-27B2a5f3565) plus 4 DIFFERENT-UPLOAD where the byte comparison ran and failed.scripts/pre-pr-checks.sh --tree-only --base origin/main: 15 green, 3 skipped, 0 could not be told.