8000 querier: improve e2e tests for error parsing by dimitarvdimitrov · Pull Request #11369 · grafana/mimir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

querier: improve e2e tests for error parsing #11369

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

Merged
merged 2 commits into from
May 23, 2025

Conversation

dimitarvdimitrov
Copy link
Contributor
@dimitarvdimitrov dimitarvdimitrov commented May 2, 2025

What this PR does

The existing test wasn't catching a bug (prometheus/prometheus#16544) because 1) it was only querying a single store-gateway and 2) blocks were returning disjoin series.

This PR improves the test suite to make it more realistic:

  • 3 ingesters instead of 1
  • 2 store-gateways instead of 1
  • overlapping series in each block so that we can merge series from different sources

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

The existing test wasn't catching a bug (XXX) because 1) it was only querying a single store-gateway and 2) blocks were returning disjoin series.

This PR improves the test suite to make it more realistic:
- 3 ingesters instead of 2
- 3 store-gateways instead of 1
- overlapping series in each block

> _In draft until the prometheus PR is merged and vendored in Mimir. The test will fail until then._

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
@dimitarvdimitrov dimitarvdimitrov marked this pull request as ready for review May 22, 2025 09:10
@dimitarvdimitrov dimitarvdimitrov requested a review from a team as a code owner May 22, 2025 09:10
@dimitarvdimitrov dimitarvdimitrov requested a review from Copilot May 22, 2025 09:11
@dimitarvdimitrov
Copy link
Contributor Author

marking this as ready for review as we've received the fix from upstream

Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves end-to-end tests for error parsing by updating the test environment to simulate a realistic scenario with multiple ingesters and store gateways. Key changes include:

  • Replacing a single ingester with three ingesters.
  • Adding a new constant for the number of series per block and updating series generation.
  • Adjusting querier and store-gateway flags and client creation to better simulate error conditions.
Comments suppressed due to low confidence (1)

integration/store_gateway_limits_hit_test.go:77

  • [nitpick] The loop variable 'j' could be renamed to a more descriptive name (e.g., 'seriesIndex') to improve code clarity.
for j := 0; j < numSeriesPerBlock; j++ {

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Copy link
Contributor
@narqo narqo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@dimitarvdimitrov dimitarvdimitrov merged commit a6063f1 into main May 23, 2025
30 checks passed
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/querier/improve-e2e-test branch May 23, 2025 16:46
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
0