Skip to content

10638 - Fuzz tests for MQE #12121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tcp13equals2
Copy link

What this PR does

This PR contains additional unit tests and Go Fuzz tests which attempt to validate the Mimir Query Engine.

The tests seek to use a range of query strings to confirm that the Mimir Query Engine responds in the same manner as the Prometheus Query Engine. This includes validating both a result, result annotation and/or errors.

There are some expected / accepted scenarios where an exact match does not occur. These are detailed and accommodated in the test code.

The Fuzz tests include a range of seed / corpus entries which enables the test suite to be run as a normal unit test. Alternatively, the specific Fuzz testing function can be invoked using the go test -fuzz=.

Which issue(s) this PR fixes or relates to

#10638

Fixes #10638

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated
  • about-versioning.md updated with experimental features.

…ial data and query set. Modifications to utils comparisons to extend support for these tests - including a custom histogram comparision function to avoid a deepEquals() NaN comparison issue

Signed-off-by: Andrew Hall <[email protected]>
@tcp13equals2 tcp13equals2 added the changelog-not-needed PRs that don't need a CHANGELOG.md entry label Jul 17, 2025
@CLAassistant
Copy link

CLAassistant commented Jul 17, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-not-needed PRs that don't need a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fuzz testing for MQE
3 participants