Skip to content

fix(tools): the MetricsQL consumer check uses RequestedAccuracy::exact() - #710

Merged
zzylol merged 1 commit into
mainfrom
fix/accuracy-doctest
Oct 15, 2026
Merged

zzylol merged 1 commit into
mainfrom
fix/accuracy-doctest

Conversation

@zzylol

@zzylol zzylol commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Why

The test job on main fails after #708 (ac3c852a). tools/verify_metricsql_external_consumer.sh generates a small external crate that still calls AccuracyTarget::Exact, which #708 replaced.

What

The generated consumer passes RequestedAccuracy::exact(), the input type lower_metricsql now takes.

How

One line in the script's generated main.rs.

Key code interfaces added / modified

None (tooling script only). tools/verify_metricsql_external_consumer.sh now calls lower_metricsql with asap_types::types::RequestedAccuracy::exact() instead of the removed AccuracyTarget::Exact, following #708.

Before this PR

The consumer crate fails to compile with no associated function or constant named Exact.

After this PR

The consumer crate builds against the frontend's current public API.

Verification

  • Ran tools/verify_metricsql_external_consumer.sh locally; it finishes cleanly.
  • No Rust source changes.

Follow-up

The check runs only in CI's test job and is easy to miss. Agents now run it whenever a PR changes a frontend's public signature.

#708 replaced AccuracyTarget::Exact with constructors and made the frontends
take a RequestedAccuracy, so the generated consumer crate no longer compiled
and main's test job failed.
@zzylol
zzylol merged commit 97db04c into main Oct 15, 2026
1 check passed
@zzylol zzylol added bug Something isn't working testing Corpus, regression, differential, or benchmark tests labels Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working testing Corpus, regression, differential, or benchmark tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant