Repository navigation
ci: scope the coverage report to Source/MLX* and add per-target rows - #35
Merged
Merged
Conversation
The job summary now shows one table with Lines, Regions and Functions for all of Source/MLX* and for MLX, MLXNN and MLXOptimizers, each against the 80% target. The target is reported only. The text under the table names what is not measured: the Cmlx core and the targets that the test bundle does not link. The step reads each value from the TOTAL row by its column name and fails when a value is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MLXFast, MLXFFT, MLXLinalg and MLXRandom are deprecated shims that forward to APIs in Source/MLX. Those APIs are counted in the Source/MLX row, so the text no longer reads as if FFT, linalg and random were unmeasured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
Gajesh2007
approved these changes
Oct 2, 2026
4 of 5 tasks
8 of 9 tasks
This was referenced Oct 26, 2026
jonathan308
added a commit
that referenced
this pull request
Oct 27, 2026
Source/Cmlx/mlx -> 424562b9 (core #35 with main 6bc9de5b merged); mlx-c stays 73720efb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Proposed changes
The coverage step of
Fork Testsnow says what its number measures. The ruling (David Tai, 2026-09-27 and 2026-09-29): the target is 80% line coverage, reported and never enforced, measured on host code only.Source/MLX*. One row each coversSource/MLX,Source/MLXNNandSource/MLXOptimizers, the targets that the test bundle links. The step runsllvm-cov reportonce for each row, with the directories as source paths.Tests/and.build/; the Cmlx C and C++ core, which SwiftPM compiles without instrumentation; MLXFast, MLXFFT, MLXLinalg and MLXRandom, which the test bundle does not link (they are deprecated shims that forward to APIs inSource/MLX, and those APIs are measured in theSource/MLXrow); Metal shader code, which no coverage tool can instrument. It says that Regions is the proxy for branch coverage because Swift emits no branch counters, and that the target is reported only.Nothing else in the job changes.
.github/**is in thefork.yamlignore list.Checklist
pre-commit run --all-filesto format my code / installed pre-commit prior to committing changes (not applicable: only a workflow file changes;actionlintpasses on it)fork.yamlignores.github/**)Test plan
actionlint .github/workflows/fork-tests.yml: no findings./usr/bin/python3 scripts/check_forkdiff.py --upstream-ref refs/remotes/upstream/main: passes.Job summary of that run, as the step wrote it (values checked against the TOTAL rows in the step log):
Dependencies
None.
Authorship
Written by Claude (Opus 5.5) under David Tai's direction.
🤖 Generated with Claude Code