steipete/openclaw · Archived

optimizetests

Optimize OpenClaw slow tests, imports, misplaced coverage, and CI wall time without dropping coverage.

First seen Jul 13, 2026

Installation

$ npx skills add steipete/openclaw --skill optimizetests

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from steipete/openclaw · top by installs.

npx skills add steipete/openclaw

Browse all from steipete/openclaw

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Stars 17
License LICENSE
Default branch main
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,049 B
  • docs SUMMARY.md 123 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Optimize Tests

Goal: real OpenClaw test/runtime speedups with coverage intact. Do not add shards, skip assertions, weaken gates, or tune runner flags as the main fix.

Runbook

  1. Read docs/help/testing.md, docs/ci.md, and the scoped AGENTS.md files

for any subtree you will edit.

  1. Establish evidence before edits:

- Full ranking: pnpm test:perf:groups --full-suite --allow-failures --output .artifacts/test-perf/<name>.json - Targeted file: timeout 240 /usr/bin/time -l pnpm test <file> --maxWorkers=1 --reporter=verbose - Import suspicion: add OPENCLAWVITESTIMPORTDURATIONS=1 OPENCLAWVITESTPRINTIMPORT_BREAKDOWN=1

  1. Attack highest-return hotspots first:

- broad barrels or importActual() in hot tests - per-test vi.resetModules() plus fresh imports - expensive gateway/server/client setup where reset/reuse proves same behavior - core tests asserting extension-owned behavior - duplicated fixture construction or contract assertions

  1. Prefer production-quality fixes:

- narrow runtime seams over broad mocks - pure helpers for static parsing/metadata - injected deps over module resets - extension-owned tests for bundled plugin/provider/channel behavior

  1. After each change, rerun the same benchmark and the proving test lane. Record

before/after wall time, Vitest duration, and max RSS when available.

  1. Run pnpm check:changed; run broader gates (pnpm check, pnpm test,

pnpm build) when touched surfaces require them.

  1. Commit scoped changes with scripts/committer "<conventional message>" <paths...>.

Push when requested. If CI is red, inspect with gh run list/view, fix, push, repeat until current CI is green or a blocker is proven unrelated.

Output

End with the pushed commit(s), before/after timings, gates run, current CI state, and any remaining tail lanes that need separate optimization.