test-flakiness
Fungsinya
Skill ini melihat hasil tes otomatis dari banyak kali jalan dan menemukan tes yang gagal secara acak. Cocok untuk pengembang dan pemimpin QA yang lelah dengan build merah yang tidak bisa diandalkan.
Kapan dipakai
- βSaat sebuah tim punya banyak kali jalan tes dan menduga beberapa tes gagal secara acak.
- βSaat pengembang mulai menganggap kegagalan CI kemungkinan besar tidak stabil.
- βSaat tes yang dikarantina membutuhkan diagnosis penyebab yang mungkin.
Link skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/test-flakiness/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTelusuri log CI kami, cari tahu tes mana yang tidak stabil, dan beri tahu saya mana yang perlu dikarantina.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill membaca file log CI, menghitung tingkat lulus di banyak kali jalan, dan menemukan kegagalan yang muncul sesekali. Skill merekomendasikan apakah setiap tes yang tidak stabil perlu dikarantina atau diperbaiki, dan bisa menyimpan laporan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Automation mode: Resolve modes.automation (project.local.yaml β
project.yaml β default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always Β· guided major-only Β· autonomous logs and proceeds;
automation_always_ask categories always prompt).
Test Flakiness Detection
A flaky test is one that sometimes passes and sometimes fails without any code change. Flaky tests are worse than no tests in some ways β they train the team to ignore red CI runs, masking genuine failures. This skill identifies them, explains likely causes, and recommends whether to quarantine or fix each one.
Output: Updated tests/regression-suite.md quarantine section + optional
production/qa/flakiness-report-[date].md
When to run:
- Polish phase (tests have had many runs; statistical signal is reliable)
- When developers start dismissing CI failures as "probably flaky"
- After
/regression-suiteidentifies quarantined tests that need diagnosis
1. Parse Arguments
Modes:
/test-flakiness [ci-log-path]β analyse a specific CI run log file/test-flakiness scanβ scan all available CI logs in.github/or standard log output directories/test-flakiness registryβ read existing regression-suite.md quarantine section and provide remediation guidance for already-known flaky tests- No argument β auto-detect: run
scanif CI logs are accessible, elseregistry
2. Locate CI Log Data
Option A β GitHub Actions (preferred)
Check for test result artifacts:
ls -t .github/ 2>/dev/null
ls -t test-results/ 2>/dev/null
For Godot projects: GdUnit4 outputs XML results compatible with JUnit format,
under reports/ (its default report folder, res://reports/). Check reports/,
and any test-results/ you saved runs into, for .xml files.
For Unity projects: game-ci test runner outputs NUnit XML to test-results/
by default.
For Unreal projects: automation logs go to Saved/Logs/. Grep for
Result={Success} and Result={Fail} β each test prints
Test Completed. Result={<status>}
(docs/engine-reference/unreal/current-best-practices.md, "Command Line").
Option B β Local log files
If a path argument is provided, read that file directly.
Option C β No log data available
If no logs found:
"No CI log data found. To detect flaky tests, this skill needs test result history from multiple runs. Options:
- Run the test suite at least 3 times and collect the output logs
- Check CI pipeline output and save a log to
test-results/- Run
/test-flakiness registryto review tests already flagged as flaky intests/regression-suite.md"
Stop and ask the user which option to pursue.
3. Parse Test Results
For each CI log or result file found, parse:
JUnit XML format (GdUnit4):
- Grep for
<testcase name=to get test names - Grep for
<failureor<errorto identify failures - Parse
classnameandnameattributes for full test identifiers
NUnit XML format (Unity β the file whose <test-run> element /smoke-check
reads):
- Each test is a
<test-caseelement; itsfullnameattribute is the identifier - Its
resultattribute isPassed,Failed,InconclusiveorSkipped(docs/engine-reference/unity/current-best-practices.md, "Command Line"); onlyPassedandFailedenter the history
Plain text logs:
- Grep for pass/fail patterns:
- Godot:
PASSED/FAILEDadjacent to test names - Unreal:
Result={Success}/Result={Fail} - Unity:
Test passed/Test failed
- Godot:
Build a table: test_id β [run1_result, run2_result, run3_result, ...]
4. Identify Flaky Tests
A test is flaky if it appears in the result history with both PASS and FAIL outcomes across runs with no code changes between them.
Flakiness thresholds:
- High flakiness: Fails in >25% of runs β quarantine immediately
- Moderate flakiness: Fails in 5β25% of runs β investigate and fix soon
- Low/suspected flakiness: Fails in 1β5% of runs β monitor; may be genuinely rare failure
With fewer than 3 runs, every finding is suspected, whatever its fail rate. One failure in two runs reads as 50%, but it is one data point: do not quarantine it, label it suspected, and ask whether more run data is available. The tiers above, and quarantine, apply from
Pertanyaan umum
Apakah perlu banyak kali jalan?
Ya. Skill bekerja paling baik setelah beberapa kali jalan, karena satu kali jalan tidak bisa menunjukkan kegagalan yang sesekali.
Apa arti karantina?
Artinya memindahkan tes yang tidak stabil dari hasil utama agar tidak lagi menyembunyikan kegagalan yang nyata.
Di mana skill mencari log?
Skill bisa menganalisis satu file log yang Anda sebutkan, atau memindai folder log CI standar.
Detail
Deskripsi asli dari pembuat
Find flaky tests from CI logs β aggregates pass rates, spots intermittent failures, recommends quarantine. After multiple runs.
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8502
- Lisensi
- MIT
- Diperbarui
- 18/10/2026
Komentar
- β¦
Skill lain dari repositori ini
adopt
33kMemeriksa apakah dokumen proyek game yang sudah ada mengikuti format template studio, lalu menulis rencana migrasi bernomor untuk memperbaiki celah yang ditemukan.
architecture-decision
33kMenulis catatan keputusan arsitektur untuk pilihan teknis, mencakup konteks, alternatif, dan konsekuensi, dengan tinjauan dari peran teknis yang tepat.
architecture-review
33kMemeriksa bahwa keputusan teknis Anda mencakup setiap kebutuhan desain, tidak saling bertentangan, dan sesuai versi mesin, dengan vonis lulus atau kekhawatiran yang jelas.
art-bible
33kMenulis art bible yang mendefinisikan identitas visual game Anda, sehingga produksi aset mengikuti satu rangkaian aturan gaya yang jelas.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.