openclaw-test-heap-leaks

Compare .heapsnapshot files to identify dominant retained objects in OpenClaw test suites.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Diagnoses memory growth and heap snapshot patterns in test pipelines to identify leaks in the CI/local test workflow.

Core Features & Use Cases

  • Compare repeated heap snapshots to detect dominant retained objects and potential leaks across parallel test workers.
  • Triage between transformed-module retention and runtime leaks, and guide patching cleanup logic or isolating hotspot tests.
  • Integrate with existing test scripts to reproduce memory growth scenarios and verify fixes.

Quick Start

Run the heap-leak workflow to reproduce memory growth, collect repeated .heapsnapshot files, and compare them with the included heapsnapshot-delta tool.

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 a vitest test suite?

To diagnose memory leaks in a vitest test suite, you can collect and compare repeated .heapsnapshot files to identify dominant retained objects and potential leaks across parallel test workers.

What causes OOM events and RSS spikes across parallel test lanes?

OOM events and RSS spikes across parallel test lanes are typically caused by memory growth from transformed-module retention or runtime leaks, which you can triage by analyzing heap snapshot patterns.

How do I compare heap snapshots to identify dominant retained objects?

You compare heap snapshots to identify dominant retained objects by running a heap-leak workflow that collects repeated .heapsnapshot files and using an included delta tool to analyze the differences.

Does this heap snapshot analysis tool work with pnpm?

Yes, this heap snapshot analysis tool works with pnpm, specifically diagnosing pnpm and vitest memory growth scenarios across parallel lanes and verifying cleanup logic patches.

How do I triage transformed-module retention versus runtime leaks?

To triage transformed-module retention versus runtime leaks, you compare repeated heap snapshots to detect retained objects, guiding whether to patch cleanup logic or isolate hotspot tests.