Repository navigation
fix(perf): give each concurrency sample a full deadline - #119164
Conversation
|
@clawsweeper review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 5:03 AM ET / 09:03 UTC. ClawSweeper reviewWhat this changesThis PR gives each gateway-concurrency warmup or measured sample its own timeout budget and adds a regression test for the renewed deadline. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking correctness or security finding: this is the focused owner-boundary repair for a shared benchmark deadline. It remains open for explicit maintainer handling because it is Member-authored and carries the protected Priority: P3 Review scores
Verification
How this fits togetherRelease validation invokes the gateway concurrency benchmark to run warmups and measured synthetic agent-load samples. The benchmark establishes deadlines for gateway startup, probe warmup, load, and emits JSON telemetry for the validation workflow. flowchart LR
A[Release validation] --> B[Concurrency benchmark]
B --> C[Warmup and measured sample loop]
C --> D[Per-sample deadline]
D --> E[Gateway probe warmup]
E --> F[Concurrent load probes]
F --> G[Benchmark JSON telemetry]
Decision needed
Why: The source and proof support the repair, but the protected maintainer label requires explicit human handling. Before merge
Agent review detailsSecurityNone. PR surfaceTests +28, Other +13. Total +41 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep deadline renewal in the sample-loop owner, preserving the existing probe-warmup exclusion rather than masking the defect with a longer release-workflow timeout. Do we have a high-confidence way to reproduce the issue? Yes, from current source: one pre-loop deadline is consumed across sequential samples, and the PR body supplies a matching before-run on the same benchmark path; this read-only review did not execute it locally. Is this the best way to solve the issue? Yes. Renewing the deadline at the sample-loop boundary preserves the callee's existing probe-warmup accounting; increasing the enclosing workflow timeout would only hide the shared-budget bug. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against da3b5edf40d9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision: land the per-sample Rank-up move handled: the protected |
|
Merged via squash.
|
…checkpoint * origin/main: (46 commits) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) fix(scripts): prevent gateway benchmarks from stalling on probes (#119063) test(channels): verify built sanitizer semantics (#119151) fix: prevent live updater from leaving Gateway offline indefinitely (#119116) test(qa): restore memory tools primary ownership (#119142) fix(agents): settle yielded fanout at harness boundary (#118703) fix(codex): cap compaction override warning cache via createDedupeCache (#101745) fix(daemon): skip unlabeled launchd plists (#119091) test(qa): repair QA catalog integrity (#119140) ...
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) ...
…time * origin/main: (177 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
* origin/main: (23 commits) chore(tui): add Gateway boundary PTY coverage (openclaw#119191) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (openclaw#119218) test(qa): cover Canvas agent and node controls (openclaw#119047) fix(cli): avoid repeated migration scans during local agent turns (openclaw#119051) fix(gateway): keep agents list on prepared model facts (openclaw#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (openclaw#119121) fix(qqbot): keep channel API calls on the active account [AI] (openclaw#118575) fix(agents): recover from invalid compaction summaries (openclaw#119137) fix(gateway): expose OAuth-backed tools to CLI agents (openclaw#119166) fix(plugins): preserve metadata reloads during models status (openclaw#119183) fix(test): bound direct gateway server runs (openclaw#119184) test(tui): prove command surfaces through PTY (openclaw#119165) fix(testbox): restore claims across path aliases (openclaw#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (openclaw#119164) fix(testbox): remove changed-gate sync residue (openclaw#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (openclaw#118998) ...
Follow-up to #118364 and #119063.
What Problem This Solves
Fixes an issue where release validation running the gateway concurrency benchmark with a warmup and multiple measured samples could time out a later sample even when that sample completed within the configured timeout. The benchmark treated
--timeout-msas one shared budget, so earlier runs consumed the time available to later runs.Why This Change Was Made
Each warmup or measured gateway sample now receives its own pre-warmup timeout budget. The existing per-sample probe-warmup exclusion remains in
runGatewaySample, and the sample loop is extracted behind focused injection points so deadline renewal is covered without booting a gateway.This is the benchmark owner boundary. Increasing the release workflow timeout would only hide the shared-deadline bug and would leave later samples with progressively less time.
Provenance: the shared whole-benchmark deadline originated with the concurrency benchmark in #118193 (
3f3ceb2defbe) and was carried forward when probe warmup was added in #118364 (347f16d5565d). Beta 8 full validation made the failure deterministic by running one warmup plus three measured samples.User Impact
Tooling only. Release and performance validation can run repeated gateway concurrency samples without false late-run timeouts caused by earlier samples.
Evidence
05c987ccec4cd0032aa7727d2de0644916bafa11reproduced the third-sample timeout in both the standalone performance run and the canonical Full Release Validation child:dd3ee190d375bf57345cce7d1835da2e54ff284dbuilt and completed one warmup plus three measured samples on a fresh Blacksmith Testbox:check:changedpassed on the same Testbox.test/scripts/bench-gateway-concurrency.test.ts, 9/9 passed.dd3ee190d375bf57345cce7d1835da2e54ff284d: clean, no accepted/actionable findings.oxfmt --checkandgit diff --check: passed.AI-assisted: yes. I reviewed the implementation and validation evidence.