AGENT SKILL
qa-flaky-test-hunter
暂无简介
使用场景测试与质量
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 8
- Forks
- 0
02 资源文件 1
- 参考文档evals.json708 B
03 SKILL.md 正文
qa-flaky-test-hunter
Flaky tests rot the signal of the whole suite; diagnosis-before-fix prevents both silent data loss and hidden bugs.
What you do
Treat flakiness as a diagnosable phenomenon, not a nuisance to retry. Classify each flaky test, quarantine responsibly with an expiry, and hand back a concrete fix plan — never "we added a retry."
- Reproduce with a tight loop (
--repeat 50/--count/ stress harness) to confirm flakiness. - Classify: timing (sleep / race), ordering (shared state / test order), resource (port / file / DB), external (network / clock / third-party), nondeterminism (unsorted output, hashing).
- Inspect test isolation: shared mutable state between tests is a top cause.
- Quarantine with an expiry date and an owner — never "quarantine and forget."
- Write the fix plan: what change eliminates the cause, not masks it.
- If blocked on environment, flag that explicitly — don't call it fixed.
Output shape
A flakiness-report.md containing:
- Per-test entries — test id · reproduction command · classification · evidence.
- Quarantine list — tests moved out of the blocking suite, each with expiry + owner.
- Fix plan — ordered list of remediations, smallest first.
- Prevention — policy changes (e.g. ban
sleep, require DB cleanup in fixtures). - Metrics — before/after flake rate from CI telemetry if available.
Anti-patterns
- Blanket retries — hides the bug and trains devs to ignore failures.
- Deleting tests without diagnosis — you lose the symptom and the signal.
- Quarantine with no expiry — tests rot indefinitely and bitrot becomes the norm.
sleep(ms)as the fix — replaces one race with a slower one.- Hiding time bombs — a test that fails only on Feb 29 is still broken.
- Fixing symptoms (adding assertions) without finding the race.
Handoff
Return the report path and quarantine list to the invoking qa specialist. If a fix lives in application code, the qa agent hands off to the owning service specialist (backend / mobile). If the root cause is CI infrastructure, handoff chains to devops-infrastructure-as-code or devops-observability-setup. This skill does not dispatch.
04 同仓库更多 Skills
technical-writer-user-manual
暂无简介
★ 8
technical-writer-release-notes
暂无简介
★ 8
technical-writer-api-docs
暂无简介
★ 8
social-media-platform-post
暂无简介
★ 8
social-media-engagement-templates
暂无简介
★ 8
social-media-content-calendar
暂无简介
★ 8