openclaw/docs/help
Peter Steinberger 777421df55
fix(test): leaked skills watchers flake later fake-timer tests instead of failing their file (#162454)
skills.status and skill snapshot preparation start real @openclaw/fs-safe
watchers. In the shared-worker (non-isolated) Vitest lanes a file that never
closed them left them running after the module reset, unreachable, and their
re-armed poll and change-hint timers landed on whichever fake clock a later
file installed. That file's vi.runAllTimersAsync() then aborted after 10000
timers, far from the cause (session-catalog.session-share.test.ts; leaker
fixed in #162261, an earlier occurrence patched at the victim in #114751).

The non-isolated runner now remembers every real refresh.ts generation from
Vite's evaluated module graph, pairing each closeSkillsWatchers export with
the registry instance that generation imported. It captures at task
boundaries and before every vi.resetModules(), so generations a test erases
or shadows mid-test are still seen. After each file it closes leftover
watchers and fails that file with "skills watchers failed", naming it. No
production code changes.

The composite runner test gains a producer/observer pair: the producer
leaves two reset and shadowed generations open, and the observer in the next
file asserts both were closed. Without the drain, the reset wrapper, or the
import-graph pairing, the producer passes and the observer sees a live owner.
2026-10-01 06:49:49 -07:00
..
faq refactor: remove Tasks and TaskFlow runtime (#159179) 2026-09-27 10:40:29 -07:00
faq-first-run fix: skip official setup approvals and default to Astra (#145646) 2026-09-12 00:34:25 -07:00
testing fix(test): leaked skills watchers flake later fake-timer tests instead of failing their file (#162454) 2026-10-01 06:49:49 -07:00
testing-live fix(fireworks): replace the retired GLM 5.2 Fast default router (#160102) 2026-09-27 22:19:45 -07:00
debugging.md
environment.md perf(memory): floor watcher polling fallback and report it once (#162271) 2026-10-01 05:10:56 +00:00
faq-first-run.md
faq-models.md feat(anthropic): support Claude Sonnet 5.5 (#160847) 2026-09-29 02:49:52 +00:00
faq.md
index.md
scripts.md refactor(scripts): deslop tooling scripts (#160798) 2026-09-28 17:20:56 -07:00
testing-live.md
testing-updates-plugins.md feat: back up to external disks and Cloudflare R2 with storage locations (#161913) 2026-10-01 02:05:44 -07:00
testing.md
troubleshooting.md fix(onboarding): default to Full tools and unify catalog discovery (#150596) 2026-09-17 12:46:58 +05:30