返回顶部
c

ci-flake-triage

Detect flaky tests from JUnit XML retries and emit a triage report with top unstable cases.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
245
下载量
0
收藏
概述
安装方式
版本历史

ci-flake-triage

# CI Flake Triage Use this skill to turn noisy JUnit retry artifacts into a focused flaky-test report. ## What this skill does - Reads one or more JUnit XML files (for example: first run + rerun artifacts) - Aggregates status per test case (`passed`, `failed`, `skipped`, `error`) - Flags flaky candidates when a test has both fail-like and pass outcomes - Separates persistent failures from flaky failures - Prints top flaky tests to prioritize stabilization work ## Inputs 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 exist - `FAIL_ON_FLAKE` (`0` or `1`, default: `0`) — exit non-zero when flaky candidates exist ## Run Text report: ```bash JUNIT_GLOB='artifacts/junit/**/*.xml' \ TRIAGE_TOP=15 \ bash skills/ci-flake-triage/scripts/triage-flakes.sh ``` JSON output for CI ingestion: ```bash 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: ```bash JUNIT_GLOB='skills/ci-flake-triage/fixtures/*.xml' \ bash skills/ci-flake-triage/scripts/triage-flakes.sh ``` ## Output contract - Exit `0` when no fail gates are enabled (default) - Exit `1` if `FAIL_ON_PERSISTENT=1` and persistent failures are found - Exit `1` if `FAIL_ON_FLAKE=1` and flaky candidates are found - In `text` mode, prints summary + top flaky + persistent failures - In `json` mode, prints machine-readable summary and testcase details

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ci-flake-triage-1776204195 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ci-flake-triage-1776204195 技能

通过命令行安装

skillhub install ci-flake-triage-1776204195

下载 Zip 包

⬇ 下载 ci-flake-triage v1.0.0

文件大小: 4.32 KB | 发布时间: 2026-4-15 10:54

v1.0.0 最新 2026-4-15 10:54
Initial release of ci-flake-triage.

- Detects flaky tests from JUnit XML retries and generates a triage report highlighting unstable cases.
- Aggregates and flags tests with both failing and passing outcomes.
- Separates persistent failures from flaky failures for clearer prioritization.
- Supports configurable report format (text or JSON) and result filtering.
- Includes options to control CI exit behavior based on failures or flakes.
- Provides easy-to-run scripts and bundled fixtures for testing.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部