← 返回 Skills 市场
daniellummis

JUnit Failure Fingerprint

作者 Daniel Lummis · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
280
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install junit-failure-fingerprint
功能描述
Cluster JUnit failures into stable fingerprints so CI triage focuses on root causes, not noisy one-off logs.
使用说明 (SKILL.md)

JUnit Failure Fingerprint

Use this skill to compress noisy JUnit failures/errors into repeatable fingerprints.

What this skill does

  • Scans one or more JUnit XML files
  • Extracts only failing/error test cases
  • Normalizes volatile tokens (IDs, numbers, line numbers, addresses, UUIDs)
  • Generates stable fingerprint hashes for similar root-cause failures
  • Emits grouped triage output (text or json)

Inputs

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 seed
  • FAIL_ON_FAILURES (0 or 1, default: 0) — exit non-zero when any failures/errors are found

Run

Text 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

Output contract

  • Exit 0 by default (reporting mode)
  • Exit 1 if FAIL_ON_FAILURES=1 and at least one failure/error is found
  • In text mode, prints summary + top fingerprints
  • In json mode, prints machine-readable groups and per-case detail
安全使用建议
This skill appears safe and does exactly what it claims: parse JUnit XMLs and produce fingerprints. Before using in CI, verify your JUNIT_GLOB value so it only matches test result files (not / or other sensitive locations). You can test locally with the provided fixtures. If you enable FAIL_ON_FAILURES, be aware it will return a non-zero exit code when failures are found, which can fail CI jobs as intended.
功能分析
Type: OpenClaw Skill Name: junit-failure-fingerprint Version: 1.0.0 The skill is a utility for clustering JUnit test failures into stable fingerprints to assist in CI triage. It uses a bash script to execute an embedded Python script that parses XML files, normalizes volatile data (such as UUIDs, hex addresses, and line numbers), and generates SHA1 hashes for grouping similar errors. No malicious behaviors, data exfiltration, or suspicious network/execution patterns were identified in scripts/fingerprint-junit.sh or the documentation.
能力评估
Purpose & Capability
Name and description (cluster JUnit failures) match the included script and SKILL.md. Required binaries (bash, python3) are appropriate and sufficient for the stated task; there are no unrelated credentials or config paths.
Instruction Scope
Runtime instructions and the script limit actions to scanning JUnit XML files (via a glob), normalizing text, hashing seeds, and printing/grouping results. Caution: JUNIT_GLOB is user-controllable — if set to a broad or sensitive filesystem path, the script will read whatever files match the glob. By default the glob targets test-results/**/*.xml and the bundled fixtures example is safe.
Install Mechanism
No install spec; this is instruction-only plus a bundled script. Nothing is downloaded or written to disk by an installer during skill installation.
Credentials
The skill requests no environment variables or credentials by default. It does accept optional environment inputs (JUNIT_GLOB, TOP_N, OUTPUT_FORMAT, STACK_LINES, FAIL_ON_FAILURES) that are reasonable for its purpose.
Persistence & Privilege
Skill is not always-enabled and does not request elevated persistence or modify other skills or system settings. It only runs when invoked and doesn't persist state or credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install junit-failure-fingerprint
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /junit-failure-fingerprint 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Version 1.0.0 — Initial release - Cluster JUnit failures and errors into stable, repeatable fingerprints for easier CI triage. - Scans JUnit XML files, normalizes volatile tokens, and groups similar failures. - Supports text or JSON outputs, configurable via environment variables. - Designed for efficient debugging with grouped triage reports and machine-readable output. - Optional non-zero exit for failed cases to integrate with CI pipelines.
元数据
Slug junit-failure-fingerprint
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

JUnit Failure Fingerprint 是什么?

Cluster JUnit failures into stable fingerprints so CI triage focuses on root causes, not noisy one-off logs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 280 次。

如何安装 JUnit Failure Fingerprint?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install junit-failure-fingerprint」即可一键安装,无需额外配置。

JUnit Failure Fingerprint 是免费的吗?

是的,JUnit Failure Fingerprint 完全免费(开源免费),可自由下载、安装和使用。

JUnit Failure Fingerprint 支持哪些平台?

JUnit Failure Fingerprint 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 JUnit Failure Fingerprint?

由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。

💬 留言讨论