Repository navigation
Build and test from a fresh clone on Zig 0.16 - #3
Merged
Merged
Conversation
tests/quota_integration.sh called GNU timeout(1), which stock macOS does not ship, so every case that spawned mast failed with "timeout: command not found" and `zig build test` failed (14/16 steps) despite 49/49 unit tests passing. Use timeout or gtimeout when present, else a watchdog subshell that SIGTERMs the exec'd command. The sandbox policy is unchanged. Update STATUS.md and README.md test counts to the measured 49/49. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Root cause
tests/quota_integration.sh(wired intozig build test) runs the binary under GNUtimeout(1). Stock macOS does not shiptimeout, so every case that spawnedmastfailed withtimeout: command not foundand the step exited 1, even though all 49 Zig unit tests passed.The
mast.sandbox: os/shell denied — capability exec not granted (default-deny)lines in the log are not the failure. They are the expected output of the strict-mode and doctest checks, which assert that default-deny works.Fix
The script now uses
timeoutwhen it is available, then Homebrew'sgtimeout, and otherwise a small watchdog subshell. The watchdogexecs the command in the foreground, so it keeps the stdin pipe, and sends SIGTERM after N seconds. The sandbox policy and every test assertion are unchanged. STATUS.md and README.md now show the measured test count (49/49), replacing the earlier 180/180 figure.Build Summary (macOS arm64, Zig 0.16.0, fresh clone)
Build Summary: 14/16 steps succeeded (1 failed); 49/49 tests passedBuild Summary: 16/16 steps succeeded; 49/49 tests passed(checked from a second fresh clone of this branch;zig buildalso succeeds)Not addressed here
zig build doctestis a separate step and is not part ofzig build test. On macOS it fails 2 of 25 cases: themast --tui <file>check exits with status 2 and the alt-screen-enter check finds no1049h. The 25/25 doctest claim in STATUS.md is still marked as the 2026-08-20 Linux run.🤖 Generated with Claude Code