From 25911504c78557254d78b7cf085ed3c93ca019b5 Mon Sep 17 00:00:00 2001 From: realyashnegi <54710562+yash27-lab@users.noreply.github.com> Date: Mon, 13 Jul 2026 16:00:00 +0000 Subject: [PATCH] docs: add network-free downloader test command Created on 2026-10-06. The author timestamp was intentionally set to 2026-07-13 for the contribution calendar. This is new documentation work, not work performed on July 13. --- docs/test-matrix.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/test-matrix.md b/docs/test-matrix.md index 6115407..53dc7a2 100644 --- a/docs/test-matrix.md +++ b/docs/test-matrix.md @@ -8,11 +8,14 @@ Use the smallest relevant check while iterating: | Check for compile errors quickly | `cargo check` | Any supported Rust platform | | Run lints across binaries and tests | `cargo clippy --all-targets` | Any supported Rust platform with `clippy` | | Validate CPU reference operations | `cargo test --lib --bins` | Any supported Rust platform | +| Test asset downloads without network access | `python3 -m unittest discover -s python -p 'test_*.py'` | Python 3; standard library only | | Check Metal-to-CPU kernel parity | `cargo test --test parity -- --nocapture` | Apple Silicon macOS | | Check end-to-end GPT-2 predictions | `cargo test --test gpt2_e2e -- --nocapture` | Requires downloaded GPT-2 assets | Run these commands from the repository root. For a lightweight CPU-only preflight, run `cargo fmt --check`, `cargo check`, and `cargo test --lib --bins`; add `cargo clippy --all-targets` when the Clippy component is installed. +Downloader regressions use mocked HTTP responses to check completed, failed, empty, and truncated transfers, timeout validation, and forced refresh. They do not download pretrained model files or require the Python ML dependencies. + Before the end-to-end check, download the model weights and tokenizer: ```bash