zig: migrate to latest 0.17 nightly - #602
Open
ajroetker wants to merge 15 commits into
Open
Conversation
ajroetker
force-pushed
the
codex/zig-0.17-dev-1933
branch
from
August 30, 2026 04:19
29a95b0 to
bf6d317
Compare
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.
Summary
0.17.0-dev.1936+5a625d5f3, with all seven published archive SHA-256 values centralized inzig/toolchain.envmaindirectly to Zig 0.17 build APIs, includingLazyPathconstructors, the new output/artifact/directory argument APIs,b.addFmt, tracked Python environment inputs, and cache-poisoned CI buildsfield_names/field_valuesarrays and remove the temporary reflection compatibility layerstd.Io; model-manager coordination, multistage readers, artifact writing, native smoke/generation, layout/GLiNER2 materialization, and benchmark discovery no longer create an implicit runtime at those boundariesstd.Io.Evented/io_uring on Linux for enrichment and native storageNativeStorageStateimplementation: Threaded is state-owned, while Evented is an explicitly process-owned shared handle retained by stores, leases, FD permits, range futures, and atomic writersNativeStorage.deinitmain's glibc-linked release-compiler change: its pinned Nixpkgs exposes only Zig 0.16, so the migrated release workflows keep using the checksum-verified 0.17 nightly required by the source treeThis supersedes the implementation approach in #140 with a fresh migration from current
main.Evented lifetime contract
EventedRuntimestarts with one process-owner reference. Each native storage state retains it, and releases it only after its owner plus every lease, FD permit, future, and atomic writer have drained. Teardown closes the retain race atomically and asserts that the process owner is the final reference before deinitializing Zig's Evented executor on its initializing thread.The Linux regression uses two stores sharing one executor, keeps a lease, FD permit, and atomic writer alive across the first store's teardown, completes and reads the atomic write through retained state, then drains the children and second store before destroying Evented.
Validation
0.17.0-dev.1936+5a625d5f3remains latestpython3 scripts/ci/verify_zig_toolchain.py(all seven consumers checksum-verified)actionlint .github/workflows/zig-tests.yml .github/workflows/zig-nightly-probe.ymlactionlinton the container, release, and Darwin release-diagnostic workflows after merging currentmainmake -C zig generated-check(TLS drift, OpenAPI, Snowball, SQL grammar, and C ABI checks)zig build install --cache-poison=disallowedinzig/pkg/inferencezig build test-finetune --cache-poison=disallowed(all available suites passed; CUDA/real-model-only cases skipped as expected; native/Metal gradient parity passed)zig build wasm --cache-poison=disallowed(embedded shared smoke passed)zig build install-wasm --cache-poison=disallowed, followed by the Node embedded shared smoke against the Linux-produced artifactzig build unit-storage-compile --cache-poison=disallowedzig build unit-storage-compile -Dtarget=x86_64-linux-gnu --cache-poison=disallowedevented native storage retained children outlive their ownerwith--cache-poison=disallowedgit diff --check