From ece22d98cbf4eb4627b3d6cd384750103cc102bf Mon Sep 17 00:00:00 2001 From: ciregenz Date: Mon, 6 Jul 2026 15:14:39 -0700 Subject: [PATCH] [eric] ci: portable timeout for the CLI exercise (macOS runners lack coreutils timeout) --- .github/workflows/intel-x64-verify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/intel-x64-verify.yml b/.github/workflows/intel-x64-verify.yml index ab507fc3..313f58a6 100644 --- a/.github/workflows/intel-x64-verify.yml +++ b/.github/workflows/intel-x64-verify.yml @@ -75,7 +75,8 @@ jobs: # a real invocation exercises the JIT/network paths; a clean auth # error (not a SIGILL/crash) is the pass condition set +e - ANTHROPIC_API_KEY=sk-ant-invalid timeout 90 "$CLI" -p "hi" --model claude-haiku-4-5-20251001 > /tmp/cli-run.out 2>&1 + # macOS has no `timeout`; perl alarm is the portable equivalent + ANTHROPIC_API_KEY=sk-ant-invalid perl -e 'alarm 90; exec @ARGV' -- "$CLI" -p "hi" --model claude-haiku-4-5-20251001 > /tmp/cli-run.out 2>&1 CODE=$? set -e cat /tmp/cli-run.out