Cluster JUnit failures into stable fingerprints so CI triage focuses on root causes, not noisy one-off logs.
Use this skill to compress noisy JUnit failures/errors into repeatable fingerprints.
text or json)Optional:
JUNIT_GLOB (default: test-results/**/*.xml)TOP_N (default: 20)OUTPUT_FORMAT (text or json, default: text)STACK_LINES (default: 3) — number of normalized stack lines to include in fingerprint seedFAIL_ON_FAILURES (0 or 1, default: 0) — exit non-zero when any failures/errors are foundText report:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
TOP_N=15 \
bash skills/junit-failure-fingerprint/scripts/fingerprint-junit.sh
JSON output for CI annotation/upload:
JUNIT_GLOB='artifacts/junit/**/*.xml' \
OUTPUT_FORMAT=json \
FAIL_ON_FAILURES=1 \
bash skills/junit-failure-fingerprint/scripts/fingerprint-junit.sh
Run with bundled fixtures:
JUNIT_GLOB='skills/junit-failure-fingerprint/fixtures/*.xml' \
bash skills/junit-failure-fingerprint/scripts/fingerprint-junit.sh
0 by default (reporting mode)1 if FAIL_ON_FAILURES=1 and at least one failure/error is foundtext mode, prints summary + top fingerprintsjson mode, prints machine-readable groups and per-case detailZIP package — ready to use