Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

fixing-flaky-tests

Reproduce a flaky test locally, find its root cause, fix it, and validate with repeated runs.

  • Part of PostHog/posthog
  • 148 installs
  • Developer Tools · Testing and debugging

When to use it

A test fails intermittently in CI but passes on rerun, and you have the failing test name and a CI run link but no confirmed cause.

For example

You say

Use fixing-flaky-tests on the Jest test frontend/src/lib/components/InsightCard.test.tsx, which failed twice in CI this week but passes locally. Find the root cause and fix it.

You get
  • Root-cause explanation
  • Test file fix
  • N-run validation results

How it works

  • Failure rate is measured from GitHub run data, not from CI digests or alerts.
  • Reproduction escalates from single runs to CI-like sharding, ordering, and contention before any fix.
  • Deleting a test that catches nothing real is treated as a valid outcome.