Skip to content

tests, qwen3_5, native: split four more busy 600-line files (cap headroom) - #5595

Merged
ashhart merged 7 commits into
mainfrom
lead/cap-splits-2
Nov 29, 2026
Merged

ashhart merged 7 commits into
mainfrom
lead/cap-splits-2

Conversation

@ashhart

@ashhart ashhart commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What this changes

Thirty-five source files on main sit at exactly 600 lines, the source cap, so any pull request that adds a line to one of them fails the cap once merged with main and needs an extra adapt commit. #5583 splits three of them; this splits the next four changed most often in the last seven days:

  • zig/tests/contract/metal_limits.zig (600 to 516): the launch helpers move to metal_launch_helpers.zig, with aliases left under the old names.
  • zig/tests/contract/metal_inkling2_glue.zig (600 to 486): the Suite type and its probe helpers move to metal_inkling2_glue_suite.zig, re-exported from the old module.
  • zig/src/families/qwen3_5/cuda_draft.zig (600 to 520): the stream support declarations and their tests move to cuda_draft_support.zig.
  • zig/src/native/qwen27_lanes.zig (600 to 419): the lane backend functions move to qwen27_lane_backend.zig.

What stays the same

All 33 moved declarations are unchanged apart from indentation and the pub needed across modules. No renames, no call site, behaviour or test name changes.

Checks

  • zig fmt, zig ast-check on all nine touched files; lean: same findings as main; no file over 600 lines.
  • Host steps: test-inkling2-launch-map-host check-native-cuda-host test-qwen35-copies-host test-qwen27-reply-cache-host test-qwen27-window-host pass. test-metal-launch-map-host and test-qwen27-shared-allocation-host fail the same way on main and on this branch.
  • macOS Metal contract compile runs in CI.

@ashhart
ashhart force-pushed the lead/cap-splits-2 branch 2 times, most recently from e2f95ca to 85d52d7 Compare November 29, 2026 04:42
@ashhart
ashhart merged commit 52bebec into main Nov 29, 2026
2 of 13 checks passed
@ashhart
ashhart deleted the lead/cap-splits-2 branch November 29, 2026 10:43
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