Repository navigation
fix(perf): retain startup benchmark warmups - #117649
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 7:37 PM ET / 23:37 UTC. ClawSweeper reviewWhat this changesThe PR records startup-benchmark warmup results and wall-clock timestamps, then applies existing execution-health validation to warmups while leaving measured summaries and comparisons unchanged. Merge readinessThe patch correctly retains and validates startup warmups without contaminating measured performance statistics. The explicit workflow-owner approval resolves the prior policy question; because this is a MEMBER-authored PR with a protected Priority: P3 Review scores
Verification
How this fits togetherThe startup benchmark launches OpenClaw CLI commands and emits a JSON report for source-performance automation. Warmups establish runtime state before measured samples; this change makes their health observable without using them as performance data. flowchart LR
A[Benchmark cases] --> B[CLI sample runner]
B --> C[Warmup records]
B --> D[Measured records]
C --> E[Execution-health validation]
D --> E
D --> F[Performance summaries]
E --> G[Source-performance gate]
F --> H[JSON report]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +50, Other +18. Total +68 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused runner-boundary change so warmups provide diagnostic health evidence while measured samples remain the sole source of performance statistics. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source discards warmup results before the sample-health validator, so a failed warmup can leave only valid measured samples to determine the result; the supplied exact-head workflow run exercises the repaired path. Is this the best way to solve the issue? Yes. Capturing warmups at the runner boundary and feeding them to the existing validator is the narrowest maintainable repair, preserving the measured-only summary and comparison contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2f06ed30d8b1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
36a7385 to
bb36df0
Compare
|
@clawsweeper re-review All prior before-merge items are resolved on
Please refresh the durable review against this exact head. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Final exact-head landing gate for
Please close every remaining before-merge item in the durable review if this |
|
@clawsweeper re-review Maintainer and benchmark-workflow owner decision for I approve the fail-closed policy. A warmup is required command-health evidence, All exact-head checks and Kova lanes are green, and the merge tree against |
|
Merged via squash.
|
Related: #117525
What Problem This Solves
Startup benchmark warmups were discarded entirely. A failed or timed-out
warmup could leave the report green, and maintainers could not correlate an
observed Gateway failure with warmup versus measured samples.
Why This Change Was Made
The benchmark now retains warmup samples separately from measured samples,
records wall-clock start and end timestamps for every execution, and applies
the existing sample validity checks to warmups. Measured summaries and baseline
comparisons remain unchanged.
Maintainer Decision
Fail closed when a warmup fails. A warmup exercises the same command and
environment as measured samples; silently discarding its failure produces a
misleading green report. Warmups remain excluded from measured summaries, so
this does not bias performance statistics.
The prior exact-head source failure was classified from run
30719599205. Itsconnected-health warmup began 378 ms after HTTP readiness and timed out after
10 seconds while the Gateway later logged a WebSocket handshake timeout. That
was the HTTP-versus-WebSocket readiness race fixed by
#117655, not a benchmark-script
regression.
User Impact
No product runtime behavior changes. Maintainers get fail-closed startup reports
and enough timing context to correlate CLI executions with Gateway logs.
Exact-Head Evidence
bb36df0ab806b56264ab3020ab8757a0d85da235.https://github.com/openclaw/openclaw/actions/runs/30722795395
profile, and live OpenAI.
(
status-cli921 MB over 900 MB; agent 1046 MB over 1000 MB). The workflowclassified these as profiling-only diagnostics and passed; this PR does not
change runtime memory behavior.
Local Verification
node scripts/run-vitest.mjs test/scripts/bench-cli-startup.test.ts test/scripts/cli-startup-bench-spawner.test.tsoxfmt --checkpassed for all three changed files.oxlintpassed for all three changed files.git diff --checkpassed.mainat6c9b38862d2d32133edde3127b3eeb0056feb90fhas not changed the three touched files, and
git merge-tree --write-treeis clean.
Storage And Compatibility
No persisted state, schema, config, protocol, or product runtime contract
changes. The serialized JSON report gains additive
warmupSamplesand sampletimestamps for internal performance automation only.