diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index c27e7148b..ab5c02e9d 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "de20d3a02412433b89867bc08b583ee848526bba", - "syncedAt": "2026-04-06T15:30:25.452Z" + "sha": "a830f4de4bb44a5cce3831caeae64eccc1a91499", + "syncedAt": "2026-04-06T15:50:16.736Z" } diff --git a/docs/help/testing.md b/docs/help/testing.md index f7dda0fac..80d86cf1e 100644 --- a/docs/help/testing.md +++ b/docs/help/testing.md @@ -88,6 +88,8 @@ Think of the suites as “increasing realism” (and increasing flakiness/cost): - Perf-debug note: - `pnpm test:perf:imports` enables Vitest import-duration reporting plus import-breakdown output. - `pnpm test:perf:imports:changed` scopes the same profiling view to files changed since `origin/main`. +- `pnpm test:perf:changed:bench -- --ref ` compares routed `test:changed` against the native root-project path for that committed diff and prints wall time plus macOS max RSS. +- `pnpm test:perf:changed:bench -- --worktree` benchmarks the current dirty tree by routing the changed file list through `scripts/test-projects.mjs` and the root Vitest config. - `pnpm test:perf:profile:main` writes a main-thread CPU profile for Vitest/Vite startup and transform overhead. - `pnpm test:perf:profile:runner` writes runner CPU+heap profiles for the unit suite with file parallelism disabled. diff --git a/docs/reference/test.md b/docs/reference/test.md index 7633a04cf..9dc03790b 100644 --- a/docs/reference/test.md +++ b/docs/reference/test.md @@ -22,6 +22,8 @@ title: "Tests" - `pnpm test:extensions`: runs extension/plugin suites. - `pnpm test:perf:imports`: enables Vitest import-duration + import-breakdown reporting, while still using scoped lane routing for explicit file/directory targets. - `pnpm test:perf:imports:changed`: same import profiling, but only for files changed since `origin/main`. +- `pnpm test:perf:changed:bench -- --ref ` benchmarks the routed changed-mode path against the native root-project run for the same committed git diff. +- `pnpm test:perf:changed:bench -- --worktree` benchmarks the current worktree change set without committing first. - `pnpm test:perf:profile:main`: writes a CPU profile for the Vitest main thread (`.artifacts/vitest-main-profile`). - `pnpm test:perf:profile:runner`: writes CPU + heap profiles for the unit runner (`.artifacts/vitest-runner-profile`). - Gateway integration: opt-in via `OPENCLAW_TEST_INCLUDE_GATEWAY=1 pnpm test` or `pnpm test:gateway`.