ktx/python/ktx-daemon/tests
Andrey Avtomonov a0d19ba26f
fix(sl): classify semantic-query request rejections as expected, not faults (#339)
The daemon rejects an invalid semantic-query request (unknown source,
ambiguous measure, no join path) with a plain ValueError; the Node compute
port now maps the daemon's exit code 3 / HTTP 400 to KtxExpectedError so these
routine, caller-driven rejections stay out of Error Tracking.

A dedicated SemanticLayerRequestError(ValueError) is raised only for engine
rejections and routed through both daemon transports and the HTTP handler.
Because pydantic v2 ValidationError subclasses ValueError, malformed sources or
responses (contract faults) are kept as faults: they are reported and mapped to
exit 1 / HTTP 500 / plain Error on every path. Non-object stdin is likewise a
fault (exit 1), not exit 3.
2026-07-03 23:17:33 +02:00
..
test_app.py fix(sl): classify semantic-query request rejections as expected, not faults (#339) 2026-07-03 23:17:33 +02:00
test_cli.py fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
test_code_execution.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_database_introspection.py feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
test_embeddings.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_exception_payload.py feat(telemetry): collect PostHog $exception error reports in CLI and daemon (#262) 2026-06-05 19:36:21 +02:00
test_exception_telemetry.py feat(telemetry): collect PostHog $exception error reports in CLI and daemon (#262) 2026-06-05 19:36:21 +02:00
test_lookml.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_package.py fix: improve setup wizard behavior (#127) 2026-05-17 19:15:09 +02:00
test_semantic_layer.py fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
test_source_generation.py rename klo to ktx 2026-05-10 23:51:24 +02:00
test_sql_analysis.py feat(query-history): scope mining to modeled schemas by default (#258) 2026-06-03 17:19:42 +02:00
test_telemetry.py feat(telemetry): anonymous posthog usage telemetry across node cli and python daemon (#205) 2026-05-22 18:18:47 +02:00
test_telemetry_schema_sync.py feat(setup): wizard prompt tweaks and quieter query-history filter output (#259) 2026-06-04 14:11:08 +02:00