Skip to content

test: restore MLX guard scan and no-GPU catalog test gates - #3765

Merged
inureyes merged 1 commit into
mainfrom
fix/3764-test-gates
Dec 4, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/3764-test-gates

Conversation

@inureyes

@inureyes inureyes commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

  • feat(speculative): add DeepSeek-V4.1 bundled DSpark drafter (#3262) #3686 already guarded pos_embed_resample_runs_in_f32; the other MLX-building tests in nemotron_h_nano_omni_tests.rs (vision tower forward and loader tests) now take mlx_test_guard() too, and the guard coverage scan passes.
  • The catalog projection takes the GPU backend kind as an input instead of calling gpu_backend_kind() inside metadata_for. CatalogProjectionCache::new() still resolves the runtime backend lazily, so production behavior is unchanged; a test-only CatalogProjectionCache::with_backend pins a kind. No process-global override is involved, so parallel tests cannot race.
  • Catalog tests project for a pinned GpuBackendKind::Metal, so the five tests that failed on default-feature Linux builds now pass there. A new test pins GpuBackendKind::None and asserts the "architecture is not runnable on the current backend" reason through both a direct projection and the cache.

Test plan

  • cargo test --lib server::webui::catalog on default features (43 passed) and with --features cuda
  • cargo test --test mlx_test_guard_coverage
  • cargo clippy --all-targets -- -D warnings on default and cuda features, cargo fmt --check

Closes #3764

@inureyes inureyes added status:review Under review type:test Test related changes priority:medium Medium priority area:core mlxcel-core: MLX FFI, primitives, KV cache, layers labels Dec 4, 2026
#3686 added the MLX test guard to the nemotron_h_nano_omni pos_embed resample test that failed the guard coverage scan. The other MLX-building tests in that file (vision tower forward and loader tests) now take the guard too, through a module-level import.

The catalog projection read gpu_backend_kind() deep inside metadata_for, so on a no-GPU build every qwen fixture projected as not runnable and five catalog tests failed. The backend kind is now a parameter of catalog_entry, single_model_entry_with_provider and metadata_for. CatalogProjectionCache resolves gpu_backend_kind() lazily as before, and a test-only with_backend constructor pins a kind. The catalog test module pins Metal for its helpers, and a new test asserts the GpuBackendKind::None reason through both a direct projection and the cache.

Closes #3764
@inureyes
inureyes force-pushed the fix/3764-test-gates branch from 635f590 to 70c0b1d Compare December 4, 2026 03:38
@inureyes
inureyes merged commit 5bf7b86 into main Dec 4, 2026
36 checks passed
@inureyes
inureyes deleted the fix/3764-test-gates branch December 4, 2026 04:29
@inureyes inureyes added status:done Completed and removed status:review Under review labels Dec 4, 2026
This was referenced Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core mlxcel-core: MLX FFI, primitives, KV cache, layers priority:medium Medium priority status:done Completed type:test Test related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: restore two main test gates (MLX test guard scan, no-GPU catalog tests)

1 participant