Skip to content

test(data_plane): update asap_tier parity expectations for the ExactAgg routing change - #236

Merged
zzylol merged 1 commit into
mainfrom
pr-fix-data-plane-asap-tier
May 14, 2026
Merged

zzylol merged 1 commit into
mainfrom
pr-fix-data-plane-asap-tier

Conversation

@zzylol

@zzylol zzylol commented May 14, 2026

Copy link
Copy Markdown
Contributor

PR D of the "L1→L5 e2e + wire L4" arc — catches data_plane up to the #232 analyzer behaviour change. (control_plane's side of #232 already updated its own tests; data_plane consumes the same analyzer and its suite wasn't run then — my miss.)

Why

PR #232 made control_plane::asap_tier_analysis route rate/irate/increase/sum/bare-selector to Capability::ExactAgg(Sum) (ASAP-tier-answerable from exact-precompute state) instead of archive. data_plane's ASAPQueryEngine consumes that analyzer, and two tests pinned the old behaviour.

Changes

  • analyzer_parity_18_query_corpus — the 18-query golden master (PR test(analyzer): α — 18-query parity catalog for analyzer unification #188). Regenerated GOLDEN from the new actual: the ctrl rows for q04–q07/q12–q17 shifted to OK [... ExactAgg(Sum) ...] / candidate rows, q08's label count_over_timecount. The engine rows — the actual parity contract — are unchanged.
  • execute_rejects_bare_selector_via_analyzer → renamed execute_bare_selector_falls_over_to_archive. A bare selector now binds to an ExactAgg(Sum) candidate; with the test's DDSketch-only SketchStore it finds no matching policy and still CapabilityMisses to archive — same routing outcome, different detail string.

No behaviour change — just test expectations catching up.

Test plan

  • cargo build -p data_plane clean
  • cargo test -p data_plane --lib — 768 pass, 0 failures
  • cargo test -p control_plane — still 737 pass

Pre-existing unrelated failure: kll_envelope_round_trip_through_backend_adapter (KLL sketch byte serialization, tests/edge_runtime_consumes_precompute_rs.rs) fails on clean main too — verified by stashing this change. Not touched here.

🤖 Generated with Claude Code

…gg routing change

PR #232 changed `control_plane::asap_tier_analysis`: `rate` / `irate` /
`increase` / `sum` and bare selectors now lower to `AggIntent::Sum`,
which `capability_for` maps to `Capability::ExactAgg(Sum)` — so they are
ASAP-tier-answerable from exact-precompute state instead of being
archive-routed. `data_plane` consumes that analyzer, and two of its
tests pinned the old behaviour:

  * `analyzer_parity_18_query_corpus` — the 18-query golden master
    (PR #188). The `ctrl` rows for q04–q07, q12–q17 (and the q08 label
    `count_over_time` → `count`) shifted to `OK [... ExactAgg(Sum) ...]`
    / candidate rows. `GOLDEN` regenerated from the new actual; the
    `engine` rows — the actual parity contract — are unchanged.

  * `execute_rejects_bare_selector_via_analyzer` → renamed
    `execute_bare_selector_falls_over_to_archive`. A bare selector is no
    longer rejected with `NoCallNodeFound`; it binds to an
    `ExactAgg(Sum)` candidate that finds no matching policy in the
    test's DDSketch-only `SketchStore`, so it still `CapabilityMiss`es
    to the archive engine — same routing outcome, different detail.

No behaviour change here — `data_plane`'s test expectations catching up
to the intentional #232 analyzer change. 768 lib tests pass.

Pre-existing unrelated failure: `kll_envelope_round_trip_through_backend_adapter`
(KLL sketch byte serialization) fails on clean `main` too — untouched
by this change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit 3ed7a46 into main May 14, 2026
@zzylol
zzylol deleted the pr-fix-data-plane-asap-tier branch July 17, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant