What problem does it solve?
Python test suites grow slow and expensive over time, and naive optimization attempts often weaken coverage, break isolation, or fail to reduce actual CI wall time. This Skill provides a measurement-driven workflow for reducing test compute and maintenance burden without losing the regressions the suite exists to catch.
Core Features & Use Cases
- Measured cost ranking: Rank tests, parameterized families, and pytest shards by observed CI span data (p50, p95, observed hours) instead of guessing from one slow local run.
- Safe optimization patterns: Apply proven fixes such as sharing expensive immutable infrastructure, moving tests to cheaper levels, retiring expired migration tests, and replacing incidental snapshots with stronger assertions.
- Post-merge verification: Compare equivalent master-branch CI windows to confirm whether testcase time, suite wall time, and ownership actually changed after a fix merges.
- Use Case: A team's backend CI shard takes 40 minutes. Use this Skill to rank the slowest parameterized families from trace data, consolidate repeated database fixture setup while preserving per-case isolation, and verify the shard's wall time dropped on fresh master runs.
Quick Start
Ask the AI to investigate the slowest pytest suites in the repository and propose a measured optimization plan using this skill.