Skip to content

Add correctness CI: cross-language PromQL pattern matching parity tests#247

Merged
milindsrivastava1997 merged 1 commit intomainfrom
ci/correctness
Mar 30, 2026
Merged

Add correctness CI: cross-language PromQL pattern matching parity tests#247
milindsrivastava1997 merged 1 commit intomainfrom
ci/correctness

Conversation

@zzylol
Copy link
Copy Markdown
Contributor

@zzylol zzylol commented Mar 28, 2026

Summary

  • correctness.yml: Cross-language Python/Rust PromQL pattern matching parity tests — token matching, serialised pattern comparison, and Rust unit tests. Runs on ephemeral GH-hosted VMs (deterministic, well-suited for CI).
  • Fix [workspace] table in three standalone test Cargo.toml files to prevent workspace conflict errors.
  • Add test_data/promql_queries.json with 10 PromQL test cases covering ONLY_TEMPORAL, ONLY_SPATIAL, and ONE_TEMPORAL_ONE_SPATIAL patterns.
  • Unignore test_data/*.json in asap-common/.gitignore (fixture inputs, not generated output).
  • Fix PromQLPattern::new call sites; update pattern_tests.rs: add *_over_time variants, remove duplicate ONLY_VECTOR key, add build_combined_quantile_pattern.

Test plan

  • Correctness workflow triggers on PR and passes cross-language token matching and pattern serialisation jobs

🤖 Generated with Claude Code

- correctness.yml: Python/Rust token matching, serialised pattern
  comparison, and Rust unit tests on GH-hosted VMs
- Add [workspace] table to three standalone test Cargo.toml files to
  prevent workspace conflict errors
- Add test_data/promql_queries.json with 10 PromQL test cases covering
  ONLY_TEMPORAL, ONLY_SPATIAL, and ONE_TEMPORAL_ONE_SPATIAL patterns
- Unignore test_data/*.json in asap-common/.gitignore
- Fix PromQLPattern::new call sites and pattern_tests.rs: add
  *_over_time variants, remove duplicate ONLY_VECTOR key, add
  build_combined_quantile_pattern for 2-arg quantile_over_time

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@milindsrivastava1997 milindsrivastava1997 self-requested a review March 28, 2026 21:50
@milindsrivastava1997 milindsrivastava1997 merged commit c4dfa45 into main Mar 30, 2026
6 checks passed
@milindsrivastava1997 milindsrivastava1997 deleted the ci/correctness branch March 30, 2026 18:16
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.

2 participants