Skip to content

Build and test from a fresh clone on Zig 0.16 - #3

Merged
SMC17 merged 1 commit into
mainfrom
fix/fresh-clone-0.16
Nov 18, 2026
Merged

SMC17 merged 1 commit into
mainfrom
fix/fresh-clone-0.16

Conversation

@SMC17

@SMC17 SMC17 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Root cause

tests/quota_integration.sh (wired into zig build test) runs the binary under GNU timeout(1). Stock macOS does not ship timeout, so every case that spawned mast failed with timeout: command not found and 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 timeout when it is available, then Homebrew's gtimeout, and otherwise a small watchdog subshell. The watchdog execs 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)

  • Before: Build Summary: 14/16 steps succeeded (1 failed); 49/49 tests passed
  • After: Build Summary: 16/16 steps succeeded; 49/49 tests passed (checked from a second fresh clone of this branch; zig build also succeeds)

Not addressed here

zig build doctest is a separate step and is not part of zig build test. On macOS it fails 2 of 25 cases: the mast --tui <file> check exits with status 2 and the alt-screen-enter check finds no 1049h. The 25/25 doctest claim in STATUS.md is still marked as the 2026-08-20 Linux run.

🤖 Generated with Claude Code

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]>
@SMC17
SMC17 merged commit f2476f4 into main Nov 18, 2026
0 of 3 checks passed
@SMC17
SMC17 deleted the fix/fresh-clone-0.16 branch November 18, 2026 00:06
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