Skip to content

inkling2: the Mini Metal serving test lives with native, so the family imports no native - #4897

Merged
ashhart merged 1 commit into
mainfrom
lead/inkling2-test-native
Nov 24, 2026
Merged

ashhart merged 1 commit into
mainfrom
lead/inkling2-test-native

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changes

zig/src/families/inkling2/metal/serving_test.zig imported native/inkling2.zig, which made a two-module cycle between native and families/inkling2: a family must not import native. The test moves to live with the native serving tests, so the family imports nothing from native. Every test it held still runs; no runtime code changes.

Test-only; no changelog line.

…y imports no native

families/inkling2/metal/serving_test.zig opened Mini through
native/inkling2.zig, a family importing native: with native/inkling2.zig
importing the family's Metal model, backend, state and dspark, that made a
cycle between the two. The test moves unchanged to
native/inkling2_serving_test.zig, beside native/inkling2.zig and its other
tests, reaching the family files by path as native/inkling2.zig does. It is
registered where it was reached before, under test-inkling2-metal-host's root
(inkling2_metal_host_test.zig), on Darwin only, so both checkpoint tests keep
their coverage.
@ashhart
ashhart merged commit 5093db5 into main Nov 24, 2026
12 checks passed
@ashhart
ashhart deleted the lead/inkling2-test-native branch November 24, 2026 19:22
ashhart added a commit to BlivionIaG/TensorFold that referenced this pull request Nov 24, 2026
…ng test

The admission test opens native/inkling2.zig for cacheBudget. Since ashhart#4897 a
family file imports no native (native/inkling2.zig imports the family's Metal
model, backend, state and dspark, so the other way made a cycle), so the test
moves unchanged to native/inkling2_admit_test.zig, reaching the family files by
path as native/inkling2.zig does, and is registered under
test-inkling2-metal-host's root beside native's other tests.
ashhart added a commit to BlivionIaG/TensorFold that referenced this pull request Nov 24, 2026
…ng test

The admission test opens native/inkling2.zig for cacheBudget. Since ashhart#4897 a
family file imports no native (native/inkling2.zig imports the family's Metal
model, backend, state and dspark, so the other way made a cycle), so the test
moves unchanged to native/inkling2_admit_test.zig, reaching the family files by
path as native/inkling2.zig does, and is registered under
test-inkling2-metal-host's root beside native's other tests.
ashhart added a commit that referenced this pull request Nov 24, 2026
…ng test

The admission test opens native/inkling2.zig for cacheBudget. Since #4897 a
family file imports no native (native/inkling2.zig imports the family's Metal
model, backend, state and dspark, so the other way made a cycle), so the test
moves unchanged to native/inkling2_admit_test.zig, reaching the family files by
path as native/inkling2.zig does, and is registered under
test-inkling2-metal-host's root beside native's other tests.
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