openclaw-test-heap-leaks

Compare pre- and post-execution heap snapshots to diagnose memory growth in OpenClaw tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps engineers diagnose test memory growth, Vitest OOMs, and suspicious RSS increases in OpenClaw by using dedicated heap-snapshot tooling to compare pre- and post-test deltas and triage retention vs runtime leaks.

Core Features & Use Cases

  • Heap-snapshot driven triage: compare snapshots to identify dominant memory consumers and retainers.
  • Delta analysis helper: leverage scripts/heapsnapshot-delta.mjs to produce concise deltas suitable for fast triage.
  • CI and local debugging: reproduce memory growth in unit lanes and isolate hotspots for remediation.

Quick Start

Run the heap-leak workflow to reproduce a failing test and collect two heapsnapshots for delta 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 diagnose memory leaks in Vitest?

To diagnose memory leaks in Vitest, compare pre- and post-execution heap snapshots to pinpoint dominant memory consumers and identify retained modules versus runtime leaks.

What's the best way to triage OOM crashes during pnpm test runs?

Triage OOM crashes during pnpm test runs by using heap-snapshot delta analysis to reproduce memory growth in unit lanes and isolate suspicious RSS increases.

Can I use heap snapshots to identify retained modules in CI pipelines?

Yes, you can use heap snapshots in CI pipelines to identify retained modules by collecting pre- and post-test snapshots and computing deltas to detect memory growth.

How do I compare heap snapshots to isolate memory growth?

Compare heap snapshots to isolate memory growth by leveraging a delta analysis helper that computes concise deltas suitable for fast triage of dominant memory consumers and retainers.

Does heap delta analysis work with parallel workers?

Heap delta analysis works with parallel workers by applying heuristics to heap snapshots collected before and after test execution, isolating runtime leaks in local and CI environments.