Repository navigation
test: restore MLX guard scan and no-GPU catalog test gates - #3765
Merged
Merged
Conversation
#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
force-pushed
the
fix/3764-test-gates
branch
from
December 4, 2026 03:38
635f590 to
70c0b1d
Compare
This was referenced Dec 4, 2026
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
pos_embed_resample_runs_in_f32; the other MLX-building tests innemotron_h_nano_omni_tests.rs(vision tower forward and loader tests) now takemlx_test_guard()too, and the guard coverage scan passes.gpu_backend_kind()insidemetadata_for.CatalogProjectionCache::new()still resolves the runtime backend lazily, so production behavior is unchanged; a test-onlyCatalogProjectionCache::with_backendpins a kind. No process-global override is involved, so parallel tests cannot race.GpuBackendKind::Metal, so the five tests that failed on default-feature Linux builds now pass there. A new test pinsGpuBackendKind::Noneand 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::catalogon default features (43 passed) and with--features cudacargo test --test mlx_test_guard_coveragecargo clippy --all-targets -- -D warningson default and cuda features,cargo fmt --checkCloses #3764