Repository navigation
fix(scripts): report failing gateway concurrency probes - #118308
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 8:03 PM ET / August 3, 2026, 00:03 UTC. ClawSweeper reviewWhat this changesThe PR updates the gateway concurrency benchmark to run under native Node and to report individual readiness, Control UI, and session-list probe failures before concurrent load begins. Merge readinessKeep this PR open for normal maintainer handling. It makes a focused, source-backed repair to the current gateway concurrency benchmark: native-Node execution becomes viable and failed baseline probes name the actual failing surface. No actionable patch defect was found, but the protected Priority: P3 Review scores
Verification
How this fits togetherThe gateway CPU scenario harness runs a concurrency benchmark against an isolated gateway and mock provider. That benchmark establishes readiness, Control UI, and session-list baselines before applying concurrent agent load, then records performance observations for operators and CI. flowchart LR
A[Gateway CPU scenario] --> B[Concurrency benchmark]
B --> C[Isolated gateway and mock provider]
C --> D[Baseline probes]
D --> E{All probes pass?}
E -->|No| F[Named failure diagnostics]
E -->|Yes| G[Concurrent agent load]
G --> H[Latency and health report]
Decision needed
Why: The code review found no blocking defect, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +54, Config 0, Other +56. Total +110 across 9 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused native-Node import-graph repair and per-probe diagnostic recording, then merge the reviewed head once a maintainer confirms live PR state and required checks. Do we have a high-confidence way to reproduce the issue? Yes, from current source: the canonical benchmark path depends on Is this the best way to solve the issue? Yes. Making the small benchmark import graph native-Node-compatible and recording errors where each probe occurs is narrower and more maintainable than adding retries, extending timeouts, or inferring failure causes downstream. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b7f9cd0a0167. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
Related: #118193
What Problem This Solves
Fixes an issue where operators running the gateway concurrency benchmark on Linux received only
gateway probes did not pass before concurrent load, with no indication whether readiness, session listing, or the Control UI failed. The benchmark also failed before startup under native Node withERR_MODULE_NOT_FOUND, despite Node's built-in TypeScript support.Why This Change Was Made
The pre-load probes now run serially for attribution, retain bounded status/error details, and report every probe in the failure. Load-time sampling remains parallel. The benchmark's small source import graph now uses native-Node-compatible TypeScript specifiers and a dependency-free integer parser, so the canonical command no longer needs tsx.
User Impact
Operators can run the benchmark directly on supported Node versions and immediately see which baseline probe failed. The Hetzner reproduction now shows that readiness and Control UI pass while
sessions.listtimes out, ruling out both the production UI asset and authentication theories without masking the underlying latency with a larger timeout.Evidence
readyz200 in 18.5 ms, Control UI 200 in 392 ms, and onlysessionsListfailing withtimeout waiting for sessions.listafter 20 seconds.gpt-5.6-solhigh reasoning, clean with 0.98 confidence. Source-blind behavior validation passed all native execution, invalid-input, and attributable-diagnostic clauses.