dotnet/fsharp/flaky-test-detector
Claude Code and agent skill by dotnet/fsharp
- community
Checking that the SKILL.md file is still in the repository.
Detect flaky tests by scanning recent AzDo CI builds for test failures recurring across multiple unrelated PRs. Use when investigating intermittent failures, CI instability, deciding which tests to quarantine, or checking if RunTestCasesInSequence no-ops are causing parallel-safety issues.
Install
npx vskill@latest install dotnet/fsharp/flaky-test-detectorSKILL.md
The same SKILL.md was published earlier as dotnet/fsharp/flaky-test-detector.
Flaky Test Detector
Identifies tests that fail intermittently across unrelated PRs — a strong signal of flakiness rather than a genuine regression. Also cross-references with existing fix PRs.
When to Use
- Investigating CI instability ("is this test failure my fault or flaky?")
- Periodic hygiene: finding tests to quarantine or fix
- Before marking a test as
Skip = "Flaky"— confirm it actually is flaky - Checking if
RunTestCasesInSequence(a no-op in xUnit 2) is masking parallelism bugs
How It Works
- Queries Azure DevOps builds API directly for recent failed fsharp-ci PR builds
- Extracts test failures from each build via
Get-BuildErrors.ps1 - Aggregates by test name across distinct PRs
- Cross-references with GitHub PRs that may address the flaky tests
- Tests failing in 3+ distinct PRs are flagged as flaky
Usage
Quick scan (last 14 days, 50 builds, threshold = 3)
Custom parameters
Parameters
| Parameter | Default | Description | |
|---|---|---|---|
-MaxBuilds | 50 | Maximum number of failed builds to scan from AzDo | |
-MinPRFailures | 3 | Min distinct PRs a test must fail in to be flagged | |
-DaysBack | 14 | Only consider builds within this time window | |
-DefinitionId | 90 | AzDo pipeline definition ID (90 = fsharp-ci) | |
-Org | dnceng-public | Azure DevOps organization | |
-Project | public | Azure DevOps project |
Output
The script produces:
- Console report with ranked flaky tests, PR numbers, job names, and sample errors
- Structured objects (PowerShell) for programmatic consumption
Interpreting Results
- DistinctPRs ≥ 5: Almost certainly flaky — consider quarantining immediately
- DistinctPRs = 3–4: Likely flaky — investigate root cause
- DistinctPRs = 2: Possibly flaky or a shared dependency issue — monitor
Follow-up Actions
After identifying a flaky test:
- Check if there's already a GitHub issue for it
- If not, file one with the
Area-flaky-testlabel - Consider marking with
[<Fact(Skip = "Flaky: #ISSUE")>]if it blocks CI - Fix the root cause (timing, file locking, thread safety, etc.)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/flaky-test-detector/SKILL.md
Popularity
- Repository stars
- 4,330
- Repository forks
- 872
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dotnet/fsharp/flaky-test-detector)