Skip to content

Commit db8e95f

Browse files
authored
test(qa): cover managed OTEL runtime paths (#118965)
* 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
1 parent 702eb6e commit db8e95f

6 files changed

Lines changed: 1629 additions & 736 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
title: Diagnostics OTEL managed plugin install
2+
3+
scenario:
4+
id: diagnostics-otel-plugin-install
5+
surface: telemetry
6+
coverage:
7+
primary:
8+
- observability.diagnostics-otel-plugin-install
9+
objective: Verify the exact diagnostics-otel package works through the managed npm install, enable, restart, and export lifecycle.
10+
successCriteria:
11+
- The release package is packed and served by the fixture npm registry.
12+
- The real plugins install command records npm provenance and a managed install path.
13+
- Disable and enable persist through the CLI before a hard Gateway restart.
14+
- Signal-specific config wins over the matching environment endpoint.
15+
- Sampling at zero drops a completed turn, then sampling at one exports the next turn.
16+
- The clamped flush interval exports a trace before shutdown.
17+
- A preloaded OpenTelemetry SDK still receives spans from installed-plugin listeners.
18+
plugins:
19+
- diagnostics-otel
20+
docsRefs:
21+
- docs/gateway/opentelemetry.md
22+
- docs/tools/plugin.md
23+
codeRefs:
24+
- extensions/diagnostics-otel/src/service.ts
25+
- src/cli/plugins-cli.runtime.ts
26+
- test/e2e/qa-lab/runtime/diagnostics-otel-install-runtime.e2e.test.ts
27+
- test/e2e/qa-lab/runtime/otel-test-support.ts
28+
execution:
29+
kind: vitest
30+
path: test/e2e/qa-lab/runtime/diagnostics-otel-install-runtime.e2e.test.ts
31+
summary: Pack, registry-install, restart, and export through the managed diagnostics-otel package.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
title: OTEL gateway runtime
2+
3+
scenario:
4+
id: otel-gateway-runtime
5+
surface: telemetry
6+
coverage:
7+
primary:
8+
- observability.otlp-http-traces-qa-lab
9+
- observability.telemetry-runtime-validation
10+
- observability.telemetry-trace
11+
- observability.telemetry-failure-recovery
12+
objective: Verify a real mock-provider Gateway and qa-channel run exports linked OTLP traces for normal execution and honest failed-tool recovery.
13+
successCriteria:
14+
- A qa-channel turn with a successful read exports linked run, tool, and terminal message-processing spans.
15+
- A missing-file tool failure is exported as an error tool span.
16+
- The failed-tool turn still produces an honest outbound response and a successful terminal message-processing span in the same trace.
17+
- Exporter retry behavior is not accepted as tool-failure recovery evidence.
18+
plugins:
19+
- diagnostics-otel
20+
- qa-channel
21+
- qa-lab
22+
docsRefs:
23+
- docs/gateway/opentelemetry.md
24+
- docs/concepts/qa-e2e-automation.md
25+
codeRefs:
26+
- extensions/diagnostics-otel/src/service-recorders-tools.ts
27+
- extensions/diagnostics-otel/src/service-recorders-usage.ts
28+
- test/e2e/qa-lab/runtime/otel-gateway-runtime.e2e.test.ts
29+
- test/e2e/qa-lab/runtime/otel-test-support.ts
30+
execution:
31+
kind: vitest
32+
path: test/e2e/qa-lab/runtime/otel-gateway-runtime.e2e.test.ts
33+
summary: Run the public QA gateway, qa-channel bus, mock provider, and a decoded local OTLP receiver.

0 commit comments

Comments
 (0)