Skip to content

Commit 4ab777a

Browse files
zzylolclaude
andcommitted
test(e2e): answer #509's PromQL examples like the Planner executor
For Examples 1, 3a, 3b, 4a and 4b: plan the workload, start the data_plane binary against a Prometheus holding generated samples, Remote Write the same samples, and require every planned query to be answered by the plan with the Planner executor's result for the workload planned without ingestion-time state. Exact families must match exactly; Example 3a/4a's five-year KLL windows exceed k and KLL compaction is randomized, so they must agree within twice the 0.005 rank target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6f7b53c commit 4ab777a

4 files changed

Lines changed: 748 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ cargo run -p data_plane -- --plan plan.json --prometheus-url http://localhost:90
6161
`--capabilities caps.json` replaces the default capabilities, which are the
6262
Planner executor's capabilities without state kept across query evaluations.
6363

64+
## Examples
65+
66+
`examples/` holds #509's PromQL example workloads (1, 3a, 3b, 4a, 4b) as
67+
Planner `PlanningWorkload`s. `data_plane/tests/e2e_examples.rs` plans each
68+
one, runs the `data_plane` binary against a Prometheus holding generated
69+
samples, Remote Writes the same samples, and checks every planned query
70+
against the Planner executor running the workload entirely at query time.
71+
6472
## Development
6573

6674
```sh

0 commit comments

Comments
 (0)