Skip to content
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

Rename and add new utilities in integration tests #4494

Merged
merged 3 commits into from
Mar 15, 2023

Conversation

krajorama
Copy link
Contributor

Rename generateSeries to generateFloatSeries, generateNSeries to generateNFloatSeries. But keep alias to generateSeries for easier
transition.

Add new generator functions for native histograms and update two tests so that they are not unused.

Also fix typo in backward compatibility test.

Use new pkg/test/histogram.go for generating the samples themselves.

What this PR does

Which issue(s) this PR fixes or relates to

Related to: #3478

Checklist

  • Tests updated
  • N/A Documentation added
  • N/A CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Rename generateSeries to generateFloatSeries, generateNSeries to
generateNFloatSeries. But keep alias to generateSeries for easier
 transition.

Add new generator functions for native histograms and update two tests
so that they are not unused.

Also fix typo in backward compatibility test.

Use new pkg/test/histogram.go for generating the samples themselves.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

The previous generateSeries is used in a lot of places. What's your plan for those? I see in two of them in this PR you alternated between generateFloatSeries and generateHistogramSeries for every other series. Do you plan to do the same for all other (49) usages too?

integration/ingester_limits_test.go Outdated Show resolved Hide resolved
… index

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

LGTM.

From a private conversation I saw that you plan to do more changes that combine generateFloatSeries and generateHistogramSeries to replace generateSeries

@krajorama krajorama merged commit 2cdb2b7 into main Mar 15, 2023
@krajorama krajorama deleted the krajo/from-sparsehistogram branch March 15, 2023 06:32
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