openclaw-test-heap-leaks

Compare .heapsnapshot deltas to triage RSS increases in test runs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/chiragborse1/Kove --skill openclaw-test-heap-leaks-chiragborse1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/chiragborse1/Kove/tree/main/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/chiragborse1/Kove --skill openclaw-test-heap-leaks-chiragborse1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Investigate memory growth in test runs and triage RSS increases using heap snapshots to distinguish real leaks from test-time artifacts.

Core Features & Use Cases

  • Collect and compare repeated .heapsnapshot files from tests to identify growth patterns.
  • Distinguish between transformed-module retention vs runtime leaks using delta analysis.
  • Apply memory-diagnostic workflows in CI and local development to isolate hotspot tests.

Quick Start

Trigger the memory-diagnostics workflow to reproduce memory growth and generate memory snapshots for analysis.

Frequently Asked Questions about openclaw-test-heap-leaks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify memory leaks in vitest test runs using heap snapshots?

To identify memory leaks in vitest test runs, collect repeated .heapsnapshot files during execution and use delta analysis to compute memory growth patterns. This separates transformed-module retention from actual runtime leaks by comparing snapshot deltas across different PIDs.

Why does RSS increase during node testing and how can I triage it?

RSS increases during node testing due to module retention or runtime leaks. Triage RSS increases by collecting multiple .heapsnapshot files and calculating deltas with the heapsnapshot-delta.mjs script to isolate whether transformed modules or actual runtime hotspots cause the growth.

What's the best way to reproduce flaky CI test lanes caused by memory growth?

Reproduce flaky CI test lanes by applying memory-diagnostic workflows locally and in CI to trigger memory growth. Collect multiple .heapsnapshot files from the failing lanes and compare deltas across PIDs to isolate the specific hotspot tests causing the flakiness.

Can I use pnpm to distinguish between transformed-module retention and runtime leaks?

Yes, you can use pnpm to run the memory-diagnostics workflow that generates heap snapshots. By computing deltas across collected .heapsnapshot files from different PIDs, you can distinguish transformed-module retention from genuine runtime leaks in your test environment.

Does the heap snapshot delta analysis work for both local development and CI environments?

Heap snapshot delta analysis works for both local development and CI environments. The scripts/heapsnapshot-delta.mjs tool computes deltas and presents actionable findings to triage RSS increases and isolate hotspot tests regardless of where the memory growth occurs.

When should I not use heap snapshots to investigate test memory leaks?

Heap snapshots may not be suitable when you need immediate feedback on memory growth without the overhead of generating and storing multiple .heapsnapshot files. If the leaks are easily reproducible through simpler profiling methods, the delta analysis workflow might be unnecessary for your testing setup.