kova-test-heap-leaks
CommunityDiagnose heap growth in failing tests.
Software Engineering#vitest#node.js#heap snapshot#test memory#OOM debugging#memory leak triage#worker lanes
Authorchiragborse1
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you investigate suspected heap leaks or memory growth during Kova’s pnpm/Vitest test runs using heap snapshots, so you can distinguish real cleanup bugs from snapshot noise or shared-worker retained module graphs.
Core Features & Use Cases
- Reproduce with snapshot-friendly tracing: Guides you to run tests with KOVA_TEST_MEMORY_TRACE and scheduled heap snapshot collection to capture stable evidence over time.
- Compare heap snapshots deterministically: Uses heapsnapshot-delta.mjs to compare two snapshots directly or automatically choose earliest/latest per PID in a given lane directory.
- Triage by retained object families: Helps classify growth patterns (e.g., transformed-module retention vs runtime object/lifecycle leaks) and recommends how to validate conclusions with retainers/dominators.
- Produce actionable fixes: Translates dominant evidence into concrete next steps such as lane isolation, hotspot updates, singleton isolation, or test/runtime cleanup patches.
Quick Start
Run the reproduce command for your failing lane with heap snapshots enabled, then use the provided delta script to compare the earliest/latest snapshots for the same PID in the lane directory.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kova-test-heap-leaks Download link: https://github.com/chiragborse1/KovaLab/archive/main.zip#kova-test-heap-leaks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.