Repository navigation
docs: fix dead docs/model_tests.md and docs/testing.md pointers - #2022
Merged
Merged
Conversation
Six source references pointed at docs/model_tests.md and docs/testing.md, neither of which ever existed in this tree (git log --all --diff-filter=A confirms both paths were never added). docs/model_tests.md was always meant to be docs/benchmark_results/model_tests.md, which carries the exact Speculative drafters and Prompt cache benchmarks sections the five references describe. Repointed in Cargo.toml, src/bin/speculative_bench.rs (module doc and print_markdown_table doc), tests/speculative_parity.rs (the REACHABLE_PAIRINGS assertion message), and tests/prompt_cache_prefill_bench.rs. docs/testing.md was never real either. Its introducing commit (290eb64) also touched docs/en/user-guide/server.md, and mkdocs.yml's nav lists development/testing.md; per docs/README.md, docs/en/ and docs/ko/ are sources for the separately maintained MkDocs manual and are not part of this repository, so that target would still be a dead reference here. Dropped the pointer in src/tokenizer/mod.rs and inlined the one fact the comment needed instead. Adds tests/dead_doc_pointers.rs, a narrow regression guard that include_str!s the five fixed files and asserts neither dead path string reappears. It intentionally does not extend src/main_tests.rs's supported_models_output_has_no_dead_doc_link (added for issue #26): that test checks rendered CLI output, this checks raw source text, and main_tests.rs is already well over the project's 500-line file-size guideline. It is also deliberately not a tree-wide dead-doc-link scanner: this repo carries other, pre-existing dead references (docs/USAGE.md, docs/bridge-overhead-microbench.md) that are out of scope for this issue.
Member
Author
|
Security and performance review: no findings at any severity. No fixes committed.
|
Closed
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Six dead
docs/*.mdpointers (five plain comments plus one assertion message) referenceddocs/model_tests.mdanddocs/testing.md, neither of which ever existed in this tree; this repoints five of them to the file that actually carries that content and drops the sixth in favor of an inline instruction.Per-reference decision
docs/model_tests.mdwas never a real path (git log --all --diff-filter=A -- docs/model_tests.mdis empty); it was always meant to bedocs/benchmark_results/model_tests.md, which carries the exact## Speculative drafters(line 317) and## Prompt cache benchmarks(line 240) sections the five references describe. Repointed inCargo.toml:54,src/bin/speculative_bench.rs:23and:750,tests/speculative_parity.rs:1540(the assertion message, still a plain string literal so it reads correctly when it fires), andtests/prompt_cache_prefill_bench.rs:41.docs/testing.mdalso never existed. Its introducing commit (290eb64) also toucheddocs/en/user-guide/server.md, and a later commit in this history namesdocs/en/development/testing.mdfor the same topic (a TurboQuant testing section); perdocs/README.md's "The MkDocs manual" section,docs/en/anddocs/ko/are sources for the separately maintained manual atmlxcel.lablup.ai, not part of this repository, so pointing at that path here would still be a dead reference.CLAUDE.md's "Testing with real models" section was considered as a replacement target but is itself.gitignored in this repo (not ingit ls-files), so it is not a valid target either. Dropped the pointer atsrc/tokenizer/mod.rs:2812and inlined the one fact the comment needed:mlxcel download mlx-community/gemma-4-e4b-it-8bit(verified againstdocs/model-catalog.tsv:63).What changed
Cargo.toml,src/bin/speculative_bench.rs(module doc +print_markdown_tabledoc, notencode_prompt),tests/speculative_parity.rs,tests/prompt_cache_prefill_bench.rs: repointdocs/model_tests.mdtodocs/benchmark_results/model_tests.md.src/tokenizer/mod.rs: drop thedocs/testing.mdpointer, inline the download command instead.tests/dead_doc_pointers.rs(new): narrow regression guard,include_str!s the five fixed files and asserts neither dead path string reappears. Not an extension ofsrc/main_tests.rs'ssupported_models_output_has_no_dead_doc_link(issue fix(cli):mlxcel listoutput is stale, missing VLMs and ~30 model types, and links to nonexistent doc #26): that test checks rendered CLI output, this checks raw source text, andsrc/main_tests.rsis already 1535 lines. It is also deliberately not a tree-wide "everydocs/*.mdreference must exist" scanner: this repo has other, pre-existing dead doc references outside this issue's scope (for exampledocs/USAGE.md,docs/bridge-overhead-microbench.md) that belong to separate cleanup.Test plan
grep -rn "docs/model_tests.md\|docs/testing.md" --exclude-dir=target --exclude-dir=.git .matches onlytests/dead_doc_pointers.rs, which names the strings it guards against; no other source references themcargo check --features metal,accelerate --test speculative_parity --test prompt_cache_prefill_bench --test dead_doc_pointers --bin speculative_bench --bin mlxcelcargo test --features metal,accelerate --test dead_doc_pointers(2 passed)cargo fmt --checkpython3 scripts/ci/check_cross_repo_refs.pyCloses #1658