ci: rebase test performance agent updates · openclaw/openclaw@e64da8b
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,6 +18,7 @@ Hard limits:
|
18 | 18 | - Do not update snapshots, generated baselines, inventories, ignore files, lockfiles, package metadata, CI workflows, or release metadata. |
19 | 19 | - Do not add dependencies. |
20 | 20 | - Do not create, delete, or rename files. |
| 21 | +- Do not do broad refactors or style-only rewrites. |
21 | 22 | - Keep changes minimal and focused on the slow or failing tests you can justify from the report. |
22 | 23 | - Prefer no edit when a performance improvement is speculative. |
23 | 24 | - If `.artifacts/test-perf/baseline-before.json` has `"failed": true`, do not make performance-only edits. First inspect the failed config logs. Edit only when the test failure has an obvious, coverage-preserving fix. If no obvious failure fix exists, leave the worktree clean. |
@@ -26,6 +27,7 @@ Good fixes:
|
26 | 27 | |
27 | 28 | - Replace broad partial module mocks, especially `importOriginal()` mocks, with narrow injected dependencies or local runtime seams. |
28 | 29 | - Avoid importing heavy barrels in hot tests when a narrow module or helper covers the same behavior. |
| 30 | +- Add or adjust a production lazy/injection seam only when that is the narrowest way to preserve coverage while removing expensive imports or fixing an obvious mock/import failure. |
29 | 31 | - Move expensive setup from per-test hooks to shared setup only when state isolation remains correct. |
30 | 32 | - Reuse existing fixtures/builders instead of recreating expensive work per case. |
31 | 33 | - Mock expensive runtime boundaries directly: filesystem crawls, package registries, provider SDKs, network/process launch, browser/runtime scanners. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。