mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:00:42 +00:00
ci: add test performance agent
This commit is contained in:
13
docs/ci.md
13
docs/ci.md
@@ -25,6 +25,16 @@ listed PRs when `apply=true`. Before mutating GitHub, it verifies that the
|
||||
landed PR is merged and that each duplicate has either a shared referenced issue
|
||||
or overlapping changed hunks.
|
||||
|
||||
The `Test Performance Agent` workflow is an event-driven Codex maintenance lane
|
||||
for slow tests. It has no pure schedule: a successful non-bot push CI run on
|
||||
`main` can trigger it, but it skips if another workflow-run invocation already
|
||||
ran or is running that UTC day. Manual dispatch bypasses that daily activity
|
||||
gate. The lane builds a full-suite grouped Vitest performance report, lets Codex
|
||||
make only small coverage-preserving test performance fixes, then reruns the
|
||||
full-suite report and rejects changes that reduce the passing baseline test
|
||||
count. If the baseline has failing tests, Codex may fix only obvious failures
|
||||
and the after-agent full-suite report must pass before anything is committed.
|
||||
|
||||
```bash
|
||||
gh workflow run duplicate-after-merge.yml \
|
||||
-f landed_pr=70532 \
|
||||
@@ -56,6 +66,7 @@ gh workflow run duplicate-after-merge.yml \
|
||||
| `macos-node` | macOS TypeScript test lane using the shared built artifacts | macOS-relevant changes |
|
||||
| `macos-swift` | Swift lint, build, and tests for the macOS app | macOS-relevant changes |
|
||||
| `android` | Android unit tests for both flavors plus one debug APK build | Android-relevant changes |
|
||||
| `test-performance-agent` | Daily Codex slow-test optimization after trusted activity | Main CI success or manual dispatch |
|
||||
|
||||
## Fail-Fast Order
|
||||
|
||||
@@ -111,4 +122,6 @@ pnpm check:docs # docs format + lint + broken links
|
||||
pnpm build # build dist when CI artifact/build-smoke lanes matter
|
||||
node scripts/ci-run-timings.mjs <run-id> # summarize wall time, queue time, and slowest jobs
|
||||
node scripts/ci-run-timings.mjs --recent 10 # compare recent successful main CI runs
|
||||
pnpm test:perf:groups --full-suite --allow-failures --output .artifacts/test-perf/baseline-before.json
|
||||
pnpm test:perf:groups:compare .artifacts/test-perf/baseline-before.json .artifacts/test-perf/after-agent.json
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user