TopRank Skills

Home / Claw Skills / Data Analysis / ci-flake-triage
Official OpenClaw rules 36%

ci-flake-triage

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

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 ci-flake-triage 技能。 若已安装,则直接安装 ci-flake-triage 技能。

Overview

Skill Key
daniellummis/ci-flake-triage
Author
daniellummis
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/daniellummis/ci-flake-triage
Latest Commit SHA
bb57c483ce56c29c5d9dc40789f4665519d2dbc3

Extracted Content

SKILL.md excerpt

# 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

Related Claw Skills