Skip to content

SL-30: run shadow-check in CI and exempt two reviewed name collisions - #118

Merged
solderzzc merged 1 commit into
mainfrom
sl30/shadow-check-ci
Nov 5, 2026
Merged

solderzzc merged 1 commit into
mainfrom
sl30/shadow-check-ci

Conversation

@solderzzc

@solderzzc solderzzc commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Runs the overlay-vs-upstream shadow check automatically.

  • New workflow `.github/workflows/shadow-check.yml`: Ubuntu, shallow clone of ml-explore/mlx-swift-lm main, runs `scripts/conformance/upstream/shadow-check.sh`. Triggers on PRs that touch `Libraries/` or `scripts/conformance/`. No Swift toolchain, no macOS runner.
  • The unchanged check fails on current upstream main (c8dabc6) with two name-level hits: `blockSize` and `update`. Both are same-named members of different types (`MXFP4Checkpoint` vs `Lille130mConfiguration`; a static func vs `EmbedderModelContainer`'s instance method), so they cannot break the build.
  • Fix: `scripts/conformance/upstream/shadow-collision-exemptions.txt` lists each one as name + our file, with the reason. An exemption needs both to match, so a new collision, or the same name from another file, still fails.
  • `--exemptions FILE` option; two new self-tests (planted collision is exempt when both match; a different file still fails).

Verification:

  • `test-shadow-check.sh`: 12/12 PASS, exit 0.
  • `shadow-check.sh --upstream <full ml-explore/mlx-swift-lm clone at c8dabc6>`: `SHADOW_CHECK=PASS`, 2 EXEMPT.

Matrix: SL-30.

🤖 Generated with Claude Code

The overlay-vs-upstream shadow check was never run automatically. This adds a small
Ubuntu workflow that shallow-clones ml-explore/mlx-swift-lm main and runs shadow-check.sh
on PRs that touch Libraries/ or scripts/conformance/. No Swift toolchain, no macOS runner.

Against upstream c8dabc6 the unchanged check FAILS on two name-level hits that cannot
break the build: blockSize (a property of MXFP4Checkpoint vs of Lille130mConfiguration)
and update (a static func vs an EmbedderModelContainer instance method). They are now
listed in shadow-collision-exemptions.txt as name + our file, so both must match. A new
collision, or the same name from another file, still fails.

Adds --exemptions FILE and two self-tests (12/12 PASS, exit 0). Real upstream run: PASS,
2 EXEMPT.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@solderzzc
solderzzc merged commit d42bacc into main Nov 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant