Repository navigation
test(qa): cover managed OTEL runtime paths - #118965
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 1:10 AM ET / 05:10 UTC. ClawSweeper reviewWhat this changesThe branch adds QA scenarios and end-to-end coverage for managed OpenTelemetry plugin installation, lifecycle configuration, and Gateway trace recovery after a failed tool call. Merge readinessKeep open: the test-only coverage remains distinct from current main, with no verified correctness or security finding. Its protected maintainer review/landing decision is the remaining action. Priority: P3 Review scores
Verification
How this fits togetherQA Lab drives an isolated Gateway, mock provider, and QA channel to exercise real runtime behavior. The diagnostics OpenTelemetry plugin exports traces to a loopback OTLP receiver, where the scenarios verify lifecycle and parent-child span relationships. flowchart LR
Scenario[QA scenario] --> Channel[QA channel input]
Channel --> Gateway[Isolated Gateway]
Gateway --> Plugin[Diagnostics telemetry plugin]
Plugin --> Receiver[Loopback OTLP receiver]
Receiver --> Assertions[Trace and lifecycle assertions]
Assertions --> Evidence[QA evidence]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +829, Other +64. Total +893 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the complementary managed-install and QA-channel recovery coverage, then land it after protected maintainer review and exact-head merge validation. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds coverage for existing telemetry behavior rather than reporting a standalone user-facing defect. Is this the best way to solve the issue? Yes: the added tests use the managed package and actual QA-channel Gateway boundary, complementing existing direct-producer and synthetic telemetry tests instead of duplicating them. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 75ef5aebecb8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
e16bd64 to
ad2acb3
Compare
…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) ...
…time * origin/main: (75 commits) fix(commands): restore tool inventory for dynamic models (#119306) fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257) docs: add ChromeOS (Crostini) platform install guide (#107663) test(msteams): serve JWKS from in-process server in auth coverage (#119354) fix(qa): enable OpenAI for stored audio scenario (#119349) test(agents): realpath apply-patch temp dir fixture (#119353) test(slack): drop redundant .js-suffixed system-event mock (#119352) fix(exec): leave safe builtins unrewritten in enforced mode (#119351) fix(sessions): keep gateway responsive while large transcript archives are built (#112424) fix(tui): restore provider auth in installed local mode (#119283) fix(release): accept legacy empty core artifacts (#119337) fix(qa): carry selected runtime into flow scenarios (#119324) fix(ci): retry interrupted Windows dashboard release checks (#119095) fix(release): filter validation ancestry fetch (#119334) fix(release): accept trusted extended-stable validation evidence (#119264) fix(sessions): preserve recorder-owned user turns (#119307) perf(cli): split plugin registry startup timing (#119318) fix(qa): align release scenario setup and compaction proof (#119188) fix(ci): avoid duplicate Matrix release QA runs (#119171) perf(agents): reuse provider policy manifest registry (#119305) ...
|
@clawsweeper re-review Final exact signed head:
Please review this final merge head and report any remaining actionable finding or rank-up move. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
…time * origin/main: fix(ui): clear split-pane questions after answers and cancellations (#118787) fix(slack): authorize reaction and message reads before applying limits (#118736) fix(ci): isolate cache warmer configs (#119381) fix(slack): Fix bad escaping in slack tool commentary (#119373) feat(audit): add execution identity inspection (#117034) fix(fs): adopt fs-safe 0.5.2 untrusted filename sanitization (#119363) fix(ci): preserve release evidence across reruns (#119380) fix(telegram): keep commands responsive during Codex login perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339)
|
@clawsweeper re-review Exact head: Please review this exact signed merge head after refreshed sanitized AWS Crabbox proof: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact signed head:
The earlier one-shot scenario failure was non-reproducible; no product or test defect remained after artifact-retaining diagnosis. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
* origin/main: refactor(plugin-sdk): remove unused private QA helpers (#119437)
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
|
Merged via squash.
|
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (#119517) fix(tool-search): normalize dotted call arguments (#119418) (#119464) fix(qa): retain child output on CLI timeouts (#119524) fix(discord): preserve authored block order in presentation components (#119506) fix: make plugin verification restart guidance install-neutral (#119508) fix(qa): preserve profile execution contracts (#119519) test(qa): cover managed OTEL runtime paths (#118965) Punchcard-Session: frost-brook-timber-mx
* test(qa): cover managed OTEL runtime paths * test(qa): prove OTEL flush clamp * test(qa): clean up OTEL runtime fixtures * test(qa): share OTLP runtime support * test(qa): harden managed OTEL install proof * test(qa): align OTEL runtime fixtures * test(qa): expose OTEL runtime failures * test(qa): align OTEL runtime boundaries * test(qa): bound fixture registry shutdown * test(qa): isolate managed OTEL plugins * test(qa): start managed OTEL from no plugins * test(qa): launch managed OTEL from built dist * test(qa): read managed plugin index from state root * test(qa): align OTEL runtime agents and types * test(qa): stage managed plugin packages in scratch * test(qa): verify OTEL span ancestry * test(qa): support multiple OTEL harness spans * test(qa): prove OTEL delivery and preload spans Punchcard-Session: crisp-lantern-orchard-nv * test(qa): align OTEL delivery proof with channel boundary Punchcard-Session: crisp-lantern-orchard-nv * test(qa): resolve OTEL preload through fixture modules * test(qa): isolate sampled OTEL export proof
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (openclaw#119517) fix(tool-search): normalize dotted call arguments (openclaw#119418) (openclaw#119464) fix(qa): retain child output on CLI timeouts (openclaw#119524) fix(discord): preserve authored block order in presentation components (openclaw#119506) fix: make plugin verification restart guidance install-neutral (openclaw#119508) fix(qa): preserve profile execution contracts (openclaw#119519) test(qa): cover managed OTEL runtime paths (openclaw#118965) Punchcard-Session: frost-brook-timber-mx
What Problem This Solves
OpenClaw's QA inventory did not exercise the managed diagnostics-otel package lifecycle or prove that a real Gateway trace preserves failed-tool recovery and a successful outbound response in one trace.
What Changed
@openclaw/diagnostics-otelthrough a fixture registry, verifies the SQLite install record, disable/enable lifecycle, endpoint precedence, zero and full sampling, flush timing, and preloaded-SDK listener behavior.The change is entirely tests and QA scenario metadata. It does not modify production code, taxonomy, QA Lab internals, telemetry implementation, or channel architecture.
Evidence
381576fd7442d33308c967510faf39c23e79becab316c9cacf69567f6d97a234da15dfcf2d62d5b0; signed history was preserved without rebase+0/-0+1629/-736across 6 filesopenclaw/ci-gate, build, lint, test types, QA smoke, dependency checks, and selected Node lanesrun_52c8e7d3e449: private-QA build and focused runtime proof passed, 2 files and 3 testsrun_1f6586a41e8a: retained exit-0 run with private-QA build and both QA scenariosdiagnostics-otel-plugin-install: 1 passed, 0 failed or skipped; native Vitest 2/2otel-gateway-runtime: 1 passed, 0 failed or skipped; native Vitest 1/1observability.diagnostics-otel-plugin-installobservability.otlp-http-traces-qa-labobservability.telemetry-failure-recoveryobservability.telemetry-runtime-validationobservability.telemetry-trace$autoreview: clean TruffleHog scan, no actionable P0-P2 findings, patch correct at 0.90 confidenceOwnership
QA Lab config intentionally owns the default
qaagent. The managed-install test sends turns throughagent:qa:*instead of assuming an implicitmainagent. Plugin install records are read from the Gateway's canonicalOPENCLAW_STATE_DIR, matching the shared SQLite path contract.The trace assertion resolves every parent span ID inside the captured trace. In this runtime,
openclaw.message.processedis the root, each harness resolves to that message span, each run resolves to its actual harness, and model/tool spans resolve to a run.QA-channel inbound replies use the channel-owned direct callback in
extensions/qa-channel/src/inbound.ts, not the genericsrc/infra/outbound/deliver-core.tspath that emitsopenclaw.message.delivery. The outbound bus receipt is therefore the real delivery proof for this scenario; requiring a fabricated delivery span would assert behavior the exercised product path does not have.Punchcard-Session: clear-river-orchard-dn