Skip to content

tests: the tokenizer's own tests run in CI (test-tokenizer-host) - #3082

Merged
ashhart merged 3 commits into
mainfrom
lead/tokenizer-tests-ci
Nov 18, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/tokenizer-tests-ci

Conversation

@ashhart

@ashhart ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What this changes

The tokenizer's own tests never ran in CI: the only step that reached them was filtered to "EOS policy:". A new test-tokenizer-host step (zig/build/tokenizer_host.zig) runs the whole tokenizer module's tests unfiltered, without a GPU or shader compiler, and it is in the Linux and macOS fast host lists in zig/build/host_ci.zig (kept sorted). tokenizer_test.zig now references four more files so their tests are reached; without them one test was never compiled.

Checks on this head

  • Lean checker: 345 on the base and on this head, 0 new. zig fmt --check: clean.
  • test-tokenizer-host: 55/55 (51 named tests plus 4 unnamed blocks), twice, no failures. zig build -l declares the new step and both CI aggregates, and every name in both lists resolves.
  • Not run: the full macOS fast list (it contains Metal steps); nothing on Linux here (CI covers it).

Receipt

n/a: CI wiring only; no engine code changes.

Checklist

  • The title and description match the head commit.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

…Linux and macOS fast lists

The only step reaching the tokenizer module filtered it to its two EOS policy tests, so the other 49
were never compiled in CI. test-tokenizer-host runs the module unfiltered on the host in Debug with
libc (two tests fork a child and rely on safety checks). tokenizer_test.zig now also references
regex, steps, tiktoken and unicode, so tiktoken's test is reached too. 55 tests: 51 named, 4 blocks.
@ashhart
ashhart force-pushed the lead/tokenizer-tests-ci branch from 858ab62 to 0d6f9f8 Compare November 17, 2026 23:29
@ashhart
ashhart merged commit 6824421 into main Nov 18, 2026
2 of 11 checks passed
@ashhart
ashhart deleted the lead/tokenizer-tests-ci branch November 18, 2026 03:46
ashhart added a commit that referenced this pull request Nov 18, 2026
ashhart added a commit that referenced this pull request Nov 18, 2026
ashhart added a commit that referenced this pull request Nov 18, 2026
ashhart added a commit that referenced this pull request Nov 18, 2026
ashhart added a commit that referenced this pull request Nov 18, 2026
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