v1.0.0
Swift 6 command-line tool for AI-powered CI failure analysis on Apple platforms. Parses xcodebuild console output and xcresult bundles. Rule-based classifier with Claude fallback via URLSession. Actor-based SQLite flaky test tracker with 90-day recurrence scoring. Native Swift 6 concurrency throughout: actor, async/await, Sendable, typed throws.
Added
--exit-codeflag: returns exit code 1 when a failure is detected, enabling CI gate mode in Jenkinsfiles and GitHub Actions- macOS binary published as a release asset — download and run without a Swift toolchain
Install
# Download binary (no Xcode required)
curl -L https://github.com/gerardrecinto/xctriage/releases/latest/download/xctriage -o xctriage
chmod +x xctriage
mv xctriage /usr/local/bin/xctriage
# Or build from source
git clone https://github.com/gerardrecinto/xctriage.git
cd xctriage
swift build -c release
cp .build/release/xctriage /usr/local/bin/Usage
xctriage analyze xcbuild.log --source xcodebuild
xctriage analyze build.xcresult
xcodebuild test -scheme MyApp 2>&1 | xctriage analyze - --source xcodebuild
xctriage analyze xcbuild.log --source xcodebuild --exit-code # exits 1 on failure
xctriage flaky --n 20
export XCTRIAGE_ANTHROPIC_API_KEY=sk-ant-...
xctriage analyze xcbuild.log --source xcodebuild --llmFailure categories
compilation_error, test_failure, flaky_test, resource_exhaustion, infra_failure, dependency_failure, timeout — 17 NSRegularExpression patterns across 7 Apple-specific categories