test-flakiness
यह क्या करती है
यह स्किल कई रन में ऑटोमेटेड टेस्ट के नतीजे देखती है और ऐसे टेस्ट खोजती है जो बेतरतीब तरीके से फ़ेल होते हैं। यह डेवलपर्स और QA लीड्स के लिए है जो भरोसे लायक न होने वाले लाल बिल्ड से परेशान हैं।
कब इस्तेमाल करें
- ✓जब टीम के पास बहुत सारे टेस्ट रन हों और शक हो कि कुछ टेस्ट बेतरतीब फ़ेल होते हैं।
- ✓जब डेवलपर्स CI की विफलताओं को यह कहकर टालने लगें कि शायद वे फ़्लेकी हैं।
- ✓जब अलग रखे गए टेस्ट के संभावित कारणों का निदान चाहिए।
Skill का लिंक
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/test-flakiness/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे CI लॉग देखिए, पता लगाइए कौन-से टेस्ट फ़्लेकी हैं, और बताइए किन्हें अलग रखना है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल CI लॉग फ़ाइलें पढ़ती है, कई रन में पास दर निकालती है, और बीच-बीच में होने वाली विफलताएँ पहचानती है। हर फ़्लेकी टेस्ट के लिए बताती है कि उसे अलग रखना है या ठीक करना है, और चाहें तो रिपोर्ट सहेजती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या इसे कई रन चाहिए?
हाँ। यह कई रन के बाद सबसे अच्छा काम करती है, क्योंकि एक रन में बीच-बीच की विफलता नहीं दिखती।
quarantine का क्या मतलब है?
इसका मतलब है फ़्लेकी टेस्ट को मुख्य नतीजों से हटाना, ताकि वह असली विफलताएँ न छिपाए।
यह लॉग कहाँ खोजती है?
यह आपके बताए एक लॉग फ़ाइल का विश्लेषण कर सकती है, या मानक CI लॉग फ़ोल्डर स्कैन कर सकती है।
जानकारी
लेखक का मूल विवरण
Find flaky tests from CI logs — aggregates pass rates, spots intermittent failures, recommends quarantine. After multiple runs.
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8502
- लाइसेंस
- MIT
- अपडेट की गई
- 18/10/2026
कमेंट
- …
इस repository की और skills
adopt
33kजाँचती है कि किसी मौजूदा गेम प्रोजेक्ट के दस्तावेज़ स्टूडियो टेम्पलेट के फ़ॉर्मेट से मेल खाते हैं या नहीं, फिर कमियाँ ठीक करने के लिए क्रमांकित माइग्रेशन योजना लिखती है।
architecture-decision
33kकिसी तकनीकी चुनाव के लिए आर्किटेक्चर डिसीज़न रिकॉर्ड लिखती है, जिसमें संदर्भ, विकल्प और परिणाम शामिल हैं, और सही तकनीकी भूमिकाओं से समीक्षा करवाती है।
architecture-review
33kजाँचती है कि आपके तकनीकी फ़ैसले हर डिज़ाइन ज़रूरत को कवर करते हैं, आपस में टकराते नहीं और इंजन के वर्शन में फ़िट होते हैं, और साफ़ पास या चिंता वाला फ़ैसला देती है।
art-bible
33kआपके गेम की विज़ुअल पहचान तय करने वाली आर्ट बाइबल लिखती है, ताकि एसेट बनाने का काम एक साफ़ शैली-नियम पर चले।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।