Skip to content

test(telemetry): telemetry, server, ui, output and docs tests on edge fakes - #2899

Merged
dan-petty merged 1 commit into
mainfrom
test/1334-telemetry-server-ui-edge-fakes
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/1334-telemetry-server-ui-edge-fakes

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Closes #1334

Summary

Migrate the telemetry, server, UI, output, and docs test suites to public interfaces and edge fakes, eliminating internal monkeypatching, private symbol imports, and assertions on internal call details. Split the reactive dashboard test suite by behaviour across 24 test files and 7 provider/CLI files, and replace module-level test runners and redundant asyncio markers.

Key Changes

  • Domain Logic Seams:
    • telemetry/waterfall.py: Added poll_trace_spans and run_profiled_command.
    • server/service.py: Added validate_service_mode; replaced time.time with clock seam.
    • ui/data_providers.py: Switched Valkey status to resolve_valkey_client, Kubernetes to KubernetesService.get_instance().core_api, and Docker to get_engine().client.
  • Test Suite Migration & Splitting:
    • tests/ai/test_output.py moved to tests/output/test_output.py.
    • tests/telemetry/test_server_service.py moved to tests/server/test_server_service.py.
    • Dissolved tests/telemetry/test_otel_command_coverage.py into telemetry behaviour tests and CLI command coverage test.
    • Split tests/ui/test_ui_reactive.py and tests/ui/test_ui_dashboard.py into behaviour files under tests/ui/.
    • Extracted shared test helpers into tests/support/ui.py.
    • Added syrupy snapshot tests for CLI summary, formatters, and docs.
    • Removed module-level runner = CliRunner() across all affected files.

@dan-petty dan-petty added type/test Type test: a new or changed test scope/telemetry OpenTelemetry tracing spans, Prometheus metrics, and Jaeger labels Oct 31, 2026
@dan-petty
dan-petty force-pushed the test/1334-telemetry-server-ui-edge-fakes branch from ede6fd2 to 5f4f711 Compare October 31, 2026 18:46
@dan-petty dan-petty changed the title test(telemetry): run telemetry, server, ui, output and docs tests on edge fakes test(telemetry): telemetry, server, ui, output and docs tests on edge fakes Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 19:03
@dan-petty
dan-petty merged commit 2c09bcb into main Oct 31, 2026
21 checks passed
@dan-petty
dan-petty deleted the test/1334-telemetry-server-ui-edge-fakes branch October 31, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/telemetry OpenTelemetry tracing spans, Prometheus metrics, and Jaeger type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(telemetry): telemetry, server, ui, output and docs tests run on edge fakes, and the dashboard suite splits by behaviour

1 participant