Repository navigation
Description
Problem / Background
Everything below was measured directly on 2026-08-03 at main head b06cb3872.
Makefile target verify-test runs cargo test --release --features metal,accelerate, .github/workflows/nightly-verify.yml runs make verify, and CONTRIBUTING.md points contributors at the same target. All three therefore share one blind spot.
Cargo.toml declares four workspace members and no default-members:
[workspace]
members = [".", "src/lib/mlxcel-core", "src/lib/mlxcel-surgery", "src/lib/mlxcel-xla"]
resolver = "2"Because the workspace root is itself the mlxcel package, a bare cargo test there resolves to cargo test -p mlxcel and never touches the other three members. Verified:
$ cargo test --release --features metal,accelerate --no-run 2>&1 | grep -c 'mlxcel-core'
0
Zero mlxcel-core test targets are built by the command the gate runs.
What is not being tested
| member | tests | in the gate? |
|---|---|---|
mlxcel (root) |
5238 | yes |
mlxcel-core |
1354 | no |
mlxcel-surgery |
146 | no |
mlxcel-xla |
254 | no |
mlxcel-core is the crate that holds the cxx bridge to MLX, layers.rs, the KV cache, the quantization loaders and the speculative decoding round loop. It is the least covered and the most consequential.
It is currently red
cargo test --release -p mlxcel-core --features metal,accelerate --no-fail-fast fails on main:
---- fused_moe_parity_tests::fused_moe_geglu_kernel_matches_references_gemma4_shape stdout ----
fused_moe_geglu parity [metal, seed 886]: vs dense f32 (bf16-rounded) nrms=0e0 nmax=0e0; vs gather_qmm nrms=1.1697728227157964e-2 nmax=4.522727947528232e-2; gather-vs-dense baseline nrms=1.1574492404669066e-2
panicked at src/lib/mlxcel-core/src/fused_moe_parity_tests.rs:369:9
test result: FAILED. 1353 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
That specific failure is already filed as #964 (the threshold is tighter than the reference's own jitter), and these numbers confirm that diagnosis directly: the fused-versus-gather_qmm deviation (1.1698e-2) is essentially equal to the gather_qmm-versus-dense baseline (1.1574e-2), so the kernel sits inside the reference's own noise and the bound is what is wrong. Do not fix #964 here. The point is that a deterministically red test has been sitting in main invisible to every gate.
mlxcel-surgery and mlxcel-xla are currently green.
A second, narrower hole found the same way
cargo clippy --all-targets at the workspace root does not build mlxcel-core's test target either. Five Debug-bound compile errors in new mlxcel-core tests passed both make verify-test and cargo clippy --release --all-targets --features metal,accelerate -- -D warnings, and only cargo test --release -p mlxcel-core surfaced them. So the gap is not only "tests do not run", it is also "test code in three of four members is not even compiled".
Why this matters now
The nightly (#953) exists because two deterministically failing tests reached main and sat unnoticed, one for 26 days. #962 and #996 fixed the harness bug that was breaking it. #1000 reports that the job then times out in its build phase and reports nothing when it does. This issue is the third layer: even a nightly that finished and reported would still be blind to 1754 tests across three members, including the core crate.
Proposed Solution
Directions worth weighing, not a prescription:
- Add
default-membersto[workspace], or change the Makefile target tocargo test --workspace. Either makes the gate cover everything, and both will immediately go red on fix(tests): fused MoE GeGLU parity threshold is tighter than the gather_qmm reference's own jitter #964, so sequence accordingly. - Consider whether
--workspaceinteracts badly with the per-member feature flags (metal,accelerateare root features; check how they resolve formlxcel-coreandmlxcel-xla, which has anxla-ireefeature that is off by default). - Note the cost: this adds roughly 1754 tests plus three more link steps to a gate that already cannot finish inside the nightly's 180-minute budget (fix(ci): nightly-verify times out in the build phase and reports nothing when it does #1000). Fixing coverage without fixing the timeout will simply make the nightly time out earlier. The two issues should be planned together even if they land separately.
CONTRIBUTING.mdandCLAUDE.mdboth describecargo test --releaseas the local gate. Whichever way this is resolved, those need to match.
Acceptance Criteria
- The command in
verify-testcovers all four workspace members, demonstrated by a run whose output shows test binaries from each. - Test code in every member is compiled by the clippy gate, demonstrated by a deliberately broken test in
mlxcel-corefailing that gate. - The interaction with fix(ci): nightly-verify times out in the build phase and reports nothing when it does #1000's timeout is addressed or explicitly deferred with reasoning, not left implicit.
-
CONTRIBUTING.mdandCLAUDE.mddescribe whatever the gate actually becomes.
Activity
inureyes commentedon Aug 2, 2026
Concrete second instance of the clippy half, found while validating PR #1006.
cargo clippy -p mlxcel-xla --release --all-targets -- -D warningsreports 7 errors (clippy::items_after_test_moduleamong them) on themlxcel-xlalib test target. Same count onmain(b06cb3872) and on the PR branch, and PR #1006 touches zero files undersrc/lib/mlxcel-xla, so these are pre-existing rather than introduced.The project gate never sees them:
cargo clippy --release --all-targets --features metal,accelerate -- -D warningsat the workspace root passes clean, because it resolves to the root package only.--workspaceis what surfaces them.So the "test code in three of four members is not even compiled" claim in the description is not hypothetical; there is already lint debt sitting behind it in at least two members (the
Debug-bound errors described formlxcel-core, and these 7 inmlxcel-xla). Whoever fixes this should expect to clear that debt as part of the change, which is a second reason to plan it alongside the #1000 timeout rather than as a one-line Makefile edit.fix(ci): report unfinished nightly runs and cut the test build cost (#…
docs(ci): correct the workspace member count in nightly-verify
fix(test): make the CUDA merge gate runnable and serialized (#1052)
fix(ci): widen the verify gate to all four workspace members (lablup#…
fix(ci): report unfinished nightly runs and cut the test build cost (l…
fix(ci): widen the verify gate to all four workspace members (lablup#…
fix(test): make the CUDA merge gate runnable and serialized (lablup#1052