Pular para o conteúdo
Kitbay
Skill

openclaw-test-heap-leaks

MITAtualizado em 11 de nov. de 2026394.329Estrelas no GitHubInclui scripts

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it.

O que a skill ensina

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it. The agent reproduces the failing run with the same entry point and worker count, gathers heap profiles or snapshots, and compares snapshots from the same process with a bundled delta script. It then sorts growth into module graphs kept alive by long-lived workers versus real leaks in caches, timers, handles or mocks, fixes the matching layer, and reruns the same command to check the result. A separate harness checks fixes to a runtime leak. Its report gives the command, the objects retained and what was or was not confirmed.

O que faz

  • Reproduce test-run memory growth
  • Compare heap snapshots from one process
  • Tell module retention from real leaks
  • Verify a leak fix with the same command