Repository navigation
improve(test): reduce Telegram policy fixture startup overhead - #143192
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: needs maintainer review before merge. Reviewed September 9, 2026, 10:53 AM ET / 14:53 UTC. ClawSweeper reviewWhat this changesThe Telegram policy test launches the prepared CLI through the existing environment and signal-forwarding wrapper to avoid repeated development-build checks. Merge readiness✅ Ready for maintainer review This remains a useful, bounded test-performance improvement. Current main and the latest release retain the repeated development-runner path; no introduced correctness defect was found. Priority: P3 Review scores
Verification
How this fits togetherThe E2E fixture starts an isolated Gateway with simulated Telegram and provider endpoints. It checks that inherited group policies reject forbidden messages before downstream work and deliver admitted replies. flowchart LR
A[E2E runtime preparation] --> B[Prepared CLI artifacts]
B --> C[Environment and signal wrapper]
C --> D[Isolated Gateway]
E[Simulated Telegram messages] --> D
D --> F[Policy rejection or admission]
F --> G[Provider and delivery assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +9. Total +9 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Reuse the prepared runtime through existing launch infrastructure while retaining independent policy, delivery, and process-cleanup coverage. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: source confirms repeated development-runner invocations, and the PR supplies bounded timing comparisons; this read-only review ran no tests. Is this the best way to solve the issue? Yes. Reusing the existing wrapper is a narrow approach supported by E2E runtime preparation, without changing assertions or adding production infrastructure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7a1ff2c65841. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
Related: #139428 (#139428)
What Problem This Solves
The Telegram inherited-policy E2E fixture repeats development-runner freshness checks for each CLI operation even though E2E setup already prepares the runtime. Those checks add overhead to both policy cases.
Why This Change Was Made
Launch the prepared CLI through the existing signal-forwarding
run-with-envwrapper and explicitly preserveOPENCLAW_DEV_SOURCE_ROOT. Use a file URL for the preload so Windows paths and special characters are handled correctly. The change is confined to one test file.Both cases retain fresh state, all ten auth/help/repair/Gateway operations, packaged plugins, the working directory, verbose output, timeouts, HTTP assertions and cleanup. No production, helper, dependency, configuration or workflow changes.
User Impact
No product behavior changes. Developers get lower startup overhead in this focused E2E test without removing its policy-inheritance or real-dispatch coverage.
Evidence
#and%.onListeningboundary and released their observed processes, ports and roots with unchanged deadlines.check-changedpassed, including formatting, root test typechecking, script guards and targeted lint. Affected formatting, root types and file lint passed again after the preload URL correction. Fresh full local P2 review of the final diff was scoped-clean.Proof used the existing prebuilt E2E contract with matching complete private-QA, AI and runtime-overlay artifacts. Normal worker preparation remained enabled. Transport/provider endpoints were fixture-owned mocks, not a live Telegram account.
All local measurements and loader probes ran on Linux; no native Windows E2E execution was performed.