adaptive_export/sink: content_type silent-drop contract suite#57
adaptive_export/sink: content_type silent-drop contract suite#57ConstanzeTU wants to merge 1 commit into
Conversation
Consolidates the recurring content_type silent-drop incident class into one default-suite test gate (6 tests, ~15ms): I1 TestContract_ContentTypeIsInt64InSchema I2 TestContract_FastEncodeContentTypeAsInt I3 TestContract_SilentDropDetected I3.b TestContract_SilentDropNotTriggeredOnSuccess I3.c TestContract_SilentDropToleratesMissingSummaryHeader I4 TestContract_HTTPEventsRoundTrip Top-of-file docstring chronicles the incident timeline so future operators can grep their way to the contract.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
AE bench-pprof results (local, 1000-row http_events batches)Pprof'd the AE sink hot path via the existing Bench numbers (1000-row http_events batches, 32 cores)
CPU hotspots (15.99s of 18s wall, 88% sample density)
Heap (553 MB allocated over the bench)
Two concrete optimisations (real returns on the AE-pod-CPU NFR)
Neither is in scope for the contract suite PR. Filing as a separate optimisation PR after this one merges. cc: PR #53 (production AE) for context on the "AE pod at 2.4 cores" NFR. |
Summary: Adds six default-suite Go tests (~15ms) under src/vizier/services/adaptive_export/internal/sink/content_type_contract_test.go that pin the content_type Int64 schema invariant, the fastencode encoder emitting it as a JSON number, the silent-drop detection on X-ClickHouse-Summary written_rows zero, and the tolerate-missing-header policy. Top-of-file docstring chronicles the incident timeline (2026-05-23 redis_events, 2026-06-07 rig 6a25c85c, 2026-06-09 PR53 comment 4661115386 apples-vs-oranges) so future operators can grep their way to the contract. Closes the regression class so we cant have it on this every day.
Test Plan: 1) go test ./src/vizier/services/adaptive_export/internal/sink/ -run TestContract_ -v -- 6/6 PASS in 15ms. 2) Full sink suite (clickhouse_test, encode_bench_test, fastencode_test) still green. 3) gazelle ran to add the new file to BUILD.bazel. 4) arc lint clean (pre-commit hook green).
Type of change: /kind feature