Repository navigation
test(perf): exercise dashboard traffic and large worktrees in gateway soaks - #179074
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 165bec5b85
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs changes before merge. What this changesThis PR adds dashboard RPC traffic, multiple worktree diffs, long reasoning histories, large checkouts, and worker-memory observations to Gateway benchmarks. Example: Run a Gateway memory soak with 40 viewers and three registered worktrees.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this useful, maintainer-directed benchmark expansion open; fix profiler loading, typed snapshot consumers, retained-card reconciliation, and memory-sampling cadence before merging. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe developer benchmark generates isolated synthetic state, drives a real Gateway through WebSocket RPCs, and exports workload, latency, allocation, and memory measurements. flowchart LR
A[Fixture options] --> B[Synthetic databases and worktrees]
B --> C[Isolated Gateway]
D[Benchmark viewers] --> C
C --> E[Bundled dashboard plugins]
E --> F[Synthetic GitHub transport]
C --> G[Profiler and measurement reports]
Technical reviewBest possible solution: Keep the existing fixture and profiler owners, restore native loading and typed consumers, and make repeated dashboard runs honor their requested card count and sampling interval. Do we have a high-confidence way to reproduce the issue? The introduced failures are traceable through existing subprocess entry points, typed snapshot constructors, Workboard pagination, and the pacing loop; no target code was executed during this read-only review. Is this the best way to solve the issue? Extending the established benchmark owners is appropriate, and the added workload machinery serves the requested coverage; focused integration repairs are preferable to another launcher, registry, or configuration layer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6eec479dbdfa. Provenance checked
TestingProof path: none. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +74, Docs +65, Other +374. Total +513 across 8 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 1:59 AM ET / 05:59 UTC. |
165bec5 to
d5381e2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d5381e231a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d5381e2 to
544130c
Compare
Seed provider-bound reasoning history and verify full ciphertext replay at the mock boundary. Keep worker memory sampling opt-in for native profiling children, reconcile dashboard cards across reused fixtures, and update resource snapshot fixtures.
544130c to
90649a9
Compare
|
Landed the reviewed head Run 39564692121 passed security, production/benchmark types, lint, guards and selected tests. The only non-aggregate failure was The accepted same-build stress pair completed 50 measured minutes, 416 verified history/tool turns, 26 subagent cycles, 100 cron completions and 24,093 polling RPCs. Full synthetic measurements and limitations are in the PR body. No production optimization is claimed; the initiating interval behind the reproduced 31-second diff stall remains unattributed. |
… soaks (openclaw#179074) * test(perf): exercise dashboard traffic and large worktrees in gateway soaks * test(perf): preserve deep foreground histories across gateway soaks Seed provider-bound reasoning history and verify full ciphertext replay at the mock boundary. Keep worker memory sampling opt-in for native profiling children, reconcile dashboard cards across reused fixtures, and update resource snapshot fixtures. * test(perf): keep replay failure diagnostics type-safe
What Problem This Solves
The memory-soak harness did not exercise populated dashboard RPCs, multiple project diffs, preserved deep foreground histories, or large/nested worktrees. That left important Gateway stress paths outside the existing reproducible fixture.
User Impact
Developers can opt into these synthetic workload shapes through the existing isolated Gateway/provider harness. No production behavior, schema, or configuration surface changes.
Why This Change Was Made
The existing fixture owners now seed long histories with distinct thinking signatures, twelve registered worktrees and a bounded tracked inventory.
--dashboard-rpcadds populated board/workboard reads, model/auth reads, session descriptions, synthetic GitHub previews, PR-subscription admission and rotating worktree diffs. Setup timings remain separate from measured cohorts. Writes remain sequential and observe the documented dirty-memory bound.--verify-history-replaypreserves foreground sessions between invocations and checks all seeded reasoning ciphertext at the provider boundary on every primary request. Its explicitly synthetic model has a finite 2,000,000-token effective context, sufficient for the preserved 500-turn histories; configurable oversized-history stress remains separate. Native profiling requests worker-memory sampling explicitly without regressing no-loader child startup. Reused dashboard fixtures paginate and reconcile cards to the requested viewer count.Evidence
Two consecutive 25-minute runs on the same pinned runtime
544130c1623c(main base5a97c908928f), with a graceful restart and preserved state, completed 50.0001 measured minutes. The final PR has a later main rebase and diagnostic-string-only type repair; this is runtime characterization, not a final-head performance or optimization A/B claim.The fixture used 5,000 retained sessions, 6,000 retained runs, twelve worktrees, 270,000 unchanged tracked files, a nested repository, large retained transcripts and sixteen active 500-turn histories. Forty sockets exercised thirteen mixed RPC methods, paced streaming, Code Mode tools, native subagents and cron.
sessions.diffclient p99 / maximumAll 1,000 seeded reasoning hashes were verified on every primary request, with zero foreground resets. One 31-second summary-worker operation caused head-of-line blocking in window 1; its nine Git subprocesses totaled only 184 ms. The remaining internal interval is unattributed, so this PR does not introduce a speculative production optimization. One short internal reservation rejection is also unexplained; all asserted user flows completed.
Earlier interrupted attempts are excluded from the accepted pair. One exceeded the original 8,000,000-byte hydration capacity after accumulated turns: seeded data remained durable, but full replay failed. The explicit verified-replay fixture mode increases only synthetic capacity and preserves the full assertion. The exact failed provider selection was not captured.
Limits: synthetic provider/GitHub transport, disconnected accounts, PR-subscription admission rather than remote discovery, backend clients rather than browser rendering, unequal real-world RPC mix, no presence traffic, burst streaming, tiny changed-file contents, warm filesystem caches, and sampled worker peaks. Transcript isolates had a measured 560 MiB limit. Post-GC values are latched observations; startup/final forced collections are excluded from the strict measured window. Main CPU profiling is separate from timing evidence; no worker CPU-profile claim.
Validation
Changed-file format, syntax, scoped lint and focused tests passed. Fresh independent autoreview found no actionable P0–P2 findings, including the subsequent diagnostic type repair. Exact-head CI run 39564692121 passes security, production types, benchmark/test types, lint, guards and selected test lanes. All four changed test files passed: fixture, resource sampling, calibration and RPC walk.
The only non-aggregate CI failure is
check-test-types-core-2: two TS2345 errors in the unchanged CI-planning test at lines 813 and 891. The single-file native tsrs probe reproduces exactly those two diagnostics (exit 2) on measured head544130c1623cand CI main parent09cbdfea8784; all relevant test/type/config/runner sources are identical to the final PR head. The existing sandbox/install was reused after the campaign, without another checkout or install. CI tested mergef74abf984df83bb3d6cc96ac589aadeb3e206d27, whose parents are that main commit and final head90649a9fd204. Main already contains the targeted fix 5ceb735696cd. The classifier called this new because the comparison main job used a different selected scope; the exact baseline reproduction establishes inherited attribution. Landing uses the authorized inherited-failure exception; CI is not claimed green. A local scripts typecheck could not complete because the shared installation lacksopenid-client; no extra install was made under the host constraints.The diff contains eleven benchmark/test/documentation files; production runtime LOC delta is zero. Added harness code supplies the requested workload/evidence through existing owners, without a runtime cache, fast path or compatibility layer. No Testbox/Crabbox lease was allocated.