Zum Inhalt springen
Kitbay
Skill

openclaw-test-heap-leaks

MITAktualisiert am 11. Nov. 2026394.329GitHub-SterneEnthält Skripte

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.

Was der Skill vermittelt

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.

Funktionen

  • 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