Install
openclaw skills install ci-flake-triageDetect flaky tests from JUnit XML retries and emit a triage report with top unstable cases.
openclaw skills install ci-flake-triageUse this skill to turn noisy JUnit retry artifacts into a focused flaky-test report.
passed, failed, skipped, error)Optional:
JUNIT_GLOB (default: test-results/**/*.xml)TRIAGE_TOP (default: 20)OUTPUT_FORMAT (text or json, default: text)FAIL_ON_PERSISTENT (0 or 1, default: 0) — exit non-zero when persistent failures existFAIL_ON_FLAKE (0 or 1, default: 0) — exit non-zero when flaky candidates existText report:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
TRIAGE_TOP=15 \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
JSON output for CI ingestion:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
OUTPUT_FORMAT=json \
FAIL_ON_PERSISTENT=1 \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
Run with bundled fixtures:
JUNIT_GLOB='skills/ci-flake-triage/fixtures/*.xml' \
bash skills/ci-flake-triage/scripts/triage-flakes.sh
0 when no fail gates are enabled (default)1 if FAIL_ON_PERSISTENT=1 and persistent failures are found1 if FAIL_ON_FLAKE=1 and flaky candidates are foundtext mode, prints summary + top flaky + persistent failuresjson mode, prints machine-readable summary and testcase details